Post by jchenx » Tue May 24, 2016 11:46 pm

Hi I am kinda new to opencart, and I have two questions want to clarify,

First of all, I am trying to build a new unit like category/product, but stores news and events. So when people click on one of news title, it will jump to a page with detail information.
I have studied the category/category and category/product controllers, and follow their rules to make the controller, model, and template. I just do not know how to make the url works? So the link can redirect to " ... nfo&path=1", while 1 is news id, and the controller, modal, template files have been already built. But I only got "text_error", and 404 error on firebugs. How could I make the page works, so it could read the database and display the information?

Secondly, I am confused by "$this->request->get['path']", I found the index function of request in system/library/request.php, and found this "$data = htmlspecialchars($data, ENT_COMPAT, 'UTF-8')", and then the function returns "$data", but which SQL code it will read? And what it should output? Because I always get "Undefined index: path"...

My opencart version is
Thank you for reading, any helps would be appreciate. :-)



Tue May 24, 2016 11:08 pm

Post by anung » Tue May 31, 2016 1:17 pm

User avatar
Active Member


Fri Mar 30, 2012 10:32 am
Location - Indonesia
Who is online

Users browsing this forum: No registered users and 77 guests