Created
March 19, 2012 03:03
-
-
Save anonymous/2092232 to your computer and use it in GitHub Desktop.
CI View Assign function...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Controller extends CI_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
// 模板预设值 | |
$this->load->vars(array( | |
'title' => config_item('site_name') | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment