Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

behadr

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

behadr's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Спасибо. Решение нашлось в файле seo_pro.php foreach ($data as $key => $value) { switch ($key) { /* --- вот это помогло */ case 'information_id': $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($key . '=' . (int)$value) . "'"); if ($query->num_rows) { $seo_url .= '/articles/' . rawurlencode($query->row['keyword']); unset($data[$key]); $postfix = 1; } break; /* -------- */
  2. Добрый день. Помогите решить такую проблему. Есть страница на которой выводится список материалов - site.ru/article Есть страница на которой выводятся сами материалы site.ru/art1,site.ru/art2,... Подскажите как сделать что бы сами материалы выводились по адресу site.ru/article/art1 Код формирование ссылки $article=array(); foreach ($allart as $art){ $article[]=array( 'title' => $art['title'], 'brief_description' => $art['brief_description'], 'href' => $this->url->link('mycode/pagearticle', 'information_id=' . $art['information_id']) ); }
  3. Не знаю куда писать данную тему, и как ее назвать, но проблема вот в чем.... Есть openCart 1.5.4.1 + vqmod мне надо создать модуль (расшерение(новый вывод)). Делаю так. Создаю файы catalog\controller\mycode/pagenews.php в нем пишу следующее <?php class ControllerMycodePagenews extends Controller { protected function index() { if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/mycode/pagenews.tpl')) { $this->template = $this->config->get('config_template') . '/template/mycode/pagenews.tpl'; } else { $this->template = 'default/template/mycode/pagenews.tpl'; } return $this->render(); } } ?> В каталоге с шаблоном сайта делаю так ~/mycode/pagenews.tpl В файл pagenews.tpl пишу "Hi" на запрос http://mysite.ru/index.php?route=mycode/pagenews - получаю "Запрашиваемая страница не найдена!" Как быть?
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.