predominant / TwigView

Twig for CakePHP
http://cakealot.com
MIT License
78 stars 31 forks source link

Divide frontend and admin panel #26

Open technobulka opened 9 years ago

technobulka commented 9 years ago

app/View for admin panel and app/Template for frontend. How can I do this?

matheusmatos commented 9 years ago

You're doing it wrong.

My suggestion for you is create themes.

In your beforeFilter, verify if you is on prefix and set admin theme or frontend theme. Then, create themes in your View/Themed directory.

Search for CakePHP Route Prefix and CakePHP Themes.