Quote:
Originally Posted by WavyDavy
I am trying to follow the bootstrapper tutorial from here
Zend Framework: Getting Started - Mitch’s World
And I cannot get my bootstrapper index.php to work, everytime I try to access it I get the following error;
This is the code for index.php
PHP Code:
<?php
/*
*Error Reporting
*/
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 'on');
ini_set('include_path', ini_get('include_path') . ':../library');
/*
*Zend Loader
*/
//Zend_Loader::loadClass('');
require "Zend/Loader.php";
/*
*Required Classes
*/
Zend_Loader::loadClass('Zend_Controller_Front');
/*
*Setup controller
*/
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory('../application/controllers');
$front->throwExceptions(true);
?>
|
Hi I encountered the same problems like you did and I found the solutions finally.
First I guess that you must use windows OS ,right?If so,here is my solution:
1.add the following in your php.ini,you should know what the exact meaning of the following sentence:
include_path = ".;D:\Apache2.2\htdocs\demo_app\library"
2.modify the index.php like this:
ini_set('include_path',ini_get('include_path').';. ./library');
Noted that the last ";"
it SHOULD NOT be the ":",right?know what i mean?
then .....bla bla bla,just following the MASTER -->Mitchell 'S GREAT VIDEO!
AND....have fun!
Another new question is ...
while everything is OK from the single controller,i mean the "index",if i typed the "user" as what Mitchell did in his
video ,then the IE reported "HTTP 404 ",WHY?