コード例 #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));
 }
コード例 #2
0
ファイル: _faq.php プロジェクト: nguyendvphp/onlinetraining
        </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>