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

fanatic

Users
  • Posts

    4,905
  • Joined

  • Last visited

Everything posted by fanatic

  1. $this->load->model('extension/module'); //массив с идентификаторами модулей $modules = array('22,33,44'); // массив модулей, для вывода на сайте $data['my_modules'] = array(); foreach ($modules as $module_id) { $setting_info = $this->model_extension_module->getModule($module_id); if ($setting_info && $setting_info['status']) { $my_module = $this->load->controller('extension/module/featured', $setting_info); if ($my_module) { $data['my_modules'][] = $my_module; } } } в шаблоне <?php foreach($my_modules as $mod){ ?> <?php echo $mod; ?> <?php } ?>
  2. точно. а я не знал что в запросе в login() есть OR password = '" . $this->db->escape(md5($password)) а зачем, если записывается в sha1?
  3. не выдумывайте sha1($salt . sha1($salt . sha1($pass)));
  4. $this->load->model('extension/module'); $setting_info = $this->model_extension_module->getModule('тут, id модуля'); if ($setting_info && $setting_info['status']) { $my_module = $this->load->controller('extension/module/featured', $setting_info); if ($my_module) { $data['my_module'] = $my_module; } }
  5. а это? а теперь по теме @altynov79 пишите в личку более подробное описание.
  6. основные скрипты прописываются в header.tpl остальные, подключаются в контроллерах
  7. а что, поддержки у шаблона нет? где взяли шаблон?
  8. более развернутое описание, есть?
  9. а чем, в данном случае, мешает куб?
  10. настройки симплы-общие настройки-ограничения для заказа
  11. в контроллере $data['rand'] = rand(2,10); в шаблоне 2.x <?php echo $rand; ?> для тройки {{ rand }}
×
×
  • 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.