function search() { if (isset($_REQUEST['q'])) { } else { redirect('http://myweb.pro.vn/so-sanh-gia/sach-tieng-viet-khac/cat-217.htm/wssv-category'); } $url = 'http://websosanh.vn/s/' . urlencode($_REQUEST['q']) . '.htm'; $header = new header(); $header->product(); $data['content'] = $this->filter_websosanhvn_template($url); $this->load->view('product/websosanhvn', $data); }