Hi,
You could use a post_controller_constructor hook
Where you have access to CI super object.
Hook.php
hook_config.php
Don't forget to enable hooks in config.php
You could use a post_controller_constructor hook
Where you have access to CI super object.
Hook.php
PHP Code:
$hook['post_controller_constructor'] = array(
'function' => 'config_hook',
'filename' => 'hook_config.php',
'filepath' => 'hooks'
);
hook_config.php
PHP Code:
function config_hook()
{
$CI =& get_instance();
$uri_string = $CI->uri->uri_string();
$CI->db->where('field', 'value');
$query = $CI->get('table');
// etc..
}
Don't forget to enable hooks in config.php
A good decision is based on knowledge and not on numbers. - Plato