Example #1
0
 /**
  * Retrieves the view renderer object
  *
  * @return Zend_Controller_Action_Helper_ViewRenderer|null
  * @throws Glitch_Application_Resource_Exception
  */
 public function getViewRenderer()
 {
     if (null === $this->_viewRenderer) {
         // Pull in the front controller; bootstrap first if necessary
         $this->_bootstrap->bootstrap('FrontController');
         $front = $this->_bootstrap->getResource('FrontController');
         // Ignore if no view renderer is to be used
         if ($front->getParam('noViewRenderer')) {
             return null;
         }
         // Get existing renderer, if any, or create a new one
         $this->_viewRenderer = Zend_Controller_Action_HelperBroker::hasHelper('viewRenderer') ? Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer') : new $this->_className(null, $this->getOptions());
         // Dynamic class loading; perform sanity check
         if (!$this->_viewRenderer instanceof Zend_Controller_Action_Helper_ViewRenderer) {
             throw new Glitch_Application_Resource_Exception('Class is not a valid view renderer instance');
         }
         // Register the view as the default view for handling view scripts
         $this->_bootstrap->bootstrap('View');
         $view = $this->_bootstrap->getResource('View');
         $this->_viewRenderer->setView($view);
         // It is paramount to set this base path spec: ZF otherwise uses its own
         // spec, causing it to create a path to a conventional ZF-style directory
         $this->_viewRenderer->setViewBasePathSpec(':module/' . Glitch_View::PATH_VIEW);
         // Set empty inflector settings: all path translations are handled by the custom dispatcher
         $inflector = new Zend_Filter_Inflector();
         $inflector->addRules(array(':module' => array(), ':controller' => array(), ':action' => array()));
         $this->_viewRenderer->setInflector($inflector, true);
         if (!Zend_Controller_Action_HelperBroker::hasHelper('viewRenderer')) {
             Zend_Controller_Action_HelperBroker::addHelper($this->_viewRenderer);
         }
     }
     return $this->_viewRenderer;
 }
Example #2
0
 /**
  * Configures view class
  *
  */
 protected function setupView()
 {
     if (Zend_Registry::isRegistered('config')) {
         $config = Zend_Registry::get('config');
         $renderClass = $config->output->viewrenderer;
         $viewRenderer = new $renderClass();
         $viewClass = $config->output->view->name;
         $viewRenderer->setView(new $viewClass($config->output->view->options->toArray()));
     } else {
         // Config file not detected, use defaults
         $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
         $viewRenderer->setView(new Zoo_View_Php());
     }
     $viewRenderer->setViewSuffix('phtml');
     //make it search for .phtml files
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     //add it to the action helper broker
     // Set the encoding
     $viewRenderer->view->setEncoding("UTF-8");
     $doctypeHelper = new Zend_View_Helper_Doctype();
     $doctypeHelper->doctype('XHTML1_STRICT');
     // Add core module's view helper path
     $viewRenderer->view->addHelperPath(ZfApplication::$_base_path . "/app/Zoo/views/helpers");
     // Add JQuery support
     $viewRenderer->view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $viewRenderer->view->jQuery()->setVersion('1.5')->setUIVersion('1.8')->addStylesheet('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css');
 }
