Social Icons


Friday, April 19, 2013

Name of current module controller or action from Yii view

 Useful in situations where you want to build a navigation user interface element etc. This is all you need to know...

// Module
if(isset($this->module)): echo $this->module->getName(); endif;

// Controller
echo $this->ID;

// Action
echo $this->action->id;

No comments:

Post a Comment