Как убрать ссылки типа /index.php?route=common/home
Думаю вам пригодится
В файле
system/library/response.php в самом низу находим
public function output() { if ($this->output) { if ($this->level) { $ouput = $this->compress($this->output, $this->level); } else { $ouput = $this->output; }
Заменяем на
public function output() { if (!defined('HTTP_CATALOG')) $this->output = str_replace('index.php?route=common/home', '', $this->output); if ($this->output) { if ($this->level) { $ouput = $this->compress($this->output, $this->level); } else { $ouput = $this->output; }
Другими словами:
\system\library\response.php
в функцию public function output() { с самого начала дописываем:
if (!defined('HTTP_CATALOG')) $this->output = str_replace('index.php?route=common/home', '', $this->output);
Leave a reply
You must login or register to add a new comment .