|Related to : cakephp pagination and thin controller|
|cakephp deep conditions from controller|
I suggest this way, if it doesn't work we'll try join way :
'conditions'=>array('CoursesEmployee.completed '=> 'true'
,'Employee.business_id' => '1' ),
Hope it helps !
|Cakephp 2.5: add control on js, css, images using cake controller|
why you are using html, if cakephp use the ctp just a recomnedation
"keep it simple" copy the content of the ???.html in
<?php $this->layout = false; ?>
If you put the following at the top of the view this work too.
now if you want use the angular just need use in the view o default
<?php echo $this->Html->scr
PHP is a server side language. This means the PHP file will get
processed on the HTTP server and then deliver the generated HTML page
to the client.
interfaces with the HTML and other remote resources.
Due to this model, PHP and JS know nothing about each other. So to
call JS directly from the PHP file is not possible.
If you are lo
|cakephp how to send data from controller to view with json|
According to Cake 2.x Book
You have to add this to your routes.php file:
Then, in your items controller, add the RequestHandler to your
public $components = array('RequestHandler');
Then, in your items controller, add your methods, in your example:
|updating a model in one controller that is watched and located in a different package and used by another controller|
I recommend that you wrap the model in a service. Use one of the
various providers offered by Angular.
You can then dependency inject the service anywhere you like in your