proggR Posted October 30, 2010 Share Posted October 30, 2010 I'm finally trying to use Zend Framework since I have a few projects I want to start in the near future. I should make a note that I'm using MAMP which has been working fine for serving other PHP files. I have downloaded the framework and have it located in /bin/ZendFramework. I created the alias zf=/bin/ZendFramework/bin/zf.sh and used it to create a project in my Sites folder, which it does. I symlinked the Framework to my new application's library directory. I've modified the httpd.conf file to add a virtual server and added that server to my /etc/hosts file. Now when I go to the virtual server in the browser I get a blank page. To be sure I setup the virtual server correctly I added a new HTML file to the application's public directory which I can access via the browser. After checking the php_error.log file I get the error: [30-Oct-2010 16:44:25] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /Users/proggR/Sites/quickstart/public/index.php on line 26 line 26 is the last line of this bit of code: $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application->bootstrap() ->run(); I haven't bothered to add the frameworks to my include path because a few lines up there is the following code to take care of that: set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../library'), get_include_path(), ))); I'm rather stuck on what to do. I've tried adding error_log("message",0) calls into the index.php file to see if things are working correctly but unless they're going to a different log then they're not showing up at all. To ensure I didn't mess anything up along the way (since I was viewing the source of a number of files and thought I may have edited and saved one by accident), I've also repeated the process with no better results. If anyone else has had this error or could help out it would be much appreciated. In the mean time I'll continue Googling and searching the forums. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/217317-issues-with-zf-create-project/ Share on other sites More sharing options...
thehippy Posted October 31, 2010 Share Posted October 31, 2010 Are you running PHP 4? ZF needs PHP 5 Quote Link to comment https://forums.phpfreaks.com/topic/217317-issues-with-zf-create-project/#findComment-1128617 Share on other sites More sharing options...
proggR Posted October 31, 2010 Author Share Posted October 31, 2010 Wow, apparently I am not. Thank you very much for pointing that out. Quote Link to comment https://forums.phpfreaks.com/topic/217317-issues-with-zf-create-project/#findComment-1128643 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.