Help with linking categories |
[eluser]Stefan Hueg[/eluser]
Okay after reading your post three times I may have got what you want. You want paths like www.myurl.com/hair-slides and have it routed to your controller? Then take a look at routes.php in your application/config folder and add the following route: Code: $route['(:any)'] = 'home/pages/$1'; But I would not recommend this because you will never be able to access any other controller functions UNTIL you define them specifically in your routes.php. As a side note: If you set data to an array (like $data['test'] = 'val') make sure to define your array first ($data = array()), else you will get nasty errors someday. |
Messages In This Thread |
Help with linking categories - by El Forum - 05-01-2012, 12:40 PM
Help with linking categories - by El Forum - 05-01-2012, 01:04 PM
Help with linking categories - by El Forum - 05-01-2012, 01:15 PM
Help with linking categories - by El Forum - 05-01-2012, 01:36 PM
Help with linking categories - by El Forum - 05-01-2012, 01:41 PM
Help with linking categories - by El Forum - 05-01-2012, 01:53 PM
Help with linking categories - by El Forum - 05-01-2012, 01:55 PM
Help with linking categories - by El Forum - 05-01-2012, 02:03 PM
Help with linking categories - by El Forum - 05-01-2012, 02:07 PM
Help with linking categories - by El Forum - 05-01-2012, 02:11 PM
Help with linking categories - by El Forum - 05-01-2012, 02:17 PM
Help with linking categories - by El Forum - 05-01-2012, 02:19 PM
Help with linking categories - by El Forum - 05-01-2012, 02:21 PM
Help with linking categories - by El Forum - 05-01-2012, 02:22 PM
Help with linking categories - by El Forum - 05-01-2012, 02:24 PM
Help with linking categories - by El Forum - 05-01-2012, 02:27 PM
Help with linking categories - by El Forum - 05-01-2012, 02:28 PM
Help with linking categories - by El Forum - 05-01-2012, 02:31 PM
Help with linking categories - by El Forum - 05-01-2012, 02:34 PM
|