Welcome Guest, Not a member yet? Register   Sign In
A really simple question
#8

[eluser]gunter[/eluser]
you can do this by routing (look under routing) or with the _remap function (look for remapping function calls - in the docs)


another quick solution would be this:


Code:
function index()
{
   $this->_db_and_view("main"); //main
}

function aboutus()
{
   $this->_db_and_view("aboutus");
}

function clients()
{
   $this->_db_and_view("clients");
}

function contactus()
{
   $this->_db_and_view("contactus");
}

function _db_and_view($title) {

    $this->db->where('title',$title);
    $data['query']= $this->db->get('pages');
    $this->load->view('services', $data);
    }


Messages In This Thread
A really simple question - by El Forum - 05-28-2008, 04:45 AM
A really simple question - by El Forum - 05-28-2008, 05:50 AM
A really simple question - by El Forum - 05-28-2008, 06:04 AM
A really simple question - by El Forum - 05-28-2008, 06:34 AM
A really simple question - by El Forum - 05-28-2008, 06:35 AM
A really simple question - by El Forum - 05-28-2008, 12:02 PM
A really simple question - by El Forum - 05-29-2008, 07:41 AM
A really simple question - by El Forum - 05-29-2008, 09:11 AM
A really simple question - by El Forum - 05-29-2008, 10:26 AM
A really simple question - by El Forum - 05-29-2008, 11:03 AM
A really simple question - by El Forum - 05-29-2008, 11:04 AM
A really simple question - by El Forum - 05-29-2008, 11:48 AM
A really simple question - by El Forum - 05-29-2008, 12:30 PM
A really simple question - by El Forum - 05-29-2008, 12:38 PM
A really simple question - by El Forum - 05-29-2008, 01:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB