I created a scaffold crud for my database table app_categories
This creates a model and controller called
AppCategories
But the views are created in a folder called
app_categories
Previously i had assumed that the way views are linked to controllers are by the name but this is clearly different.
So i have 2 questions:
1 - Is it simply that it strips out the _ and it is linked via the name or is there another way that views and controllers/models are linked?
2 - Lets say i wanted to move everything into a new folder so instead of views/app_categories i wanted to move it to views/admin/app_categories/ what would i need to change to make it work, i guess thats related to 1 and it might be a silly question but since i cant seem to find out how it links models to views i dont really know. In Yii you render the view and give the link of where the view is found but its not obvious how it works in Phalcon.
Im new to Phalcon but i have tried scanning the ebook "getting started with phalcon" and also the documentation and a video tutorial i bought on phalcon but im struggling to find it, i might be looking in the wrong part or it might not be covered, more likely its very obvious and i missed it.