Solved

How to get Request object from View script? Zend Framework

Posted on 2009-04-05
2
5,773 Views
Last Modified: 2013-11-10
How can I get an instance of Request object from View script?

in Zend Framework

thanks
0
Comment
Question by:technoparkcorp
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 24072066
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
 
LVL 14

Expert Comment

by:shobinsun
ID: 24072255
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now