Welcome Guest, Not a member yet? Register   Sign In
Comment script at bottom of page
#2

[eluser]Christopher Blankenship[/eluser]
Okay from what I am understanding and correct me if I am wrong, you are basically wanting to add a footer with functionality?

If this is indeed the case this is how I did it.
Code:
/* on the views added this respectively */
<?php include HEADER; ?>
<?php include FOOTER; ?>

/* controller */
class Indexhome extends Controller {
   function Indexhome()
   {
      parent::Controller();
      define('HEADER', APPPATH . 'views/header.php');
      define('FOOTER', APPPATH . 'views/footer.php');
   }
      function index()
      {    
         $data['title'] = 'Example';
         $this->load->view('indexhome', $data);
      }

}
This may or not be the best way but I myself am fairly new to CI also look at http://ellislab.com/forums/viewthread/55574/


Messages In This Thread
Comment script at bottom of page - by El Forum - 07-02-2007, 03:50 PM
Comment script at bottom of page - by El Forum - 07-02-2007, 06:28 PM
Comment script at bottom of page - by El Forum - 07-03-2007, 04:11 AM
Comment script at bottom of page - by El Forum - 07-03-2007, 04:24 AM
Comment script at bottom of page - by El Forum - 07-03-2007, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB