Fatal error: require_once() [function.require]: Failed openi

For programming and general questions on Zend Framework

Fatal error: require_once() [function.require]: Failed openi

Postby jeethushan on Tue Dec 18, 2012 1:21 pm

Hi,

I am new for the zend framework. I have installed xampp in my windows machine. Plz help me, When i run example project i got the below error:
Warning: require_once(Zend/Controller/Front.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\shan\helloworld\web_root\index.php on line 10

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Controller/Front.php' (include_path='C:\xampp\htdocs\shan\helloworld/library;.;C:\xampp\php\pear\;C:\xampp\htdocs\shan\helloworld\library') in C:\xampp\htdocs\shan\helloworld\web_root\index.php on line 10


In php.ini,I have configured include_path.

Below code is inside the web_root folder:
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', true);
date_default_timezone_set('Europe/London');

$rootDir = dirname(dirname(__FILE__));

set_include_path($rootDir . '/library' . PATH_SEPARATOR . get_include_path());

require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('../application/controllers');

?>
jeethushan
 
Posts: 1
Joined: Tue Dec 18, 2012 12:55 pm

Return to Zend Framework

Who is online

Users browsing this forum: Google [Bot] and 2 guests