Welcome Guest, Not a member yet? Register   Sign In
How does one to extend Controller class?
#5

[eluser]Boris Strahija[/eluser]
It's really simple to load views from a view. I have it setup like this:
Code:
<?php
    // Include header view
    $this->load->view('_inc/header');
    
?>
    
    <div id="main">
        <div id="cont" class="clearfix">
            <h2>&lt;?php echo $title; ?&gt;</h2>
            
            &lt;?php get_notice(); ?&gt;
            &lt;?php
                //load the content view
                if (isset($content_view)) :
                    ?&gt;<div id="mid">&lt;?php
                    $this->load->view($content_view);
                    ?&gt;</div>&lt;?php
                endif;
            ?&gt;
        </div>
    </div>
    
    <div id="push"></div>

&lt;?php
    // Include footer view
    $this->load->view('_inc/footer');
    
?&gt;


Messages In This Thread
How does one to extend Controller class? - by El Forum - 08-30-2009, 09:05 AM
How does one to extend Controller class? - by El Forum - 08-30-2009, 09:09 AM
How does one to extend Controller class? - by El Forum - 08-30-2009, 09:38 AM
How does one to extend Controller class? - by El Forum - 08-30-2009, 09:49 AM
How does one to extend Controller class? - by El Forum - 08-30-2009, 11:49 AM
How does one to extend Controller class? - by El Forum - 08-30-2009, 12:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB