url's form: localhost/dpfoods/controller_name/method_name?id=
I take controller_name, method_name by explode function and pass them to loader class. The loader class will select controller and then controller will select function.
in index.php (default page, menu above displays normal):
// main menu
Home >> About >> ...
Home - localhost/dpfoods/user/welcome
About - localhost/dpfoods/user/about
but in other page, apple details page example:
// main menu
Home >> About >> ...
Home - localhost/dpfoods/user/user/welcome
About - localhost/dpfoods/user/user/about
// other menu
Home >> Fruits and vegetables >> apple
if true:
Home - localhost/dpfoods/user/welcome
Fruits and vegetables - localhost/dpfoods/user/category?id-category=4
apple - localhost/dpfoods/user/details?id-product=25
// but all hide links in this menu are the same
localhost/dpfoods/user/details?id-product=25
Bookmarks