Welcome Guest, Not a member yet? Register   Sign In
Using third-party search engine with CI site
#4

[eluser]Randy Casburn[/eluser]
ebcms --

The GET vs. POST thing will be a bit tricky because you are setting aside a big porting of the CI magic with that... but we'll get back to that.

This my appoach. In my controller:

Code:
$this->load->model('Whatever');
    $hData = $this->Whatever->getHeaderStuff();//Do whatever you want here
    $fData = $this->Whatever->getFooterStuff();//Do whatever you want here

    $this->load->view('common/header', $hData);
    $this->load->view('integrated/search');
    $this->load->view('common/footer', $fData);

Depending on the application/site I maintain Views in folders like:

Code:
[ view ]
  [ common ]
     header.php
     footer.php
  [ private ]
     login.php
     logout.php
     acctmgr.php
  [ public ]
     welcome.php
  [ integrated ]
     search.php

I don't think this comes close to answering your question, but this is how I wrap an intgrated "view" with a header and a footer.

We still need to deal with the REQUEST data...

Randy


Messages In This Thread
Using third-party search engine with CI site - by El Forum - 07-23-2008, 10:42 AM
Using third-party search engine with CI site - by El Forum - 07-23-2008, 10:54 AM
Using third-party search engine with CI site - by El Forum - 07-25-2008, 11:56 AM
Using third-party search engine with CI site - by El Forum - 07-25-2008, 09:27 PM
Using third-party search engine with CI site - by El Forum - 07-28-2008, 10:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB