Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get referer action name in Zend Framework 2

I want to get the previous action name though previous url already find some how but previous action name is not find yet. previous url name get like this.

$this->getRequest()->getHeader('Referer')->getUri();
like image 888
Md Mehedi Hasan Avatar asked Dec 27 '22 02:12

Md Mehedi Hasan


1 Answers

I don't find action name but I could find like /controller_name/action_name using this code

$this->getRequest()->getHeader('Referer')->uri()->getPath();

It could also be be helpfull for me.

like image 137
Md Mehedi Hasan Avatar answered Jan 08 '23 16:01

Md Mehedi Hasan