SEF urls from the database: please help, i've already spend 6h trying to find it out :s |
[eluser]Tottys Design[/eluser]
Hy, I would like to have my urls like this, not hardcoded. only gallery is wrote in the route array www.mysite.com/gallery/dynamic_folder_form_db1/dynamic_folder_form_db2/dynamic_folder_form_db3 how can i do this? This is my code: Code: function getSubContents(){
[eluser]überfuzz[/eluser]
Have a method looking throw the url. Use the result to query the database.
[eluser]Tottys Design[/eluser]
Heh, thanks. Now I get it, I was using a bad .htaccess and was hidding all my vars. Now I'm facing some troubles with the breadcrumbs, and links to the parent page, but i think i can fix them
[eluser]cahva[/eluser]
Hi, I did this with _remap() so all methods will go through it. Heres an example that I use in one of my projects. It uses datamapper ORM and I have a field called "slug" that containts the SEF path to the page. I removed some of the stuff but you should see how it works: Code: <?php
[eluser]Tottys Design[/eluser]
[quote author="cahva" date="1258144190"]Hi, I did this with _remap() so all methods will go through it. Heres an example that I use in one of my projects. It uses datamapper ORM and I have a field called "slug" that containts the SEF path to the page. I removed some of the stuff but you should see how it works: Code: <?php Thanks |
Welcome Guest, Not a member yet? Register Sign In |