Answer Posted / Jafar Ali
To call a model from a view in CakePHP, you first need to initialize the controller's components that include the model. In your view file, you can then use the $this->request->controller()->loadModel() method to load the required model. For example: $this->request->controller()->loadModel('YourModel');
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category