• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5905
  • Last Modified:

How to get Request object from View script? Zend Framework

How can I get an instance of Request object from View script?

in Zend Framework

thanks
0
technoparkcorp
Asked:
technoparkcorp
1 Solution
 
RoonaanCommented:
You should be able to get to your front controller and from there get to the request object:

$front = Zend_Controller_Front::getInstance();
$req = $front->getRequest();
0
 
shobinsunCommented:
Hello,

You can use "getRequest()" method to do that.

For more about  that follow the links:

http://framework.zend.com/manual/en/zend.controller.action.html

http://devzone.zend.com/article/3350-Action-Helpers-in-Zend-Framework



Regards.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now