Welcome Guest, Not a member yet? Register   Sign In
hook doesn't redirect me
#4

(This post was last modified: 03-20-2018, 02:49 AM by Cognie.)

Hey,

I solved my problem (or problems).

first (in my case), my hook had to be in'post_controller' and not in'pre_controller'.
Then, I miscalled my config items in the case of a hook:
$this->ci->config->item('access')' (here the right way)

I put underneath a part of my hook
''
class Maintenance {

   private $ci;
   
public function __construct()
{
$this->ci =& get_instance();
               $this->ci->options_params = $this->ci->m_options->get_options();
}
   
   public function go_maint()
   {
''
Reply


Messages In This Thread
hook doesn't redirect me - by Cognie - 03-19-2018, 05:29 AM
RE: hook doesn't redirect me - by Narf - 03-19-2018, 08:28 AM
RE: hook doesn't redirect me - by Cognie - 03-20-2018, 12:32 AM
[RESOLVED] RE: hook doesn't redirect me - by Cognie - 03-20-2018, 01:16 AM
RE: hook doesn't redirect me - by InsiteFX - 03-20-2018, 04:18 AM
RE: hook doesn't redirect me - by Cognie - 03-20-2018, 04:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB