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'...
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...
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 (...
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?
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...
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...
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...
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...
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(){...