|
|||
|
Everything is working fine until I try to use files from the /models directory. I believe there is a problem with my set_include_path in index.php but can't find the problem with that line.
Error message Code:
exception 'Zend_Exception' with message 'File "Transactions.php" was not found' in C:\Program\wamp\ZendFramework-1.0.2\library\Zend\Loader.php:159 Stack trace:
#0 C:\Program\wamp\ZendFramework-1.0.2\library\Zend\Loader.php(91): Zend_Loader::loadFile('Transactions.ph...', Array, true)
#1 C:\Program\wamp\www\ekonomi\application\controllers\IndexController.php(11): Zend_Loader::loadClass('Transactions')
#2 C:\Program\wamp\ZendFramework-1.0.2\library\Zend\Controller\Action.php(129): IndexController->init()
#3 C:\Program\wamp\ZendFramework-1.0.2\library\Zend\Controller\Dispatcher\Standard.php(214): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#4 C:\Program\wamp\ZendFramework-1.0.2\library\Zend\Controller\Front.php(920): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#5 C:\Program\wamp\www\ekonomi\index.php(33): Zend_Controller_Front->dispatch()
#6 {main}
Fatal error: Class 'Transactions' not found in C:\Program\wamp\www\ekonomi\application\controllers\IndexController.php on line 24
Code:
/www
/ekonomi
/application
/controllers
IndexController.php
/models
Transactions.php
/views
/filters
/helpers
/scripts
/index
add.phtml
delete.phtml
edit.phtml
index.phtml
/styles
/bluesky
bluesky.css
footer.phtml
header.phtml
config.ini
index.php
.htaccess
PHP Code:
PHP Code:
|
|
|||
|
you made a mistake in the set_include_path() function: you'll have to separate all directories which should be included by the php constant PATH_SEPARATOR, not just by a dot, which connects all paths to one single path at the moment
![]() |
|
|||
|
Quote:
I'm running Windows XP with WAMP5. |
|
|||
|
$include_paths = array(
//your paths separated by a comma (,) //i would leave get_include_path() out, //as you have already included your library, //and apparently aren't planning on using PEAR ); set_include_path(implode(PATH_SEPARATOR, $include_paths)); |
![]() |
| Thread Tools | |
| Display Modes | |
|
|