- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
<?php
class SimpleController extends Zend_Controller_Action
{
public function init()
{
$action = $this->_request->getActionName();
$is_action_available = in_array($action, explode(',', 'terms,privacy,about,copyright,support,legal,features,help,refund'));
$is_incorrect_action = CR_Settings::siteIsFree() && $action == 'refund';
if (!$is_action_available || $is_incorrect_action)
$this->_helper->redirector->setGotoRoute(array('action' => 'index'), 'default', true);
}
public function termsAction(){
}
public function privacyAction(){
}
public function aboutAction(){
}
public function copyrightAction(){
}
public function supportAction(){
}
public function legalAction(){
}
public function featuresAction(){
}
public function helpAction(){
}
public function refundAction(){
}
}
dev6alexander 01.09.2012 18:15 # −2
eth0 01.09.2012 21:01 # +4
Lure Of Chaos 02.09.2012 12:18 # +1
guest 02.10.2012 18:24 # 0