Zend Framework tut problem..
I am having trouble loading the Zend class.. i am using the tutorial here:
http://akrabat.com/zend-framework-tutorial/
The index looks like this:
PHP Code:
<?php
error_reporting(E_ALL|E_STRICT);
date_default_timezone_set('Europe/London');
set_include_path('.' . PATH_SEPARATOR . './library'
. PATH_SEPARATOR . './application/models/'
. PATH_SEPARATOR . get_include_path());
include "Zend/Loader.php";
Zend_Loader::loadClass('Zend_Controller_Front');
// setup controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->throwExceptions(true);
$frontController->setControllerDirectory('./application/controllers');
// run!
$frontController->dispatch();
But i always get the error:
Quote:
Warning: include(Zend/Loader.php) [
function.include]: failed to open stream: No such file or directory in
/opt/lampp/htdocs/zf-tutorial/index.php on line
7
Warning: include() [
function.include]: Failed opening 'Zend/Loader.php' for inclusion (include_path='.:./library:./application/models/:.:/opt/lampp/lib/php') in
/opt/lampp/htdocs/zf-tutorial/index.php on line
7
Fatal error: Class 'Zend_Loader' not found in
/opt/lampp/htdocs/zf-tutorial/index.php on line
8
Even when i set the include path to absolute..??
When i change :
PHP Code:
include "Zend/Loader.php";
To
PHP Code:
include "library/Zend/Loader.php";
It does seem to find the file but i get a permission error?
Quote:
Warning: include(library/Zend/Loader.php) [
function.include]: failed to open stream: Permission denied in
/opt/lampp/htdocs/zf-tutorial/index.php on line
7
Warning: include() [
function.include]: Failed opening 'library/Zend/Loader.php' for inclusion (include_path='.:./library:./application/models/:.:/opt/lampp/lib/php') in
/opt/lampp/htdocs/zf-tutorial/index.php on line
7
Fatal error: Class 'Zend_Loader' not found in
/opt/lampp/htdocs/zf-tutorial/index.php on line
8
Anybody knows what else to try? :shifty: