www.gusucode.com > OpenSNS PHP开源社区交友系统 v2.8.1源码程序 > os/Application/Weibo/Controller/BaseController.class.php
<?php /** * Created by PhpStorm. * User: Yixiao Chen * Date: 2015/5/5 0005 * Time: 上午 9:47 */ namespace Weibo\Controller; use Think\Controller; class BaseController extends Controller{ public function _initialize(){ $sub_menu = array( 'left' => array( array('tab' => 'index', 'title' => L('_MY_') . L('_MODULE_'), 'href' => U('index/index')), array('tab' => 'hot', 'title' => L('_HOT_').L('_MODULE_'), 'href' => U('index/index',array('type'=>'hot'))), array('tab' => 'topic', 'title' =>L('_HOT_TOPIC_'), 'href' => U('topic/topic')), ), 'right'=>array( array('type'=>'search', 'input_title' => L('_INPUT_KEYWORDS_'),'input_name'=>'keywords','from_method'=>'post', 'action' =>U('Weibo/index/search')), ) ); $this->assign('sub_menu', $sub_menu); $this->assign('current', 'index'); } }