• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a view dynamically

Currently I have:

View: general_information

Controller: main

In my view I am pulling items from the database that will be dynamically set via service options entered by the user in the admin area (currently just entered into the db by hand)

What I am trying to create is when the data of the general_information is filled out I would like to create a page dependent on what service option is selected.

I currently have this section of code but I am unsure how to generate a view from this due to what my ideal situation is

if (isset($_REQUEST['general_options']))
    $page = strtolower(str_replace(" ", "", $_REQUEST['general_options']));

    $this->load->view( $page, $data, FALSE);

My ideal situation would be that I could set the questions and types for each view via the admin area but I am trying to get this done first.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.