Ejemplo n.º 1
0
 public function actionViewfaq()
 {
     $this->layout = '//layouts/column2';
     $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : '';
     $arrFAQ = WStaticPage::getIntroductionByID($id);
     $this->render('viewfaq', array('arrFAQ' => $arrFAQ));
 }
Ejemplo n.º 2
0
        </ul>
    </li>
</div>

<div id="faq_adv">
            <h3><?php 
echo Yii::t('web/help', 'help_adv');
?>
</h3> 
	        <li class="items"><a><?php 
echo Yii::t('web/help', 'create_cam');
?>
</a>
                <ul>
                    <?php 
$arrHelpAdv = WStaticPage::getArrByType('HELP_CAMPAIGN');
if (is_array($arrHelpAdv)) {
    foreach ($arrHelpAdv as $cam) {
        ?>
                                <li class="item"><a href="<?php 
        echo Yii::app()->createUrl('Site/viewfaq', array('id' => $cam['id'], 'type' => 'faq'));
        ?>
"><?php 
        echo $cam['page_title'];
        ?>
</a></li>
                                <?php 
    }
}
?>
                </ul>