I have the same folder structure as this guy in this video: (https://www.youtube.com/watch?v=T9To0blu9qs), but it's not working me like in the video. If I write localhost/test/items in the url it won't work. But if I change the get('/items', 'views/items.php') to get('/items', 'items.php') it will work.
My other problem is, when I have the get('/product/$type/', 'product.php'), in the product.php I cannot get the $type variable, because it does not exist. Any idea why this is happening?
I have the same folder structure as this guy in this video: (https://www.youtube.com/watch?v=T9To0blu9qs), but it's not working me like in the video. If I write localhost/test/items in the url it won't work. But if I change the get('/items', 'views/items.php') to get('/items', 'items.php') it will work.
My other problem is, when I have the get('/product/$type/', 'product.php'), in the product.php I cannot get the $type variable, because it does not exist. Any idea why this is happening?