Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Как вывести данные на страницу (OpenCart 3.x)?


RootKit
 Share

Recommended Posts

Создаю функционал добавления новостей, впервые рилиию с Опенкартом.

 

Создал,контроллер (проверял - рилииет), могдель, и вьюху, врогде подклюлил ее как нужно, но видимо не ик , что собственно не выводит вьюху. А ик же полулил кучу ошипотому чток:

otice: Undefined index: name in D:\OpenServer2\domains\Promodex.local\catalog\controller\account\addnews.php on line 30Notice: Undefined index: description in D:\OpenServer2\domains\Promodex.local\catalog\controller\account\addnews.php on line 31Notice: Undefined index: id_news in D:\OpenServer2\domains\Promodex.local\catalog\controller\account\addnews.php on line 32Notice: Undefined index: user_id in D:\OpenServer2\domains\Promodex.local\catalog\controller\account\addnews.php on line 33Notice: Undefined index: title in D:\OpenServer2\domains\Promodex.local\catalog\controller\account\addnews.phpon line 34Notice: Undefined index: datetime in D:\OpenServer2\domains\Promodex.local\catalog\controller\account\addnews.php on line 35
Fatal error: Call to a member function insertNews() on null in D:\OpenServer2\domains\Promodex.local\catalog\controller\account\addnews.php on line 37


Может кто  подскажет,как правильно реализовать вывод?

Прилагаю свои файлы:

news.php

addnews.php

addnews.twig

Edited by RootKit
Link to comment
Share on other sites


открываете люпотому чтой контроллер с бэкенда
например икой admin\controller\catalog\information.php
и смотрите как реализован метод add

Edited by thentru
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.