Option untuk component Joomla 3 disimpan di table _extensions, field params.
Data disimpan dalam format json.
Code utk retrieve(dlm Model):
jimport('joomla.application.component.helper');
$params = JComponentHelper::getParams(JRequest::getVar('option')); // Get parameter helper
$id = $params->get('email'); // Get an individual parameter
contoh data dlm field params:
{"email":"myemail@yourcompany.com","show_date":"1"}
Data disimpan dalam format json.
Code utk retrieve(dlm Model):
jimport('joomla.application.component.helper');
$params = JComponentHelper::getParams(JRequest::getVar('option')); // Get parameter helper
$id = $params->get('email'); // Get an individual parameter
contoh data dlm field params:
{"email":"myemail@yourcompany.com","show_date":"1"}
No comments:
Post a Comment
Terima kasih