// Added Helper::createTemplate()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9888 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-04 13:31:09 +00:00
parent c46fd00276
commit 74bb9d88c8
10 changed files with 85 additions and 102 deletions
+7 -1
View File
@@ -42,7 +42,12 @@ class HelperOptionsCore extends Helper
public $fields_value = array();
public $tpl = 'helper/options/options.tpl';
public function __construct()
{
$this->base_folder = 'helper/options/';
$this->base_tpl = 'options.tpl';
parent::__construct();
}
/**
* Generate a form for options
@@ -51,6 +56,7 @@ class HelperOptionsCore extends Helper
*/
public function generateOptions($option_list)
{
$this->tpl = $this->createTemplate($this->base_tpl);
$tab = Tab::getTab($this->context->language->id, $this->id);
if (!isset($languages))
$languages = Language::getLanguages(false);