gistfile1.txt /** * 获取当前Action名称 * @access protected */protected function getActionName() { if(empty($this-name)) { // 获取Action名称 $offset=strrpos(get_class($this), '\\', -10); // 从尾部第 10 个位置开始查找 $th
/**
* 获取当前Action名称
* @access protected
*/
protected function getActionName() {
if(empty($this->name)) {
// 获取Action名称
$offset=strrpos(get_class($this), '\\', -10); // 从尾部第 10 个位置开始查找
$this->name = substr(get_class($this),$offset+1,-10);
}
return $this->name;
}
