add an ID automatically to URL |
i think it can be done in better way : new table that contains slugs for menu items :
table menu items : Code: ID title url permission parent_id .... table menu slugs : Code: ID id_menu slug in this case when user types one of this URLs, must be routes to /default controller : /default /home-page /default-page i think joomla uses same way (i think) , now my problem is " how i can get this rules from database and add them to config/routes.php dynamically at runtime,? //---------------------------------------------------------- $route['home-page'] = 'default'; $route['default-page'] = 'default'; //---------------------------------------------------------- i use wiredesignz / codeigniter-modular-extensions-hmvc in my application,
ressan.ir
CI is nice |
Messages In This Thread |
add an ID automatically to URL - by nasser.man - 05-04-2015, 11:04 PM
RE: add an ID automatically to URL - by nasser.man - 05-05-2015, 08:28 AM
RE: add an ID automatically to URL - by codinghamster - 05-05-2015, 08:55 AM
RE: add an ID automatically to URL - by nasser.man - 05-05-2015, 11:03 AM
RE: add an ID automatically to URL - by codinghamster - 05-06-2015, 02:06 AM
|