//PreProcess => PostProcess

This commit is contained in:
mDeflotte
2011-09-29 09:01:59 +00:00
parent f868e77a6e
commit 5d024dd47a
3 changed files with 16 additions and 12 deletions
+13 -2
View File
@@ -32,7 +32,11 @@ class OrderFollowControllerCore extends FrontController
public $authRedirection = 'order-follow';
public $ssl = true;
public function process()
/**
* Start forms process
* @see FrontController::postProcess()
*/
public function postProcess()
{
if (Tools::isSubmit('submitReturnMerchandise'))
{
@@ -66,7 +70,14 @@ class OrderFollowControllerCore extends FrontController
Module::hookExec('orderReturn', array('orderReturn' => $orderReturn));
Tools::redirect('index.php?controller=order-follow');
}
}
/**
* Assign template vars related to page content
* @see FrontController::process()
*/
public function process()
{
$ordersReturn = OrderReturn::getOrdersReturn($this->context->customer->id);
if (Tools::isSubmit('errorQuantity'))
$this->context->smarty->assign('errorQuantity', true);
+2 -2
View File
@@ -33,9 +33,9 @@ class PasswordControllerCore extends FrontController
/**
* Start forms process
* @see FrontController::preProcess()
* @see FrontController::postProcess()
*/
public function preProcess()
public function postProcess()
{
if (Tools::isSubmit('email'))
{
+1 -8
View File
@@ -79,14 +79,7 @@ class ProductControllerCore extends FrontController
$this->product->quantity = 0;
$this->product->description = $this->transformDescriptionWithImg($this->product->description);
}
/**
* Start forms process
* @see FrontController::preProcess()
*/
public function preProcess()
{
if (!Validate::isLoadedObject($this->product))
$this->errors[] = Tools::displayError('Product not found');
else