Questions tagged as 'cakephp'

1
answer

belongsTo's relationship

I would like to know if it is possible to do this kind of relationship in Cakephp's Model, if it is possible, show me how, because I can not. Way I need it: public $belongsTo = array( Status => array( 'className'...
asked by 15.12.2016 / 20:30
1
answer

CakeBake generating invalid Controller

I am generating a controller by cakebake based on a table called cliente_planos . It generates controller methods using always $this->ClientePlanos , is generating correctly, but no control method works and I found that they only...
asked by 29.08.2016 / 02:43
2
answers

Change top of a cakephp-only page

I have taken a site to do maintenance and it is in CakePHP (framework that does not work). It makes some routes for all files that are inside the view/pages routes.php foreach(scandir('../View/Pages') as $path){ if (...
asked by 03.06.2016 / 20:19
1
answer

Submit without reloading page cakephp [closed]

How do I submit on pages without reloading with cakephp?     
asked by 25.02.2016 / 18:26
1
answer

Daily routine cakephp 2x

How would I do to create a daily routine, so that every day he performed a procedure? Would you do this via linux (crontab)? or is there a different and more practical way?     
asked by 22.02.2016 / 14:21
2
answers

How to create view function?

I'm creating a function in controller UsersController , this function is for users who forget the password. When I try to open view , it returns an error that the function does not exist. The structure looks like this: view...
asked by 23.12.2015 / 04:55
1
answer

How to save data from a form in DB with CakePHP

Good Morning I need help because I'm creating a form to save only dates ... and I'm having trouble creating this code ... for lack of experience ... the view is already created with 4 fields for dates ... and then in the controller I'm kin...
asked by 18.11.2015 / 13:20
1
answer

How to put an exact number of pagination results cakephp 2x

I believe that for this code I can set an exact number of results per page on my page public $paginate = array('limit' => 7,); Except that the results do not follow this number and they end up coming random. Should I tinker somewhere e...
asked by 23.11.2015 / 16:30
1
answer

How to make a JOIN using find ()?

I'm trying to make a join of tables using cakephp's find (). I have 3 tables, they are: users, pessoas e matriculas . In the users table I have a foreign key for the pessoas table and on the matriculas tbm table I have...
asked by 24.08.2015 / 23:58
1
answer

Redirect cakephp

I have created an action where, when I click on an icon on the page, it calls this action and on itself has a redirect to the page itself. The problem is that you are not doing this redirect. Action: public function limpar_criterios(){...
asked by 01.06.2015 / 14:34