Welcome Guest, Not a member yet? Register   Sign In
is hooks working with all the controllers?
#6

[eluser]ELRafael[/eluser]
Code:
$controller = $this->CI->uri->segment(2);
$method = $this->CI->uri->segment(1);
if ($method === 'backoffice')
  //....

So, if the controller is backoffice (the management system of website), do something.


Messages In This Thread
is hooks working with all the controllers? - by El Forum - 01-16-2009, 01:03 AM
is hooks working with all the controllers? - by El Forum - 01-16-2009, 05:38 AM
is hooks working with all the controllers? - by El Forum - 01-16-2009, 06:16 AM
is hooks working with all the controllers? - by El Forum - 01-16-2009, 07:00 AM
is hooks working with all the controllers? - by El Forum - 01-16-2009, 08:48 AM
is hooks working with all the controllers? - by El Forum - 01-16-2009, 11:09 AM
is hooks working with all the controllers? - by El Forum - 02-05-2009, 08:37 PM
is hooks working with all the controllers? - by El Forum - 02-05-2009, 08:44 PM
is hooks working with all the controllers? - by El Forum - 02-06-2009, 10:32 AM
is hooks working with all the controllers? - by El Forum - 02-08-2009, 09:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB