• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some help..

#33
[eluser]zilverdistel[/eluser]
Great it works, but I have another suggestion for serving up static pages.

I'd make a controller page.php

Code:
class Page extends Controller {
  private $content = '';
  
  function Page()
  {
    parent::Controller();
  }

  function index($id)
  {
    $this->content = $this->load->view($id,'',true);
  }

  function __output()
  {
    echo $this->load->view('html_start','',true);
    echo $this->content;
    echo $this->load->view('html_end','',true);
  }
}

then in your view folder, you can make all the static pages you want.

if you make Page your default controller, you're set.


Messages In This Thread
Some help.. - by El Forum - 03-11-2008, 09:05 AM
Some help.. - by El Forum - 03-11-2008, 09:40 AM
Some help.. - by El Forum - 03-11-2008, 04:12 PM
Some help.. - by El Forum - 03-11-2008, 04:37 PM
Some help.. - by El Forum - 03-12-2008, 01:59 AM
Some help.. - by El Forum - 03-12-2008, 02:23 AM
Some help.. - by El Forum - 03-12-2008, 02:27 AM
Some help.. - by El Forum - 03-12-2008, 02:37 AM
Some help.. - by El Forum - 03-12-2008, 02:40 AM
Some help.. - by El Forum - 03-12-2008, 02:40 AM
Some help.. - by El Forum - 03-12-2008, 02:41 AM
Some help.. - by El Forum - 03-12-2008, 02:42 AM
Some help.. - by El Forum - 03-12-2008, 02:42 AM
Some help.. - by El Forum - 03-12-2008, 02:44 AM
Some help.. - by El Forum - 03-12-2008, 02:49 AM
Some help.. - by El Forum - 03-12-2008, 02:51 AM
Some help.. - by El Forum - 03-12-2008, 02:59 AM
Some help.. - by El Forum - 03-12-2008, 03:01 AM
Some help.. - by El Forum - 03-12-2008, 03:02 AM
Some help.. - by El Forum - 03-12-2008, 03:03 AM
Some help.. - by El Forum - 03-12-2008, 03:04 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:06 AM
Some help.. - by El Forum - 03-12-2008, 03:07 AM
Some help.. - by El Forum - 03-12-2008, 03:07 AM
Some help.. - by El Forum - 03-12-2008, 03:08 AM
Some help.. - by El Forum - 03-12-2008, 03:11 AM
Some help.. - by El Forum - 03-12-2008, 03:12 AM
Some help.. - by El Forum - 03-12-2008, 03:13 AM
Some help.. - by El Forum - 03-12-2008, 03:21 AM
Some help.. - by El Forum - 03-12-2008, 07:43 AM
Some help.. - by El Forum - 10-10-2008, 02:07 PM
Some help.. - by El Forum - 10-14-2008, 03:31 AM
Some help.. - by El Forum - 10-14-2008, 03:44 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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