Welcome Guest, Not a member yet? Register   Sign In
Get name of controller from view (without passing it as a variable)
#4

[eluser]SitesByJoe[/eluser]
You could do a good old:

Code:
<?php
$current_controller = $this->uri->segment(1);
echo $current_controller;
?>

And that would certainly work from a view. If you're talking about it happening on the client end you would need to use javascript to get the same effect.

I'm not aware of any problems that would occur using this method.


Messages In This Thread
Get name of controller from view (without passing it as a variable) - by El Forum - 10-17-2008, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB