How to pass multiple parameters to access into the view files?
Answer / Kunwar Akram Ali
In CakePHP, you can pass multiple parameters to a view by using an array. For example, in a controller action: $this->set('parameter1', 'value1'); $this->set('parameter2', 'value2'); Then in your view file: <?php echo $parameter1; ?> and <?php echo $parameter2; ?>
| Is This Answer Correct ? | 0 Yes | 0 No |
What are commonly used helpers of cakephp?
What is habtm?
Which is better cakephp or laravel?
What is the current stable version of cakephp?
How we can set custom page title in cakephp?
What are sessions in php. How to read, write and delete session in cakephp?
Please write the name of cakephp database configuration file name and its location?
How to install cakephp?
explain the server requirements for cakephp.
What is mvc (model, view, and controller) in cakephp?
What is wrong with the below validation rule?
Why cakaphp is used?