Dynamic Routes Issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Dynamic Routes Issue (/showthread.php?tid=65525) |
Dynamic Routes Issue - wolfgang1983 - 06-22-2016 I am using database driven routes with my HMVC. As shown here PHP Code: require_once(BASEPATH .'database/DB.php'); The $row['route'] produces a controller name I have set in database I would like to know is it possible to detect which folder that file controller is in and use a $folder variable like above? The var dump of scan dir PHP Code: array (size=5) I have tried it with this code have I done it correct to find files PHP Code: require_once(BASEPATH .'database/DB.php'); |