Example #3
0
 protected function _initViewHelpers()
 {
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->addHelperPath('Base/View/Helper/', 'Base_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     ZendX_JQuery::enableView($view);
     /*------ default blocks in the region right ---*/
     /*$blockM=new Base_View_Block();
        		$path="/layouts/scripts/page/blocks/journal";
        		$blocks=array("name"=>"search-destination", "order"=>"10", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
        		$blocks=array("name"=>"right-banner", "order"=>"9", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
        		$blocks=array("name"=>"recent-blog", "order"=>"8", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
     
        		$blocks=array("name"=>"journal-categories", "order"=>"7", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');
        		$blocks=array("name"=>"tag-cloud", "order"=>"6", "path"=>$path);
        		$blockM->addBlock($blocks, 'journal');*/
     /*------ default blocks in the region right ---*/
 }
Example #4
0
 protected function _initView()
 {
     $theme = 'default';
     $templatePath = APPLICATION_PATH . '/../public/themes/' . $theme . '/templates';
     Zend_Registry::set('user_date_format', 'm-d-Y');
     Zend_Registry::set('calendar_date_format', 'mm-dd-yy');
     Zend_Registry::set('db_date_format', 'Y-m-d');
     Zend_Registry::set('perpage', 10);
     Zend_Registry::set('menu', 'home');
     Zend_Registry::set('eventid', '');
     $dir_name = $_SERVER['DOCUMENT_ROOT'] . rtrim(str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']), '/');
     Zend_Registry::set('acess_file_path', $dir_name . SEPARATOR . "application" . SEPARATOR . "modules" . SEPARATOR . "default" . SEPARATOR . "plugins" . SEPARATOR . "AccessControl.php");
     Zend_Registry::set('siteconstant_file_path', $dir_name . SEPARATOR . "public" . SEPARATOR . "site_constants.php");
     Zend_Registry::set('emailconstant_file_path', $dir_name . SEPARATOR . "public" . SEPARATOR . "email_constants.php");
     Zend_Registry::set('emptab_file_path', $dir_name . SEPARATOR . "public" . SEPARATOR . "emptabconfigure.php");
     Zend_Registry::set('emailconfig_file_path', $dir_name . SEPARATOR . "public" . SEPARATOR . "mail_settings_constants.php");
     Zend_Registry::set('application_file_path', $dir_name . SEPARATOR . "public" . SEPARATOR . "application_constants.php");
     $date = new Zend_Date();
     Zend_Registry::set('currentdate', $date->get('yyyy-MM-dd HH:mm:ss'));
     Zend_Registry::set('currenttime', $date->get('HH:mm:ss'));
     Zend_Registry::set('logo_url', '/public/images/landing_header.jpg');
     $view = new Zend_View();
     $view->setEscape('stripslashes');
     $view->setBasePath($templatePath);
     $view->setScriptPath(APPLICATION_PATH);
     $view->addHelperPath('ZendX/JQuery/View/Helper', 'ZendX_JQuery_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     return $this;
 }
Example #5
0
 protected function _initView()
 {
     $view = new Zend_View();
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
Example #6
0
 /**
  * Defined by Zend_Application_Resource_Resource
  *
  * @return Zend_View
  */
 public function init()
 {
     $view = $this->getView();
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     return $view;
 }
Example #7
0
 protected function _initView()
 {
     $view = new Zend_View();
     $view->doctype('XHTML1_STRICT');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
Example #8
0
 /**
  * Initializes a new view object and loads the view directories into it.
  * @return Zend_View
  */
 protected function _initView()
 {
     $view = new Zend_View();
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     $view->addHelperPath(realpath(implode(DIRECTORY_SEPARATOR, array(ROOT_PATH, 'library', 'Fizzy', 'View', 'Helper'))), 'Fizzy_View_Helper');
     $view->addHelperPath(realpath(implode(DIRECTORY_SEPARATOR, array(ROOT_PATH, 'library', 'ZendX', 'JQuery', 'View', 'Helper'))), 'ZendX_JQuery_View_Helper');
     return $view;
 }
Example #9
0
 function _initViewHelpers()
 {
     // Config view Zend_Dojo
     $view = new Zend_View();
     $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     // End Config view Zend_Dojo
 }
Example #10
0
 /**
  * @return \Application\Smarty\ZendSmarty
  */
 protected function initView()
 {
     $view = $this->getDICContainer()->get('zend_smarty');
     $view->getEngine()->setZendView($view);
     $viewHelper = new \Zend_Controller_Action_Helper_ViewRenderer($view);
     $viewHelper->setViewSuffix('tpl');
     \Zend_Controller_Action_HelperBroker::addHelper($viewHelper);
     $this->getEventDispatcher()->dispatch('bootstrap.init_view', new EventParameters(array('view' => $view)));
     return $view;
 }
Example #11
0
 public function ajaxResponse($message = "", $success = 1, $data = null, $type = 'json')
 {
     $this->layout->disableLayout();
     $this->viewRenderer->setNoRender(true);
     if (!$success) {
         $message = "A problem occurred.";
     }
     echo Zend_Json::encode(array('data' => $data, 'success' => $success, 'error' => !$success, 'message' => $message, 'type' => $type));
     exit;
 }
Example #12
0
 protected function _initDoctype()
 {
     $this->bootstrap('view');
     //        $view = $this->getResource('view');
     //        $view->doctype('XHTML1_STRICT');
     $view = new Zend_View();
     $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
Example #13
0
 protected function _initView()
 {
     $baseUrl = substr($_SERVER['PHP_SELF'], 0, -9);
     $view = new Zend_View();
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $view->jQuery()->uiEnable();
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     $view->jQuery()->addStylesheet($baseUrl . 'js/jquery/css/overcast/jquery-ui-1.8.11.custom.css')->setLocalPath($baseUrl . 'js/jquery/js/jquery-1.5.1.min.js')->setUiLocalPath($baseUrl . 'js/jquery/js/jquery-ui-1.8.11.custom.min.js');
 }
Example #14
0
 public function _initNaneau()
 {
     /** Naneau_View_Smarty */
     require_once 'Naneau/View/Smarty.php';
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView(new Naneau_View_Smarty(array('compileDir' => APPLICATION_PATH . '/../tmp/templates_c')));
     $viewRenderer->setViewSuffix('tpl');
     //make it search for .tpl files
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     //add it to the action helper broker
 }
 protected function _initDoctype()
 {
     $this->bootstrap('view');
     $view = $this->getResource('view');
     $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
     $view->doctype('XHTML1_STRICT');
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
 /**
  * ブートストラップ
  *
  * @return void
  */
 protected function _initView()
 {
     /*
      * Zend_Controller_Action_Helper_ViewRendererオブジェクトに
      * Zend_View_Smartyクラスを登録
      */
     $view = new Zend_View_Smarty(TEMPLATES_PATH, array('compile_dir' => SMARTY_COMPILE_PATH, 'cache_dir' => SMARTY_CACHE_PATH));
     $render = new Zend_Controller_Action_Helper_ViewRenderer($view);
     $render->setViewBasePathSpec(':moduleDir' . ABSOLUTE_VIEWS_TEMPLATE_PATH)->setViewSuffix('tpl');
     // ヘルパーブローカにViewRendererヘルパーを登録
     Zend_Controller_Action_HelperBroker::addHelper($render);
 }
Example #17
0
 function _initViewHelpers()
 {
     $view = new Zend_View();
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $view->headMeta()->appendHttpEquiv('X-UA-Compatible', "IE=edge,chrome=1");
     $view->headMeta()->appendHttpEquiv('PRAGMA', "NO-CACHE");
     $view->headMeta()->setCharset('UTF-8');
     $view->headMeta()->appendName("viewport", "width=device-width,initial-scale=1.0");
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
Example #18
0
 protected function _initViewHelpers()
 {
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->addHelperPath('Base/View/Helper/', 'Base_View_Helper');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     ZendX_JQuery::enableView($view);
 }
Example #19
0
 public function init()
 {
     $view = $this->getSmarty();
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view)->setViewSuffix('tpl');
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     $this->layoutReset();
     Zend_Controller_Action_HelperBroker::addPrefix('Base_Controller_Action_Helper');
     Zend_Controller_Action_HelperBroker::addPrefix('Base_Controller_Action_Helper_Messenger');
     $config = Zend_Registry::get('config');
     $view->config = $config['smarty'];
     return $view;
 }
Example #20
0
 protected function _initDojo()
 {
     $this->bootstrap('view');
     $view = $this->getResource('view');
     $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
     $view->dojo()->setLocalPath('/js/dojo/dojo.js');
     $view->dojo()->addStylesheetModule('dijit.themes.tundra');
     $view->dojo()->setDjConfigOption('usePlainJson', true);
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     Zend_Dojo_View_Helper_Dojo::setUseProgrammatic();
 }
Example #21
0
 protected function _initHelper()
 {
     $lib_path = APPLICATION_PATH . "/lib";
     $view = new Zend_View();
     $view->addHelperPath("Cible/View/Helper", "Cible_View_Helper");
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->addBasePath("{$lib_path}/Cible/View");
     $view->addBasePath("{$lib_path}/ZendX/JQuery/View");
     $view->addBasePath("{$lib_path}/Cible/Validate");
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
Example #22
0
 protected function _initApp()
 {
     $this->bootstrap('view');
     $this->bootstrap('layout');
     $view = $this->getresource('view');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->addHelperPath('library/view/helper', 'Library_View_Helper_LoggedInAs');
     $view->doctype('HTML4_STRICT');
     $view->headMeta()->appendHttpEquiv('Content-type', 'text/html; charset=utf-8');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
Example #23
0
 function _initViewHelpers()
 {
     $view = new Zend_View();
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     Zend_Controller_Front::getInstance()->getBaseUrl();
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     ZendX_JQuery::enableView($view);
     ZendX_JQuery::enableView($view);
     ZendX_JQuery::enableView($view);
     $view->JQuery()->enable();
     $view->JQuery()->uiEnable();
 }
Example #24
0
 protected function _initViewHelpers()
 {
     $view = new Zend_View();
     ZendX_JQuery::enableView($view);
     $viewrenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewrenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewrenderer);
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->doctype('XHTML1_STRICT');
     $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8')->appendName('description', 'Program do katalogowania zdjęć.');
     $view->headTitle('Praca dyplomowa');
 }
Example #25
0
 /**
  * Initalize the view.
  * @author Dennis De C**k
  */
 protected function _initView()
 {
     $defaultConfig = $this->getOption('default');
     $view = new Zend_View();
     //ZendX_JQuery::enableView($view);
     $viewrenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewrenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewrenderer);
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
     $view->headTitle()->setSeparator(' - ');
     $view->headTitle($defaultConfig['portalName']);
 }
Example #26
0
 protected function _initViewHelpers()
 {
     $view = new Zend_View();
     $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
     $view->jQuery()->addStylesheet($view->baseUrl . '/js/jquery/css/ui-lightness/jquery-ui-1.8.13.custom.css');
     $view->jQuery()->setLocalPath($view->baseUrl . '/js/jquery/js/jquery-1.5.1.min.js');
     $view->jQuery()->setUiLocalPath($view->baseUrl . '/js/jquery/js/jquery-ui-1.8.13.custom.min.js');
     $view->jQuery()->enable();
     $view->jQuery()->uiEnable();
     $view->addHelperPath("ZendX/Core/ViewHelper/Html", "ZendX_Core_ViewHelper_Html");
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     return $view;
 }
Example #27
0
 protected function _initViewHelpers()
 {
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
     $view->doctype('XHTML1_STRICT');
     $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
     $view->headTitle()->setSeparator(' - ');
     $view->headTitle('Kreativní memorizer');
     $view->headMeta()->appendName('author', 'Ladislav Prskavec');
     $view->headMeta()->appendName('copyright', 'FormaX');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
 }
Example #28
0
 /**
  * @param null $path
  * @param null $prefix
  * @param array $options
  */
 public function initView($path = null, $prefix = null, array $options = array())
 {
     if (null === $this->view) {
         $view = new View();
         $view->setRequest($this->getRequest());
         $view->addHelperPath(PIMCORE_PATH . "/lib/Pimcore/View/Helper", "\\Pimcore\\View\\Helper\\");
         $this->setView($view);
     }
     parent::initView($path, $prefix, $options);
     $this->setViewSuffix(View::getViewScriptSuffix());
     // this is very important, the initView could be called multiple times.
     // if we add the path on every call, we have big performance issues.
     if ($this->isInitialized) {
         return;
     }
     $this->isInitialized = true;
     $paths = $this->view->getScriptPaths();
     // script pathes for layout path
     foreach (array_reverse($paths) as $path) {
         $path = str_replace("\\", "/", $path);
         if (!in_array($path, $paths)) {
             $this->view->addScriptPath($path);
         }
         $path = str_replace("/scripts", "/layouts", $path);
         if (!in_array($path, $paths)) {
             $this->view->addScriptPath($path);
         }
     }
 }
Example #29
0
 protected function _initAuthPlugin()
 {
     // 		date_default_timezone_set("Asia/Bangkok");
     //Zend_Controller_Front::getInstance()->registerPlugin(
     //new Application_Model_CustomAuth(Zend_Auth::getInstance()));
     date_default_timezone_set('Asia/Phnom_Penh');
     $view = new Zend_View();
     $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
     $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
     $viewRenderer->setView($view);
     Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     Zend_Layout::StartMvc();
 }
    public function testCustomInflectorUsesViewRendererTargetWhenPassedInWithReferenceFlag()
    {
        $this->request->setModuleName('bar')
                      ->setControllerName('index')
                      ->setActionName('test');
        $controller = new Bar_IndexController($this->request, $this->response, array());

        $this->helper->view->addBasePath($this->basePath . '/_files/modules/bar/views');

        require_once 'Zend/Filter/PregReplace.php';
        require_once 'Zend/Filter/Word/UnderscoreToSeparator.php';
        
        $inflector = new Zend_Filter_Inflector('test.phtml');
        $inflector->addRules(array(
            ':module'     => array('Word_CamelCaseToDash', 'stringToLower'),
            ':controller' => array('Word_CamelCaseToDash', new Zend_Filter_Word_UnderscoreToSeparator(DIRECTORY_SEPARATOR), 'StringToLower'),
            ':action'     => array(
                'Word_CamelCaseToDash', 
                new Zend_Filter_PregReplace('/[^a-z0-9]+/i', '-'),
                'StringToLower'
            ),
        ));
        $this->helper->setInflector($inflector, true);

        $this->helper->render();
        $body = $this->response->getBody();
        $this->assertContains('Rendered index/test.phtml in bar module', $body);
    }