yuxunbin / yafphp

Automatically exported from code.google.com/p/yafphp
0 stars 0 forks source link

PHP Fatal error: Class 'Yaf_Application' not found in /home/ali/Projects/www/sample/index.php on line 9 #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just running the sample code from the site gives me the error

What is the expected output? What do you see instead?
The application doesnt run

What version of the product are you using? On what operating system?
Fresh installation using pecl

Please provide any additional information below.
The installation went smoothly and I think I have installed yaf correctly as 
running:

php -m | grep yaf

returns yaf

However a phpinfo doesn't show any listing of YAF anywhere. Have I missed 
something here?

Original issue reported on code.google.com by mohammad...@gmail.com on 6 May 2012 at 6:33

GoogleCodeExporter commented 9 years ago
Set yaf.use_namespace = 0 in your php.ini
OR
Use Yaf with Namespace like Yaf\Application instead of Yaf_Application

Original comment by info@hlop.de on 19 Dec 2012 at 7:28