Nieuw lid |
|
UPDATE: Mijn excuses, het is al opgelet, ik moest in de map Views->Scripts de map Index aanmaken, that's it! 
Hey iedereen,
ik heb op m'n stage kennis leren maken met een Zend Framework, nu wou ik zelf zo'n Zend Framework eens configureren maar ik krijg volgende error:
Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'index/index.phtml' not found in path (./application/views\scripts/)' in C:\xampp\htdocs\enquete\library\Zend\View\Abstract.php:980 Stack trace: #0 C:\xampp\htdocs\enquete\library\Zend\View\Abstract.php(876): Zend_View_Abstract->_script('index/index.pht...') #1 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\Helper\ViewRenderer.php(897): Zend_View_Abstract->render('index/index.pht...') #2 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\Helper\ViewRenderer.php(918): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/index.pht...', NULL) #3 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\Helper\ViewRenderer.php(957): Zend_Controller_Action_Helper_ViewRenderer->render() #4 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #5 C:\xampp\htdocs\enquete\library\Zend\Controller\Action.php(523): Zend_Controller_Action_HelperBroker->notifyP in C:\xampp\htdocs\enquete\library\Zend\View\Abstract.php on line 980
Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'index/index.phtml' not found in path (./application/views\scripts/)' in C:\xampp\htdocs\enquete\library\Zend\View\Abstract.php:980 Stack trace: #0 C:\xampp\htdocs\enquete\library\Zend\View\Abstract.php(876): Zend_View_Abstract->_script('index/index.pht...') #1 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\Helper\ViewRenderer.php(897): Zend_View_Abstract->render('index/index.pht...') #2 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\Helper\ViewRenderer.php(918): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/index.pht...', NULL) #3 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\Helper\ViewRenderer.php(957): Zend_Controller_Action_Helper_ViewRenderer->render() #4 C:\xampp\htdocs\enquete\library\Zend\Controller\Action\HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #5 C:\xampp\htdocs\enquete\library\Zend\Controller\Action.php(523): Zend_Controller_Action_HelperBroker->notifyP in C:\xampp\htdocs\enquete\library\Zend\View\Abstract.php on line 980
Ik heb volgende mappen structuur:
/Application
../controllers
../views
..../scripts
..htaccess
/library
../Zend
..htaccess
/models
/public
index.php
.htaccess
In m'n boatloader staat volgende code:
<?php
error_reporting(E_ALL|E_STRICT);
date_default_timezone_set('Europe/Amsterdam');
//Load Zend
set_include_path( '.' . PATH_SEPARATOR . './library/' . PATH_SEPARATOR . './models/' . PATH_SEPARATOR . get_include_path());
include_once('Zend/Loader.php');
Zend_Loader::loadClass('Zend_Controller_Front');
$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory('./application/controllers/');
$controller->throwExceptions(true);
$controller->dispatch();
<?php date_default_timezone_set('Europe/Amsterdam'); //Load Zend include_once('Zend/Loader.php'); Zend_Loader::loadClass('Zend_Controller_Front'); $controller = Zend_Controller_Front::getInstance(); $controller->setControllerDirectory('./application/controllers/'); $controller->throwExceptions(true); $controller->dispatch();
Weet iemand wat ik fout doe?
~Oneday
|