class Frontend_Router

Routing of client requests for public content.

class Frontend_Router extends Router
{
	
    /**
     * Set routing type
     * @param string $type ('module' | 'path')
     */
    public function setType($type)
	
    /**
     * Show Page. Running this method initiates rendering of templates and sending of HTML data.
     * @param Page $page
     * @param Blockmanager $blockManager
     */
    public function showPage(Page $page , Blockmanager $blockManager)
	
    /**
     * Route request
     * @throws Exception 
     */
    public function route();

    /**
     * Define url address to call the module
     * The method locates the url of the published page with the attached 
     * functionality specified in the passed argument. 
     * Thus, there is no need to know the exact page URL. 
     * @param string $module — module name
     * @return string
     */
    public function findUrl($module);

    /**
     * Run controller
     * @param string $controller - controller class
     * @param string $action - action name
     * @return mixed
     */
    public function runController($controller , $action = false)
}

comments powered by Disqus