// 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:
@@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user