where is the ADVANCE video tutorials? |
[eluser]Pascal Kriete[/eluser]
Well, I can't point you at a tutorial that does what you want (but I'll get to that in a second). A few community members have some excellent tutorials though. Namely Elliot and Derek. Michael also had a very amusing drunken one, but it bit the dust along with the other good stuff on his blog. Now on to your problem. What you want to do is give each blog entry another field called 'permalink' or something like that. That field will contain the url title as you would have it in your url (flying-aardvark-extinct for example). Then you create a controller, say blog, with a function entry. Now your url becomes example.com/blog/entry/flying-aardvark-extinct . The third segment will be passed to your function as an argument. Code: function entry ($permalink = '') Having /entry in there seems rather redudant, so we'll define a route (application/config/routes.php) to get rid of that: Code: $route['blog/(:any)'] = "blog/entry/$1"; Hope that clears things up for you. Feel free to ask questions as you go along. The community and user-guide are very useful when you're stuck on a problem. Welcome to CodeIgniter. |
Messages In This Thread |
where is the ADVANCE video tutorials? - by El Forum - 05-24-2008, 05:49 AM
where is the ADVANCE video tutorials? - by El Forum - 05-24-2008, 07:27 AM
where is the ADVANCE video tutorials? - by El Forum - 05-24-2008, 08:35 PM
where is the ADVANCE video tutorials? - by El Forum - 05-24-2008, 10:04 PM
where is the ADVANCE video tutorials? - by El Forum - 05-25-2008, 02:16 AM
where is the ADVANCE video tutorials? - by El Forum - 05-25-2008, 04:05 AM
where is the ADVANCE video tutorials? - by El Forum - 05-22-2013, 11:25 PM
where is the ADVANCE video tutorials? - by El Forum - 05-23-2013, 04:19 AM
where is the ADVANCE video tutorials? - by El Forum - 05-23-2013, 07:51 AM
|