// AddressController : refacto done

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8820 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-09-27 16:21:25 +00:00
parent 474ef2b3d0
commit a1a1c8340e
2 changed files with 7 additions and 6 deletions
+4 -3
View File
@@ -117,6 +117,7 @@ abstract class ControllerCore
$this->setMedia(); $this->setMedia();
$this->initHeader(); $this->initHeader();
} }
$this->initContent(); $this->initContent();
if ($this->displayFooter) if ($this->displayFooter)
$this->initFooter(); $this->initFooter();
@@ -141,12 +142,12 @@ abstract class ControllerCore
{ {
$this->template = $template; $this->template = $template;
} }
/** /**
* Assign smarty variables for the page header * Assign smarty variables for the page header
*/ */
abstract public function initHeader(); abstract public function initHeader();
/** /**
* Assign smarty variables for the page main content * Assign smarty variables for the page main content
*/ */
@@ -156,7 +157,7 @@ abstract class ControllerCore
* Assign smarty variables for the page footer * Assign smarty variables for the page footer
*/ */
abstract public function initFooter(); abstract public function initFooter();
/** /**
* Add a new stylesheet in page header. * Add a new stylesheet in page header.
* *
+3 -3
View File
@@ -98,7 +98,7 @@ class AddressControllerCore extends FrontController
* Start forms process * Start forms process
* @see FrontController::preProcess() * @see FrontController::preProcess()
*/ */
public function preProcess() public function postProcess()
{ {
if (Tools::isSubmit('submitAddress')) if (Tools::isSubmit('submitAddress'))
$this->processSubmitAddress(); $this->processSubmitAddress();
@@ -262,9 +262,9 @@ class AddressControllerCore extends FrontController
/** /**
* Assign template vars related to page content * Assign template vars related to page content
* @see FrontController::process() * @see FrontController::initContent()
*/ */
public function process() public function initContent()
{ {
/* Secure restriction for guest */ /* Secure restriction for guest */
if ($this->context->customer->is_guest) if ($this->context->customer->is_guest)