I am developing a website using CakePHP, but I would like to know the correct way to create pages like: Home, Contact, About, simple user page (logged in with permission 1), admin page permission 2), etc. For this I would like to have a template.ctp that would include views like header.ctp and footer.ctp or a view that lists a given Bean for the simple user (no change options), another that lists Bean for the administrator, among others. In addition, these pages should have editable areas, only for the administrator, for future maintenance of a lay user.
I thought about creating a Bean called editableareas that has all the editable fields of the site, the methods of the EditableAreasContrroler would have like view the pages of the site, however I do not know if it is possible to create methods with the name home, contact, etc ... and even if possible I do not know if it would be a good practice, because I do not know if PagesControllers has this functionality.
I would also like, if possible, to know what to do in the following situation:
A website with 1st tamplate that includes view and certain parts 2 ° a Home which shows public menu with (Home, Contact, Services), in this home would have an editable talking about the company (this div would be written by the user). Fully editable contact. 3, and Services that would display a list of Bean services, but in a deferential way that is displayed to the administrator (without options to delete and edit)