Added: 9 months ago
From: IterativeRedux
Views: 7,548
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (6)

Sign In or Sign Up now to post a comment!
  • how to modify this generated script because i have some different actions in every case from my database. thank you.

  • 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 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

  • and how do we actually do it (no index.php)

  • at 9:54, it leaves out index.php removal and skips ahead.

  • @scotnery True, how do you do it?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more