I use the page modules to created some pages which is using some layout. So i have to pass some vars to saved page in the data base, i am thinking to use a controller page to do some database queries. However one question , currently i am setting the routing to this page like "en/home" which means it will access the page using
http://localhost/cms/en/home. I suppose i need to create a en.php controller with codes such as "class En extends CI_Controller" then put home as a function. However is this correct? is it possible i create a home.php controller which is neater and yet i can still use "en/home" as the route? "en/" will always be a prefix for all pages.
Comments
http://docs.getfuelcms.com/general/pages-variables#view_file
If you want to avoid people from accessing /home, you can setup a redirect:
'home' => 'en/home'
http://docs.getfuelcms.com/general/redirects
Also, it looks like by the "en" that you are creating a multi-language site. FUEL has functionality built into it to help handle that including injecting the language segment (e.g. "en") into URLs automatically.