I use codeigniter recently and I thank the team for their very good work.
I connect to a MSSQL database with the driver: $ db [‘default’] [‘dbdriver’] = ‘mssql’;
Can you tell me if it’s possible to use the Failover feature in the connection string recommended by ms, my sql server is in sync mode.
For example: DataSource = xx.xx.xx.xx; Failover Partner = yy.yy.yy.yy \ istd,
I also found on the internet a configuration like this: $ db [‘default’] [‘failover’] = array (array (... but it does not work.
Do you have any idea?
]]>$string = ‘<a>aaaaaaa<a>paragrafh’
convert $string format html to pdf. ty guys!
]]>ideia?
]]>the thing i’ve notice is sometimes when i reload a page couple of time or open couple of pages very fast i get logged out .
this website is using a lib called Ion_authand for identifications
public function logged_in()
{
$identity = $this->ci->config->item('identity', 'ion_auth');
return (bool) $this->ci->session->userdata($identity);
}
is there a bug or something that i should know about ?
$config['sess_cookie_name'] = 'cisession';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name'] = 'cisession';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
]]>
$this->load->model('display');
$this->display->mainpage($data);
The question is - which way is more proper, to load the views inside controller or model? In my opinion is quite interesting to build the view inside a model…
]]>