コード例 #1
0
 public function actionIndex()
 {
     $mainpage = Mainpage::model()->findByPk(0);
     $arrayAboutUs = $this->initAboutus();
     $this->render('index', array(
         'mainpage'=>array(
             'title'=>$mainpage->title,
             'header1'=>$mainpage->header1,
             'linkName'=>$mainpage->linkName,
             'subLineImage'=>$mainpage->subLineImage,
             'subheader1'=>$mainpage->subheader1,
         ),
         'block1'=>$arrayAboutUs['objAbout1'],
         'block2'=>$arrayAboutUs['objAbout2'],
         'block3'=>$arrayAboutUs['objAbout3'],
     ));
 }
コード例 #2
0
	/**
	 * This is the default 'index' action that is invoked
	 * when an action is not explicitly requested by users.
	 */
	public function actionIndex()
	{
		// renders the view file 'protected/views/site/index1.php'
		// using the default layout 'protected/views/layouts/main.php'
		$mainpage = Mainpage::model()->findByPk(0);

		$arraySteps = $this->initSteps();
		$arrayAboutUs = $this->initAboutus();

		$this->render('index', array(
            'mainpageModel'=>$mainpage,
			'mainpage'=>array(
				'stepSize'=>$mainpage->stepSize,
			),
			'block1'=>$arrayAboutUs['objAbout1'],
			'block2'=>$arrayAboutUs['objAbout2'],
			'block3'=>$arrayAboutUs['objAbout3'],
			'step1'=>$arraySteps['step1'],
			'step2'=>$arraySteps['step2'],
			'step3'=>$arraySteps['step3'],
			'step4'=>$arraySteps['step4'],
			'step5'=>$arraySteps['step5'],
		));
	}