Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How we can call a model from view in cakephp?



How we can call a model from view in cakephp?..

Answer / 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

More CakePHP Interview Questions

What is the use of requestaction method?

1 Answers  


What is cakephp used for?

1 Answers  


Why we used $this->set() in cakephp?

1 Answers  


what is the use of $this->set(compact());?

1 Answers  


What is the folder structure of cakephp?

1 Answers  


What is the first file that gets loaded when you run a application using cakephp?can you change that file?

1 Answers  


How we can call a model from view in cakephp?

1 Answers  


What are commonly used helpers of cakephp?

1 Answers  


List different type of cache cakephp supports?

1 Answers  


How to install cakephp with composer?

1 Answers  


What are component, helper and why are they used?

1 Answers  


Is cakephp a mvc?

1 Answers  


Categories