// Improved dashgoals configuration (tmp)
This commit is contained in:
+14
-6
@@ -25,12 +25,20 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
class DashGoalsAjaxModuleAdminController extends ModuleAdminController
|
||||
class AdminDashgoalsController extends ModuleAdminController
|
||||
{
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
|
||||
die ('Todo');
|
||||
public function ajaxProcessChangeConfYear()
|
||||
{
|
||||
$year = (int)Tools::getValue('year');
|
||||
$months = $this->module->setMonths($year);
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'currency' => $this->context->currency,
|
||||
'goals_year' => $year,
|
||||
'goals_months' => $months,
|
||||
'link' => $this->context->link
|
||||
));
|
||||
|
||||
echo $this->module->display(_PS_MODULE_DIR_.$this->module->name.DIRECTORY_SEPARATOR.$this->module->name.'.php', 'config.tpl');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user