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…
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it goes against the whole point of the framework and core MVC principles.
Just don’t do it.