mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-28 05:50:12 +01:00
30 lines
570 B
PHP
30 lines
570 B
PHP
<?php
|
|
|
|
|
|
class ControllerSearchSave extends Controller {
|
|
private $error = array();
|
|
|
|
public function index(){
|
|
|
|
$this->id = "content";
|
|
$this->template = "search/save.tpl";
|
|
$this->layout = "common/layout-empty";
|
|
|
|
|
|
$request = Registry::get('request');
|
|
$db = Registry::get('db');
|
|
|
|
$this->load->model('search/search');
|
|
|
|
if(isset($this->request->post['save'])) {
|
|
$a = preg_replace("/\&save=1$/", "", http_build_query($this->request->post));
|
|
|
|
$this->model_search_search->add_search_term($a);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|