Welcome Guest, Not a member yet? Register   Sign In
Including a View in a main page from a Nav Side Bar

I'm curious how i could go about only changing the main page(middle) from clicking links on a left side menu when i click on the links to generate pages. I can only get the left side menu to change where is want the main page to change to the emplink page that i call in the side_menu controller. hmmm

         <?= link_tag($cssfile) ?>  
        <div id="navigation-block">  
            <ul id="sliding-navigation">  
                <li class="sliding-element"><a href = "http://localhost/ci1/index.php/side_menu/emplink"> Employees</a></h3></li>  
                <li class="sliding-element"><a href = "#"></a></li>  
               <li class="sliding-element"><a href="#">Link 2</a></li>  
               <li class="sliding-element"><a href="#">Link 3</a></li>  
              <li class="sliding-element"><a href="#">Link 4</a></li>  
                <li class="sliding-element"><a href="#">Link 5</a></li>  


class Side_menu extends Controller {

  function Side_menu()

  function index()
        //default method, gets data from model
        //and lists all employees using default view
          $data['title'] = "Main Content";
        //$data['heading'] = "";
          /// LOADING PARTIALS //
         $this->load->view('sidemenu', $data);
        function emplink()
          //form for adding an entry';



Messages In This Thread
Including a View in a main page from a Nav Side Bar - by El Forum - 06-18-2009, 12:46 AM

Theme © iAndrew 2016 - Forum software by © MyBB