hrolsons
asked on
Installing zend framework
I'm having trouble getting zend to work. I have the zend framework on my server and I changed the include in my php.ini to include that directory, but when I run a simple statement it says:
Fatal error: Class 'Zend_Mail_Storage_Pop3' not found in ...
Are you using Zend_Loader::registerAutol oad(); ?
ASKER
I tried that, and got:
Fatal error: Class 'Zend_Loader' not found in ...
While looking at my phpinfo.php I see "include_path" /xyz.com/html/zend/library /
Fatal error: Class 'Zend_Loader' not found in ...
While looking at my phpinfo.php I see "include_path" /xyz.com/html/zend/library
You woud have to use:
include 'Zend/Loader.php';
Zend_Loader::registerAutol oad();
include 'Zend/Loader.php';
Zend_Loader::registerAutol
ASKER
That got me one step closer, now the following fails:
$mail = new Zend_Mail_Storage_Pop3(arr ay('host' => '{localhost:143/notls}',
'user' => 'xxxxk@xxxx.com',
'password' => 'xxxx'));
Fatal error: Class 'Zend_Mail_Storage_Pop3' not found in
$mail = new Zend_Mail_Storage_Pop3(arr
'user' => 'xxxxk@xxxx.com',
'password' => 'xxxx'));
Fatal error: Class 'Zend_Mail_Storage_Pop3' not found in
Can you load other Zend classes like for example:
$test = Zend_Controller_Front::get Instance() ; //Autoloading doesn't work if this fails.
$test = Zend_Controller_Front::get
ASKER
Fatal error: Class 'Zend_Controller_Front' not found in ...
Hi, I have no clue what is going wrong,
If the following code gives a fatal then there is something realy strange going on:
require 'Zend/Loader.php';
Zend_Loader::registerAutol oad();
$test = Zend_Controller_Front::get Instance() ;
I see no reason why the third line should fail if the first two don't, and cannot think of one as well. Their eventualy might be a fairly probable cause, but none I can think of at the moment, I'm sorry.
If the following code gives a fatal then there is something realy strange going on:
require 'Zend/Loader.php';
Zend_Loader::registerAutol
$test = Zend_Controller_Front::get
I see no reason why the third line should fail if the first two don't, and cannot think of one as well. Their eventualy might be a fairly probable cause, but none I can think of at the moment, I'm sorry.
ASKER
Actually, that block of code gives:
Notice: Zend_Loader::Zend_Loader:: registerAu toload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in
And when I change it to:
require 'Zend/Loader.php';
Zend_Loader_Autoloader;
$test = Zend_Controller_Front::get Instance() ;
I get:
Fatal error: Class 'Zend_Controller_Front' not found in ...
Notice: Zend_Loader::Zend_Loader::
And when I change it to:
require 'Zend/Loader.php';
Zend_Loader_Autoloader;
$test = Zend_Controller_Front::get
I get:
Fatal error: Class 'Zend_Controller_Front' not found in ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Presto, you did it!!! Thank You!!!
Just a lurker comment here... Whenever you are debugging, set error_reporting(E_ALL) - this will give you a visual representation of all the "notice" messages. Sometimes that is quite helpful.
Glad to see Roonaan was able to help you.
Cheers, ~Ray
Glad to see Roonaan was able to help you.
Cheers, ~Ray