Change tpl path
This commit is contained in:
parent
8269e1b38a
commit
2eb955f6d2
@ -41,7 +41,7 @@ class AdminGuide extends AdminTab
|
||||
|
||||
$smarty->assign('rewrite_rules', htmlentities($rewrite_rules));
|
||||
|
||||
echo $smarty->fetch(__DIR__.'/templates/home_adminguide.tpl');
|
||||
echo $smarty->fetch(__DIR__.'/views/templates/admin/home_adminguide.tpl');
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
if (!defined('FORM_DIR')) {
|
||||
define('FORM_DIR', __DIR__.'/../templates/form/');
|
||||
define('FORM_DIR', __DIR__.'/../views/templates/admin/form/');
|
||||
}
|
||||
|
||||
class FormBuilder
|
||||
@ -31,7 +31,7 @@ class FormBuilder
|
||||
|
||||
public function setSubmitButton($title)
|
||||
{
|
||||
$this->submit_button_title = $title;
|
||||
$this->submit_button_title = $title;
|
||||
}
|
||||
|
||||
public function setFields($fields)
|
||||
@ -56,7 +56,7 @@ class FormBuilder
|
||||
'module_dir' => _MODULE_DIR_,
|
||||
'button_submit' => [
|
||||
'name' => $this->submitName($this->form_action),
|
||||
'value' => $this->submit_button_title
|
||||
'value' => $this->submit_button_title
|
||||
]
|
||||
];
|
||||
$smarty->assign($smarty_params);
|
||||
@ -124,8 +124,8 @@ class FormBuilder
|
||||
$html_attrs = '';
|
||||
foreach($field['attrs'] as $key => $value) {
|
||||
$html_attrs .= " $key = \"".$value."\"";
|
||||
}
|
||||
$field['html_attrs'] = $html_attrs;
|
||||
}
|
||||
$field['html_attrs'] = $html_attrs;
|
||||
}
|
||||
}
|
||||
|
||||
@ -168,11 +168,11 @@ class FormBuilder
|
||||
foreach ($langs as $lang) {
|
||||
$val = $this->getFieldValue($obj, $key, $field['initial_value'], $lang['id_lang']);
|
||||
$value[$lang['id_lang']] = htmlentities(
|
||||
$val,
|
||||
ENT_COMPAT,
|
||||
$val,
|
||||
ENT_COMPAT,
|
||||
'UTF-8'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
$field['value'] = $this->getFieldValue($obj, $key, $field['initial_value'], null);
|
||||
|
Loading…
Reference in New Issue
Block a user