first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class stCashBillFrontendComponents extends sfComponents {
|
||||
|
||||
public function executeShowPayment() {
|
||||
$this->smarty = new stSmarty('stCashBillFrontend');
|
||||
|
||||
$this->stCashBill = new stCashBill();
|
||||
$this->order = OrderPeer::retrieveByPK($this->getRequestParameter('id'));
|
||||
|
||||
if (in_array($this->stCashBill->getShowVariant(), array('text', 'image'))) {
|
||||
$this->channels = $this->stCashBill->getPaymentChannels();
|
||||
} else
|
||||
$this->channels = array();
|
||||
|
||||
if ($this->getContext()->getModuleName() == 'stPayment' && $this->getContext()->getActionName() == 'pay')
|
||||
$this->redirect = true;
|
||||
else
|
||||
$this->redirect = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user