How to Display php errors when using Zend framework

http://jumnuoy.blogspot.com/2013/01/how-to-display-php-errors-when-using.html

1 - I changed the following line in configs/application.ini



Open urproject/application/config and open application.ini
resources.frontController.params.displayExceptions = 0
to
resources.frontController.params.displayExceptions = 1
 or


phpSettings.display_startup_errors = 1


phpSettings.display_errors = 1
2 - and in the .htaccess 
 RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


to

SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


1 - I changed the following line in configs/application.ini



Open urproject/application/config and open application.ini
resources.frontController.params.displayExceptions = 0
to
resources.frontController.params.displayExceptions = 1
 or


phpSettings.display_startup_errors = 1


phpSettings.display_errors = 1
2 - and in the .htaccess 
 RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


to

SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

0 comments:

Post a Comment

Followers

រឿង ដែលខានមើលមិនបាន

Contact us

Name

Email *

Message *

Your Language

Online

Copyright 2009 Simplex Celebs All rights reserved Designed by www.sruol9.com