Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function index() |
||
26 | { |
||
27 | $this->load->language('common/search'); |
||
28 | |||
29 | $data['text_search'] = $this->language->get('text_search'); |
||
30 | |||
31 | if (isset($this->request->get['search'])) { |
||
32 | $data['search'] = $this->request->get['search']; |
||
33 | } else { |
||
34 | $data['search'] = ''; |
||
35 | } |
||
36 | |||
37 | return $this->load->view('common/search', $data); |
||
38 | } |
||
40 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.