After reading The Definitive Guide to Yii and completing the Creating Your First Yii Application, I decided to try tackling the process of removing ‘index.php’ from my URLs. My .htaccess file is correct and I set the showScriptName to false in main.php. Now when I go to access http://localhost/~nixerpenguin/yii/testdrive/user I find that my Pagination links are broken.
The AJAX version NOR the HTML version of CListView work. Am I missing something or do I need to recreate the Model and CRUD after making this change in configuration? Logic tells me that this is a completely separate issue, however, I would have believed someone would have tackled this problem by now. Thank you in advanced for your help.
It appears the URLs are being created in GET instead of PATH format. I looked through the documentation to change this, but turned up zero so far. In my planned application I want all of my URLs to be in the PATH format.
cause if you are hardocodign the links, then is dificult that works…
But if you let the aplication make the urls for you (using the createUrl() method, defined in CController) then this always works, no matter if you use PATH format or not…
I am using the yiic shell to create the User model and the CRUD as explained in the tutorial (see original post). Aside from the tutorial I have only modified protected/config/main.php under urlManager for showScriptName=>false and added a .htaccess file.