Hello,
I am running this from a smarty template
Code:
load the truncate modifier
if ($params['truncate'] > 0)
require_once $smarty->_get_plugin_filepath('modifier', 'truncate');
but I get this error
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in /home/woonbel/public_html/woonbel/include/Zend/Controller/Dispatcher/Standard.php:249 Stack trace: #0 /home/woonbel/public_html/woonbel/include/Zend/Controller/Front.php(955): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /home/woonbel/public_html/woonbel.nl/index.php(66): Zend_Controller_Front->dispatch() #2 {main} Next exception 'Zend_Controller_Exception' with message 'Invalid controller specified (error)#0 /home/woonbel/public_html/woonbel/include/Zend/Controller/Front.php(955): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /home/woonbel/public_html/woonbel.nl/index.php(66): Zend_Controller_Front->dispatch() #2 {main}' in /home/woonbel/public_html/woonbel/include/Zend/Controller/Plugin/Broker.php:336 Stack trace: #0 /home/woonbel/public in /home/woonbel/public_html/woonbel/include/Zend/Controller/Plugin/Broker.php on line 336
It seems like the plugin-filepath is not correctly communicated, but I have no idea how to make it work
This is how I set it up in de index.php
The templater class extends the zend_view_abstract
Code:
$path = '/home/woonbel/public_html/woonbel/include';
set_include_path(get_include_path() .PATH_SEPARATOR. $path);
require_once('/home/woonbel/public_html/woonbel/include/Zend/Loader/Autoloader.php');
$loader = Zend_Loader_Autoloader::getInstance();
require('CustomControllerAction.php');
require('Breadcrumbs.php');
$vr = new Zend_Controller_Action_Helper_ViewRenderer();
$vr->setView(new Templater_Templater());
$vr->setViewSuffix('tpl');
Zend_Controller_Action_HelperBroker::addHelper($vr);
$controller->dispatch();
thanks, Richard