function User_mod() { parent::CI_Model(); $this->user_menu(); $query = $this->db->get('group'); $this->user_cats = $query->result(); }
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')); }
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++; } } }
function Qhda_mod() { parent::CI_Model(); //$this->db->close(); $config['hostname'] = 'localhost'; $config['username'] = '******'; $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'); }
/** * 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(); }
function News_syndication() { parent::CI_Model(); }
function User_mod() { parent::CI_Model(); $this->user_menu(); }
function Action() { parent::CI_Model(); $this->load->library('pagination'); }
public function __construct() { parent::CI_Model(); $this->_theme = $this->settings->default_theme; }
function App() { parent::CI_Model(); }