hi i have some questions regarding routing
can we control the routing from the controller? for example my [url=http://mysite/index.php/blogme]http://mysite/index.php/blogme[/url]
If want to check whether 'blogme' is page or modules if it is page which is in the database then is page then it should show the content of the page else it is name of the module then it should call a module 'blogme'. thank u in advance
There are several ways to achieve that.
You can add code to the config/routes.php, and just generate custom routes (from for example a database). You can cache that for performance reasons.
You can use a front controller. Just route all requests to that controller, do your checks in that controller, and have the action return a new request object (making it an HMVC call).
You can even call the destination controller directly, just instantiate it, and call the action method from your first controller.
For my CMS, I use the second option, where the front controller also deals with themes and templates, and uses HMVC calls to fetch the contents for the different sections in the template.