Posts tagged with routes

ZF Modular admin routes

This guide will show you how to add a modular strucutre in Zend framework with admin routes, and seperate admin controllers in every module.

Url's will look like:

/module/controller/action

/admin/module/controller/action

Controllers will be seperated:

/modules/blog/PostController.php

/modules/blog/AdminPostController.php

By default Zend Framework does not have any built in option to seperate an application by back and frontend like for example CakePHP has. But it is very easy to add this functionality with some custom routes and a frontcontroller plugin. read more