Hello ALL,
I am developing an application from quite sometime using ZF. The application
is having modules like Zend_Auth, Zend_Acl etc. The application was working
fine on my local system + online, where the PHP version was 5.2.0.
We have updated our online system to PHP 5.2.5 and now the application is
not working there. I am not able to login to the application even, as the
login code is not working. 1st it was not executing the code (even a normal
echo 'hello world') after loading any Model / Class using the code ..
Zend_Loader::loadClass('User');
$objUser = new User();
echo 'hello world';
On debugging, I found that this is due to the unavailability of class
constructor so i have created a __construct in my User class. This fixed the
1st problem and i was able to view the echo 'hello world' message. But that
was not an end of my problems.
The 2nd problem came in Zend_Auth code, here is the code ..
echo 'aaaaaaaaaaa
';
// Loading Zend_Auth class and calling authentication method
$auth = Zend_Auth::getInstance();
print_r($auth);
$result = $auth->authenticate($authAdapter);
die('--- bbbbbbbbb');
In the above code, I am able to view 'aaaaaaaa' message and the
print_r($auth) BUT NOT able to view the 'bbbbbb' message as it is not
executing anything after $result = $auth->authenticate($authAdapter);
I completely have No idea, why this happened?, what is the reason behind
this? Why the 1st problem occur because of unavailability of class
constructor.
Can anyone guide me in this?
Thanks
--
View this message in context:
http://www.nabble.com/URGENT-%3A-Help-Required-%21-tp15155672s16154p15155672.html
Sent from the Zend Framework mailing list archive at Nabble.com.