Welcome Guest, Not a member yet? Register   Sign In
Creating a view dynamically
#1

[eluser]jzmwebdevelopement[/eluser]
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

Code:
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.




Theme © iAndrew 2016 - Forum software by © MyBB