I need to make a dynamic page that is something like : example.com/nameofbook/1
- where 1 is the number of the page.
This are 2 parameters.
I know 2 ways of doing it. 1. In controller I have function page($book, $page) 2. Take from the link the parameters with this->uri->segment.
What should I use and why and which one is safer?
Anyhow when I use the controller with 2 parameters the CSS code doesn't load. When I use 1 it loads.
my route is something like $route['page/(:any)/(:any)']='main/page/$1/$2'
.
Thanks in advance.