By default view files need to end in “Success”. So my index view file would be named “indexSuccess.php”. Is there a way to globally change this suffix? I’d like to set it to blank so that my view file could simply be named “index.php”
Share
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.
You can’t change it directly – that value is defined as a class constant at
sfView::SUCCESS.And even if you could, I suspect you’d break a bunch of things.
I’d advise against this – the actionName/ViewName paradigm is pretty deeply embedded
And even if you could, I suspect the amount of work required would not be an economical trade-off with the time saved by not having to type “Success” into your template file names.