Search code examples
phpcodeignitersuperglobals

converting from php $_GET variables to code igniter


I am learning to use the CodeIgniter framework. I am coming form a world where get variables determined which body file to include in the index.php.

So with the MVC style coding I am unsure how to have a skeleton view which subsequent views are just the body of the page.

any Ideas?


Solution

  • My suggestion is to try and load multiple views based on the data being sent through the $_GET variable. The documentation for CodeIgniter explains how to do this:

    http://codeigniter.com/user_guide/general/views.html

    The skeleton parts of your site would always be loaded by the controller with the part that changes dependent on the $_GET data.