Can't Find Include Files

For programming and general questions on Zend Framework

Can't Find Include Files

Postby cougargulch on Sun Jun 07, 2009 3:55 am

Previously my folders were organized like this:
domain
---library
---public_ftp
---public_html
------application
------data
------index.php

everything was working fine. The library/Zend was out of web root. Then I decided to place the application and data folders and subfolders out of the web root, as well (the entire ZF).

domain
---application
---data
---library
---public_ftp
---public_html
------index.php

The problem now is that the Zend_ or Zend/ are not recognized even though the folders are listed in php.ini. I was able to resolve the problem by appending every Zend include or call with 'library/Zend' but who wants to do that with the entire framework.

So I put up this test code in public_html/index.php:
Code: Select all
echo get_include_path(); //.:/usr/lib/php:/usr/local/lib/php:/usr/local/library/Zend

if (file_exists('Zend/Controller/Front.php')) {
   echo '<p>Zend/Controller/Front.php does exist';
} else {
   echo '<p>Zend/Controller/Front.php does NOT exist';

}

//Zend/Controller/Front.php does NOT exist


Do you have any idea why this happened and how I can remedy the problem?
cougargulch
 
Posts: 27
Joined: Sun Jun 07, 2009 3:50 am

Re: Can't Find Include Files

Postby brunitto on Mon Jun 08, 2009 4:19 pm

Please provide us your Front Controller - index.php - file.

It must be some problem with APPLICATION_PATH setup.
Ookie dookie!
brunitto
 
Posts: 111
Joined: Fri May 29, 2009 10:10 pm
Location: São Paulo - Brazil

Re: Can't Find Include Files

Postby cougargulch on Mon Jun 08, 2009 4:22 pm

Brunitto - thanks, been all through that file. This morning, I rebuilt the entire site (ouch!) and found a minute refactor problem. I was noticing the refactor in Zend Suite is often incomplete and that was the problem.

Thanks for answering my post anyway. It is good to know we have people here who care about each other.
cougargulch
 
Posts: 27
Joined: Sun Jun 07, 2009 3:50 am

Re: Can't Find Include Files

Postby brunitto on Mon Jun 08, 2009 5:42 pm

You are welcome, actually we can learn a lot helping others...

:)
Ookie dookie!
brunitto
 
Posts: 111
Joined: Fri May 29, 2009 10:10 pm
Location: São Paulo - Brazil


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 2 guests

cron