Post by AlexB » Wed Dec 30, 2015 1:08 am

Hi.
I'm new to the PHP MVC concept and i'm trying to understand how does the OpenCart platform work.
My question is how does the config object method "get()" obtains data from the "setting" table.
For example, "$this->config->get('g2apay_order_status_id');" - where is the "g2apay_order_status_id" variable value located?
Thank you and sorry for my noob question.

Newbie

Posts

Joined
Wed Dec 30, 2015 12:55 am

Post by Avvici » Wed Dec 30, 2015 1:59 am

Code: Select all

$this->config->get('g2apay_order_status_id')
.......is a value that is stored in the settings table. Your questions was how does it obtain it? It is through a Select Query, just like all data coming from a database. Brush up on your php and mysql. O0

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by AlexB » Wed Dec 30, 2015 6:37 am

I know that...if it wasn't clear, i was asking how's the object and its fields & methods build, but i found out (index.php - lines 48 @ 56 - opencart v2.1.0.1 & the methods - system\library\config.php).
thanks anyway :D

Newbie

Posts

Joined
Wed Dec 30, 2015 12:55 am

Post by Avvici » Fri Jan 01, 2016 9:51 pm

Glad you cleared that up, and found your answer.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC
Who is online

Users browsing this forum: No registered users and 287 guests