In this Tutorial we walk you through creating your first yii application. This is part 7 of 8 videos related to this topic. This video focuses on Gii, which is a tool in yii for generating Models, Views, Controllers and CRUDs. We also touch on the main.php file and its significance to the yii framework and finally, we begin talking about how to get data from a mysql database onto the screen.
how to modify this generated script because i have some different actions in every case from my database. thank you.
AIandRIN 3 weeks ago in playlist More videos from IterativeRedux
@fragfoo To remove index.php from the URLs you need to do two things:
1) in main.php where you see 'urlFormat'=>'path' (in the 'urlManager' section), add another parameter: 'showScriptName' => false, this will remove index.php from the links
2) In the webroot folder of your app, add a .htaccess rule (for Apache, IIS will need different settings) with a rewrite rule of: RewriteRule . index.php This will help your web server still call index.php
johnhousser 4 months ago in playlist More videos from IterativeRedux
Here is how to remove index.php from the URL: search for "Using search engine and user friendly URLs" on the wiki documentation of the yii framework homepage
fragfoo 7 months ago
@scotnery True, how do you do it?
fragfoo 7 months ago
and how do we actually do it (no index.php)
dreznik 7 months ago
at 9:54, it leaves out index.php removal and skips ahead.
scotnery 8 months ago