is it possible to call a model function directly from a view in Cakephp 2? I know I could call it from controller and set the value to the view, but if I could call it in the view it would be better...
Can using in View same in Controller:
$this->Department = new Department();
$users = $this->Department->getUserOfDepartment($id);
No, it goes against the whole point of the framework and core MVC principles.
Just don't do it.
Post Your Answers
who is Best AWS Training in Noida
Packers And Movers Hyderabad Get Free Quotes Compare and Save
How to Validate Password Strength in PHP
Who is the Best Packers and Movers in Bareilly ?
Which is top online agricultural marketplace portal in India?
Who is top and best packers and Movers services provider in pune and local pune area