Solved

How to get Request object from View script? Zend Framework

Posted on 2009-04-05
2
5,782 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

831 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