本文整理汇总了PHP中CI_Model::CI_Model方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_Model::CI_Model方法的具体用法?PHP CI_Model::CI_Model怎么用?PHP CI_Model::CI_Model使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CI_Model
的用法示例。
在下文中一共展示了CI_Model::CI_Model方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function User_mod()
{
parent::CI_Model();
$this->user_menu();
$query = $this->db->get('group');
$this->user_cats = $query->result();
}
示例2:
function __construct()
{
parent::CI_Model();
$this->CI =& get_instance();
$this->CI->load->library('twitter/twitter');
// Try to authenticate
$auth = $this->CI->twitter->oauth($this->CI->settings->item('twitter_consumer_key'), $this->CI->settings->item('twitter_consumer_key_secret'), $this->CI->settings->item('twitter_access_token'), $this->CI->settings->item('twitter_access_token_secret'));
}
示例3: while
function __construct()
{
parent::CI_Model();
$this->_obj =& get_instance();
$migration_current = $this->_get_migration_current();
if ($migration_current < $this->_migration_latest) {
$this->_obj->load->dbforge();
$this->dbforge = $this->_obj->dbforge;
while ($migration_current < $this->_migration_latest) {
$process = $migration_current + 1;
$method = 'migration_' . $process;
$this->{$method}();
$this->_save_migration_current($process);
$migration_current++;
}
}
}
示例4:
function Qhda_mod()
{
parent::CI_Model();
//$this->db->close();
$config['hostname'] = 'localhost';
$config['username'] = 'root';
$config['password'] = '';
$config['database'] = 'b16_3360947_hda';
$config['dbdriver'] = 'mysql';
$config['dbprefix'] = null;
$config['pconnect'] = FALSE;
$config['db_debug'] = TRUE;
$config['cache_on'] = FALSE;
$config['cachedir'] = '';
$config['char_set'] = 'utf8';
$config['dbcollat'] = 'utf8_general_ci';
$config['swap_pre'] = '';
$this->qhda = $this->load->database($config, true);
$this->load->helper('article');
}
示例5: __construct
/**
* The class constructer, tries to guess
* the table name.
*
* @author Jamie Rumbelow
*/
public function __construct()
{
parent::CI_Model();
$this->load->helper('inflector');
$this->_fetch_table();
}
示例6:
function News_syndication()
{
parent::CI_Model();
}
示例7:
function User_mod()
{
parent::CI_Model();
$this->user_menu();
}
示例8: Action
function Action()
{
parent::CI_Model();
$this->load->library('pagination');
}
示例9: __construct
public function __construct()
{
parent::CI_Model();
$this->_theme = $this->settings->default_theme;
}