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

TrogvarDim

Newbie
  
  • Posts

    6
  • Joined

  • Last visited

Information

  • Gender
    Мужчина

TrogvarDim's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

1

Reputation

  1. Поздно знакомиться в том смысле, что с ООП и MVC я уже как 11 лет на короткой ноге :) Пишу на всех вариациях языка Си (от классики до шарпа) и Smalltalk А вот с php судьба свела впервые, и из-за недостатка времени и несерьезности проекта приходится кодить вслепую, без предварительной теоретической подготовки
  2. Спасибо. С азами MVC и ООП мне наверно уже знакомиться поздно :), как никак уже 11 лет профессиональный программист (правда далеко не Web). А вот с азами php познакомиться действительно пора
  3. Спасибо, большое. Помогло. А не подскажете, где можно почитать/посмотреть (исходник или мануал) как работает этот механизм вызова. Хотелось бы для себя разобраться, почему в вызове через route класс Controller доступен, а напрямую нет
  4. Пытаюсь сделать новый контроллер. Соответственно создал файл \controller\account\fastorder.php <?php class ControllerAccountFastorder extends Controller { private $error = array(); public function index() { $this->language->load('account/fastorder'); $this->document->setTitle($this->language->get('heading_title')); if (($this->request->server['REQUEST_METHOD'] == 'POST') /*&& $this->validate()*/ && isset($this->request->post['customer_name']) && ($this->request->post['customer_name'] !== "") && isset($this->request->post['customer_phone']) && ($this->request->post['customer_phone'] !== "")) { $mail = new Mail(); $mail->protocol = $this->config->get('config_mail_protocol'); $mail->parameter = $this->config->get('config_mail_parameter'); $mail->hostname = $this->config->get('config_smtp_host'); $mail->username = $this->config->get('config_smtp_username'); $mail->password = $this->config->get('config_smtp_password'); $mail->port = $this->config->get('config_smtp_port'); $mail->timeout = $this->config->get('config_smtp_timeout'); $mail->setTo($this->config->get('config_email')); $mail->setFrom($this->config->get('config_email')); $mail->setSender($this->config->get('config_name')); $mail->setSubject(html_entity_decode($this->language->get('email_subject'), ENT_QUOTES, 'UTF-8')); $mail->setText(strip_tags(html_entity_decode($this->request->post['customer_name'], ENT_QUOTES, 'UTF-8'))); $mail->send(); } else { echo "BAD"; } } } ?> Однако при вызове я получаю ошибку: Class 'Controller' not found in /var/www/user270/data/www/diolika.ru/catalog/controller/account/fastorder.php on line 2 Похоже я что-то не понимаю в алгоритмах линковки PHP. Подскажите куда копать, плиз
  5. уберите все упоминания compare и wishlist из файла /catalog/view/theme/default/template/product/special.tpl и будет вам счастье
Guest
×
  • 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.