Accessing dynamic links in the format of domain.com/<dynamic_page_name> |
Well, you could make routes for every page name as well.
PHP Code: $route["page_name1"] = "controller/page_name1"; But, then each time you add/delete/update a page controller or method, you will have to update the routes. But would still be a better solution than my previous suggestion. I was probably drunk then. Edit: of course if you have a lot of those pages stored in the database, and you want to have it dynamic, you can easily extend the router and make dynamic routes for those pages this way.
Website: http://tomaz.lovrec.eu
GitHub: https://github.com/slax0rr Twitter: https://twitter.com/slax0rr |
Messages In This Thread |
Accessing dynamic links in the format of domain.com/<dynamic_page_name> - by iconsh02 - 10-05-2015, 08:06 AM
RE: Accessing dynamic links in the format of domain.com/<dynamic_page_name> - by slax0r - 10-06-2015, 01:57 AM
RE: Accessing dynamic links in the format of domain.com/<dynamic_page_name> - by iconsh02 - 10-11-2015, 08:30 AM
RE: Accessing dynamic links in the format of domain.com/<dynamic_page_name> - by slax0r - 10-12-2015, 02:17 AM
RE: Accessing dynamic links in the format of domain.com/<dynamic_page_name> - by iconsh02 - 10-18-2015, 11:23 AM
|