Using CakePHP, how to generate editable pages?

1

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)

    
asked by anonymous 22.03.2014 / 18:37

1 answer

1

You can use CMS Croogo for this.

You can use all the permission features of CakePHP, such as ACL, you can use the page and blog features of Croogo, and you can make your own CakePHP code normally without any incompatibility.

    
07.05.2014 / 20:34