another_noob Posted February 21, 2013 Share Posted February 21, 2013 Started into the book and all went fine up to the part in chapter 2 where I invoke yiic. I would enter C:\xampp\yii-1-1-13\framework>yiic.php webapp C:\xampp\htdocs\testdrive and all that would happen is the yiic.php file would automatically open in Notepad++. I tried different paths as suggested in the book, but all I got was the same thing. I changed yiic.php to yiic.bat, and my webapp was auto-magically created. I found that suggestion after an hour of Google searching. I am running php 5.4.4 on a Windows Vista development machine. Things are working fine from there. Did I miss something somewhere? Link to comment Share on other sites More sharing options...
Jonathon Posted February 21, 2013 Share Posted February 21, 2013 I would suspect you need to start your command with "php" first. so php C:\xampp\yii-1-1-13\framework..........rest of command Link to comment Share on other sites More sharing options...
another_noob Posted February 22, 2013 Author Share Posted February 22, 2013 Ah, thanks Jonathon. I got a syntax error with that. I entered a slight variation of your suggestion and this is what worked: C:\xampp\yii-1-1-13\framework>php yiic.php webapp C:\xampp\htdocs\testdrive I had to preface yiic.php with "php". Thanks for your fast response, it is greatly appreciated! It answered the question very clearly. Link to comment Share on other sites More sharing options...
Recommended Posts