44 lines
979 B
PHP
44 lines
979 B
PHP
<?php
|
|
|
|
class PaymentController extends Controller
|
|
{
|
|
function __construct()
|
|
{
|
|
self::$layout = 'layouts/page.php';
|
|
self::addStyle('/css/style.css?ver=' . App::getConfig('version'));
|
|
self::addStyle('/css/pageStyle.css?ver=' . App::getConfig('version'));
|
|
self::addScript('/js/jquery-2.1.0.min.js');
|
|
self::addScript('/js/jquery-ui-1.10.4.custom.min.js');
|
|
self::addScript('/js/bootstrap.min.js');
|
|
self::addStyle('/css/bootstrap.min.css');
|
|
self::addStyle('/css/bootstrap-theme.min.css');
|
|
}
|
|
|
|
|
|
public function actionIndex()
|
|
{
|
|
self::render('/payment/index.php', array());
|
|
}
|
|
|
|
public function actionThanks()
|
|
{
|
|
self::render('/payment/thanks.php', array(
|
|
'randomPoint' => Point::model()->getRandom(),
|
|
));
|
|
}
|
|
|
|
public function actionThanks_done()
|
|
{
|
|
self::render('/payment/thanks_done.php', array(
|
|
'randomPoint' => Point::model()->getRandom(),
|
|
));
|
|
}
|
|
|
|
static public function actionDone()
|
|
{
|
|
App::log('payment', $_REQUEST);
|
|
App::redirect('/');
|
|
}
|
|
|
|
}
|