Im a beginner with CakePHP,
i wonder how i do this in my controller’s action :
$this->Image->Category->findAllByRewrite($category_rewrite);
i want to get all the images of the category ..
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.
I may not be 100% sure what you are asking, but if you are adding this in the ImagesController you are on the right track. I do not think you need to chain the Category model as you are indicating though.
You would do something like:
With more clarification I can change this response.