Fixed getUrl()

This commit is contained in:
franck
2013-08-31 15:52:42 +02:00
parent 533f18bcec
commit 6d5d0f6606
17 changed files with 214 additions and 131 deletions

View File

@@ -23,16 +23,24 @@
namespace Thelia\Controller\Admin;
class ConfigController extends BaseAdminController
use Thelia\Core\Event\ConfigDeleteEvent;
use Thelia\Core\Event\TheliaEvents;
use Thelia\Tools\URL;
class VariablesController extends BaseAdminController
{
public function defaultAction() {
$this->render('config');
return $this->render('variables');
}
public function createAction() {
}
public function deleteAction() {
$event = new ConfigDeleteEvent($this->getRequest()->get('id'));
$this->dispatch(TheliaEvents::CONFIG_DELETE, $event);
$this->redirect(URL::adminViewUrl('variables'));
}
public function updateAction() {