Difference between
#1 and
#2 of
Syntax check
Revision #2 has been created by Russell England on May 4, 2011, 5:40:42 PM with the memo:
My mistake, just need php not apache
« previous (#1)
Changes
Title
unchanged
Syntax check
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
php, syntax
Content
changed
Scenario
------------------
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
Solution
------------------
If you are using linux (Ubuntu in my case) and
a local Apache serverhave php locally, then run the following from a terminal from the protected directory
```php
find . -name \*.php -exec php -l "{}" \;
```[...]