We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36457 ☆ A M B ☆
    • 100 Posts
    At the moment, every route or URI is made by creating a new resource and assign an URI value to it. I wonder: is there any way to handle an URI and assign it to custom controller (like most of other frameworks do)?
    For example: to make Login package worked, we have to create resources include some snippets, IMO it'll be more convenient for new users if those resources are created automatically (which is possible while installing a package), or handle certain URI(s) automatically (by plugins?).
    My suggestion is, we can create a folder to include auto resources, e.g: an_x_package/assets/components/resources/an_x_uri_.class.php. Then, in an_x_uri.class.php we can call or work on a set of processes to produce final page.
    I think this way will give us more advanced than creating new resources just for hooking some action snippets in.
    What do you think of this? And most importantly, where I can hack to make it right?