From: Brad B. <bbu...@uc...> - 2013-04-23 18:56:47
|
I'm trying to setup a separate view for alphabrowse results. When I edit the all of the files in the VuFind namespace everything works fine, however, when I try to set it up as a module it fails. I have the following things in place: * **1. local module.config.php * namespace VuFindLocal\Module\Configuration; $config = array( 'controllers' => array( 'invokables' => array( 'alphabrowse' => 'VuFindLocal\Controller\AlphabrowseController', ), ), ); $staticRoutes = array( 'Alphabrowse/Home', 'Alphabrowse/Results', ); return $config; *2. Local module Alphabrowse controller * namespace VuFindLocal\Controller; use VuFind\Connection\Manager as ConnectionManager, VuFind\Exception\Solr as SolrException; class alphabrowsecontroller extends \VuFind\Controller\AbstractBase { ... public function homeAction() { ... public function resultsAction() { ... *3. Two templates**in the alphabrowse folder * home.phtml, results.phtml The current error I'm getting is " Zend\View\Renderer\PhpRenderer::render: Unable to render template "alphabrowsecontroller/results"; resolver could not resolve to a file". Anyhow, I can't for the life of me figure out what I'm doing wrong here. Does anybody have any ideas? Brad |