SnOoPy Posted February 22, 2010 Report Share Posted February 22, 2010 (edited) Dear all, This is a simple changelog to use the project files from the awesome tutorial of Jon Lebensold on windows (and correct some errors on Mac). Windows Environment checking ERROR : The following output with additional error maybe Article Manager layout()->content ?> render('primary-navigation.phtml'); ?> placeholder('secondaryNavigation'); ?> Here it goes the footer SOLUTION : Be sure to turn ON the short tag in PHP if you use WAMP, open php.ini and change the value of the following line : ; http://php.net/short-open-tag short_open_tag = On ERROR : CSS Trouble To fix any trouble with the CSS, create a virtualhost in Apache. In the httpd.conf file, add the virtual host name " articlemanager " with the following lines (according to your own DocumentRoot) : # site web articlemanager Options All DocumentRoot /Volumes/DATA/snoop/Sites/ArticleManager/html ServerName articlemanager NameVirtualHost articlemanager Open the file " hosts " from C:\WINDOWS\system32\drivers\etc and add the following line : 127.0.0.1 articlemanager ArticleManager Files update Secondly get the files : http://www.killerphp.com/zend-framework/videos/setting-up-mvc-zend-downloads.zip - Unzip the file in the Wamp dir "x:\wamp\www\" , you get a folder "ArticleManager" with 3 folders : "application", "html" and "library". - Make the following updates : ERROR : Notice: Undefined variable: option in F:\wamp\www\ArticleManager\html\index.php on line 26 SOLUTION : In " html / index.php " at line 26, replace : Zend_Layout::startMvc($option); by Zend_Layout::startMvc($options); at line 34, to enable the error tracking, replace : //$controller->throwExceptions(true); // should be turned on in development time by $controller->throwExceptions(false); // should be turned on in development time Update to Zend Framework 1.10 In the folder " ArticlaManger / library " rename " Zend " folder into " Zend_old " then copy/past the new " Zend " folder in version 1.10. In " html / index.php " at line 18, replace Zend_Loader::registerAutoload(); With : include_once('Zend/Loader/Autoloader.php'); $loader = Zend_Loader_Autoloader::getInstance(); $loader->setFallbackAutoloader(true); $loader->suppressNotFoundWarnings(false); Hope that can help other people and enjoy MVC in Zend PS: Sorry about the various updates, feel free to delete quotes from my previous post. Edited February 25, 2010 by SnOoPy Quote Link to comment Share on other sites More sharing options...
krillz Posted February 22, 2010 Report Share Posted February 22, 2010 (edited) Dear all, I am a beginner in OOP and PHP5, but the discovering of MVC and ZF with the video of Jon is awesome ! http://www.killerphp.com/zend-framework/videos/ However I get some troubles with the project file : http://www.killerphp.com/zend-framework/videos/setting-up-mvc-zend-downloads.zip I use WAMP with PHP 5.3 / MySQL 5 and would like to use Zend Framework 1.10 I really want to use the project file as basis for my project BUT from the stack the Zend version provided in the zipfile gives this output : Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in F:\wamp\apps\ZendFramework-1.10.0\library\Zend\Loader.php on line 223 Article Manager layout()->content ?> render('primary-navigation.phtml'); ?> placeholder('secondaryNavigation'); ?> Here it goes the footer I tried to change the line : Zend_Loader::registerAutoload(); With : include_once('Zend/Loader/Autoloader.php'); $loader = Zend_Loader_Autoloader::getInstance(); $loader->setFallbackAutoloader(true); $loader->suppressNotFoundWarnings(false); But it's the same problem Then I tried with the ZF 1.10 and it's exactly the same ... Do someone has any idea to start the tutorial on Windows with ZF 1.10 please ? Note : the tutorial is given in a MAMP environment and yes it worked on my Macbook yesterday, but not at all on Windows .... I wonder why :/ Download an earlier version, it seems the project files uses deprecated function, in other words functions that are no longer in use by the framework. So you need to downgrade the zend framework until you find a version where the functions were still in use. Edited February 22, 2010 by krillz Quote Link to comment Share on other sites More sharing options...
falkencreative Posted February 22, 2010 Report Share Posted February 22, 2010 Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in F:wampappsZendFramework-1.10.0libraryZendLoader.php on line 223 Article Manager layout()->content ?> render('primary-navigation.phtml'); ?> placeholder('secondaryNavigation'); ?> Here it goes the footer I tried to change the line : Zend_Loader::registerAutoload(); With : include_once('Zend/Loader/Autoloader.php'); $loader = Zend_Loader_Autoloader::getInstance(); $loader->setFallbackAutoloader(true); $loader->suppressNotFoundWarnings(false); But it's the same problem Then I tried with the ZF 1.10 and it's exactly the same ... Can you describe the error message you are getting after you change the "Zend_Loader::registerAutoload();" line? Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.