Should createUrl be called on controller or in views ?
It doesn’t matter? Or it does matter ?
Is there a rule we should follow ? Like methods that extend ccontroller should be used on controllers and so on .. ?
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.
In View you can use this snippet. You can use this snippet everywhere.
But for me is better to define a url in controller’s action, and use simply $some_url var in the view.