Help with Zend Framework

Started on the old forum in March 2010 · view the original in the archive · old links redirect here

2 replies · 425 views · started 16 years ago · 1 min read

2 participants
Mysterio Lead · 630 posts #1
<?php // includes set_include_path('.' . PATH_SEPERATOR . get_include_path() . PATH_SEPERATOR . '../library/' . PATH_SEPERATOR . '../application' ); // front require_once 'Zend/Controller/Front.php'; Zend_Loader::registerAutoload(); // database connect new DbInitialize(); // start mvc Zend_Layout::StartMvc($option); ?>

Error is: failed to open stream: No such file or directory in xxxxxxxxxxxxxxx/index.php on line 12


Why this happen?

mysterio.al - programming is a functional art

Mysterio Lead · 630 posts #3

Don't act as a proud-spirited, mobileGIGS . I replaced the real path, because it was long and not important, nothing more.

If you know Zend Framework, that is the index.php file, and the Front.php (currently in ../library/Zend/Controller/Front.php) is not missing, but the configuration is incorrect!

Anyway, thanks for the answer! Here is the correct code:

ini_set('include_path', ini_get('include_path') .PATH_SEPARATOR . '../library/'); require_once('Zend/Loader/Autoloader.php'); Zend_Loader_Autoloader::autoload('Zend_Controller_Front');

mysterio.al - programming is a functional art

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close