Change url help |
[eluser]theprodigy[/eluser]
[quote author="TechCadre" date="1273027266"][quote author="theprodigy" date="1273025231"]you may need to change the link in the views. If it points to About_us, you need to change it to point to Customers (as well as changing the name and constructor of the class). It's also worth a look at the config/routes.php file to see what the default controller is set to.[/quote] I tried the config/routes.php thing but it did nothing. As I am new to this can you explain to me what you mean by "changing name and constructor of the class"?[/quote] What I meant was what was explained up above (by steelaz). Your controller needs to change from Code: <?php Code: <?php Notice your class name and constructor are changed from About_us to Customers. Also, the first part I was talking about was the links that point you to the page in question. If they are linking to (using your example) http://www.site.com/about_us/ then they need to change to http://www.site.com/customers/. The links may be in the form of Code: echo anchor('about_us'); Code: echo anchor('customers'); If you go with this change, there should be no reason to alter config/routes.php unless the default_controller is set to about_us |
Messages In This Thread |
Change url help - by El Forum - 04-28-2010, 03:55 PM
Change url help - by El Forum - 04-28-2010, 04:08 PM
Change url help - by El Forum - 04-28-2010, 04:10 PM
Change url help - by El Forum - 04-28-2010, 04:20 PM
Change url help - by El Forum - 04-28-2010, 04:22 PM
Change url help - by El Forum - 05-04-2010, 02:58 PM
Change url help - by El Forum - 05-04-2010, 03:07 PM
Change url help - by El Forum - 05-04-2010, 03:14 PM
Change url help - by El Forum - 05-04-2010, 03:41 PM
Change url help - by El Forum - 05-04-2010, 03:55 PM
Change url help - by El Forum - 05-04-2010, 04:15 PM
Change url help - by El Forum - 05-06-2010, 12:37 AM
|