Why view filenames are not camelCase

I have action in controller:

public function addAvatarAction()

and volt file must be: addavatar.volt, it's not working with addAvatar.volt. Is it possible to change this issue? CamelCase is more readable.



64.0k

can u sneak a _ somehow, call the action add_avatar, then you controller sohuld be addAvatarAction, and your volt file addAvatar.volt

I am not sure if it will work, and i am going to bed :-)

Cheers

can u sneak a _ somehow, call the action add_avatar, then you controller sohuld be addAvatarAction, and your volt file addAvatar.volt

I am not sure if it will work, and i am going to bed :-)

Cheers

I'm not sure what You mean, could You show an example?



64.0k

http://example.com/users/controllerName/add%5avatar,

in this case you have to have action AddAvatarAction in this controller.

so i think the volt file should be named addAvatar.volt aswell

http://example.com/users/controllerName/add%5avatar,

in this case you have to have action AddAvatarAction in this controller.

so i think the volt file should be named addAvatar.volt aswell

I have such action (public function addAvatarAction()) and Phalcon looks for addavatar.volt, not addAvatar.volt.



64.0k

but make the url : add_avatar not addAvatar