Post by wangllam » Wed Dec 07, 2011 5:05 pm

as My first step is to modify the template or may be add some additional data to display
I try to look at the .tpl and .php in controller folder
However there are many function in controller folder I don't know what's it doing.
also some of them passing value to the functions
where can i get the information about how to use those function?

eg.

Code: Select all

$this->data['text_information'] = $this->language->get('text_information');
$this->data['text_service'] = $this->language->get('text_service');
foreach ($this->model_catalog_information->getInformations() as $result) {

Newbie

Posts

Joined
Mon Dec 05, 2011 9:16 pm

Post by chrisg42 » Wed Dec 07, 2011 6:11 pm

First off have a look at the Development Guide http://www.opencart.com/index.php?route ... on&path=77

OpenCart uses a MVC (Model - View - Controller) architecture, and you can add L to that as well for language. Read the documentaion above or Google MVC if you want to find out more about that architecture

The language objects basically just get text in the language that the user is currently using. If you have a look in opencart/admin/language/english/catalog/category.php you will see the text that appears on the admin pages for editing the categories.

The model object looks after the database calls, so all mysql queries are accessed via the model objects.

User avatar
Newbie

Posts

Joined
Sun Oct 30, 2011 2:06 pm

Who is online

Users browsing this forum: No registered users and 128 guests