Solved

How to get Request object from View script? Zend Framework

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …

821 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