Questions tagged as 'cakephp-2'

1
answer

Configure Cake bake for Cake Version 2.x

I have a Cake 2.3 libary on my Ubuntu 13.10 configured and running normally. When I try to use cake bake, it automatically assumes Cake 1.3 Welcome to CakePHP v1.3.14 Console Question: How do I configure cake bake to use Cake version 2.3?...
asked by 17.03.2014 / 15:27
1
answer

How to get the log records of the 'CakeLog :: write ()' method?

I'm studying about logs of cakephp and in my code I've added the following line for all actions of INSERT , UPDATE and DELETE of my crud system. p> Cakelog::write('debug', 'mensagem de exemplo de log!');...
asked by 21.07.2018 / 05:00
0
answers

Populating select via the other select option

I have a system done in CakePHP. I have 3 selects in one view: One to list the stocks; One to list inventory locations (A stock can have multiple locations); And one to list the products you have in the given location; How do I, when selec...
asked by 23.02.2018 / 14:42
2
answers

Get the value of a select and play in php variable

How do I get the selected value from a select and already print it? I have a simple form, when the user select the value I want to assign to a php variable, because I will show the selected quantity and selected amount x the value of the selecte...
asked by 09.12.2017 / 02:44
0
answers

Ionic 2 + Cakephp 2.X rest

How to perform data parsing in% with% of next? I've already tried using json and promise . { "diaries": [ { "Diary": { "id": "1", "user_id": "1", "title": "T\...
asked by 21.05.2017 / 02:00
1
answer

A Model with 2 relationships but in the view only 1

I have a model called doctor who belongs to a city, and belongs to a specialty code: App::uses('AppModel', 'Model'); class Medico extends AppModel { public $belongsTo = array( 'Cidade' => array( 'className' => 'Cidade',...
asked by 11.03.2017 / 23:07
0
answers

CakePHP 2.5 model generates JOIN column that does not exist

Good morning I'm using cakePHP 2.5 and I have a table of vehicles and an address for vehicles. There is no vehicle_id column but a JOIN is generated that uses it instead of using vei_id that was explicitly indicated in conditions: 'cond...
asked by 13.02.2017 / 14:30
1
answer

CakePHP: Problems with route and pagination

I have a problem with the CakePHP routes. I have the following URL: link And it works normally. The problem is when I go to the second page: link Error: The requested address '/Produtos/index/61/789/page:2' was not found on t...
asked by 25.01.2017 / 21:12
1
answer

XDEBUG configuration in PHP.ini (CakePHP, AppServ - Apache2.4, NetBeans)

My friends, good afternoon I'm new to the piece, that is, in the PHP development area and I'm making the settings for debugging an application in CakePHP 2.6. I followed all the XDEBUG documentation, downloaded the version compatible with...
asked by 03.02.2017 / 13:59
0
answers

Cakephp 2.x if, else

I have a project in Cakephp 2.x, with the following code: <?php echo $this->Form->create('Planos', array('url' => 'addPlanos')); foreach($ListarPlanos as $indice => $AdicionarPlanos): foreach($totalPlanosAlunos as $contador...
asked by 02.01.2017 / 17:49