How does it know which page to load? |
Ok, still reading the tutorial and trying to understand how the framework works
Code: public function view($page = 'home') So when you go to index.php/pages/view then $title is home, which is clear, but when you go to index.php/pages/view/about then $title is About. How is it accomplished? Because here is explicitly says - function view($page = 'home') |
Messages In This Thread |
How does it know which page to load? - by lexxtoronto - 03-05-2015, 12:17 PM
RE: How does it know which page to load? - by obiron - 03-05-2015, 12:37 PM
RE: How does it know which page to load? - by lexxtoronto - 03-05-2015, 01:08 PM
RE: How does it know which page to load? - by RobertSF - 03-05-2015, 04:50 PM
RE: How does it know which page to load? - by CroNiX - 03-05-2015, 02:18 PM
RE: How does it know which page to load? - by lexxtoronto - 03-06-2015, 01:43 PM
RE: How does it know which page to load? - by RobertSF - 03-06-2015, 08:43 PM
|