reintroduced the load saved searches feature

This commit is contained in:
SJ
2012-09-16 16:47:28 +02:00
parent fd27d17d24
commit 5b96cd06ca
10 changed files with 116 additions and 4 deletions

View File

@ -0,0 +1,32 @@
<?php
class ControllerSearchLoad extends Controller {
private $error = array();
public function index(){
$this->id = "content";
$this->template = "search/load.tpl";
$this->layout = "common/layout-empty";
$request = Registry::get('request');
$db = Registry::get('db');
$this->load->model('search/search');
$this->load->model('search/message');
$this->load->model('user/user');
if($this->data['hits_to'] > $this->data['n']) { $this->data['hits_to'] = $this->data['n']; }
$this->data['terms'] = $this->model_search_search->get_search_terms();
$this->render();
}
}
?>