Questions tagged [zend-controller]

114 questions
2
votes
1 answer

Zend Framework 1 - Zend Caching

I am working on optimizing Zend Framework Application with Doctrine ORM. I can't figure it out what particular code would I use in my controller to get this caching. Whenever I pass again the same url it should use the cache code instead of…
user2594
  • 386
  • 1
  • 5
  • 18
2
votes
0 answers

Fatal Error, Zend Controller Response Exception

My Wordpress pages are returning this error to me: Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in…
IanTea
  • 21
  • 1
2
votes
1 answer

Display an error message before redirect to a another page in Zend Framework

I'm trying to display an error message using flashMessenger and display the message before redirecting to a another page but it does not show up the error message, just do the redirection, Below is the that i am using in my…
Dinush Jay
  • 21
  • 1
1
vote
1 answer

Zend Layout for specific Actions

Is there a simple way of just enable a layout for the actions of a controller, instead of disabling it in all other actions of other controllers in Zend?
1
vote
2 answers

Zend render static / dynamic with multi controllers

I'm pretty new to Zend (read the documents concerning routers and controllers). My StaticController and IndexController : class StaticController extends Zend_Controller_Action { public function displayAction() { $page =…
1
vote
0 answers

PHP Zend Framework: How do I make ZF Tool work with extended Controller_Actions?

I'm working with a Zend Framework project and using the ZF tool from the command line. After setting up some initial structure, I extended the Zend_Controller_Action class with something like MySite_Controller_Action and made the existing…
1
vote
1 answer

An explanation of the Zend Redirector Action Helper

Is there a comprehensive explanation of how the Zend Redirector Action Helper works? I've read the reference guide, but am still not 100% clear. For example: Apparently the goToSimple() is more like a forward(), than a redirect. Does this mean…
DatsunBing
  • 8,684
  • 17
  • 87
  • 172
1
vote
2 answers

how to use a function within same function zend framework

Hii... I have a function something like this... class Zend_View_Helper_RenderUOList extends Zend_View_Helper_Abstract { public function makeUOList($inputArray, $main = true, $id ="", $class="") { ------ ------ ------ …
1
vote
2 answers

Invalid controller specified - Zend Framework

Yeah I have already visited the forums & tried to solve the bug. PLease I really need a little help here. Whenever I am trying to access the http://domain.com/dashboard/index/index/ I receive an error Invalid controller class…
ankur
  • 41
  • 2
  • 3
1
vote
1 answer

Add validations to a zend form using ini file

Hii.. HOw do I define validations to a zend form using ini file.
1
vote
1 answer

unable to access zend views from controller file

I am able to print the form content in the controller file, but when I assign the form view as $this->view->form = $form and trying to display the form design using echo $this->form in login.phtml file, form design is not viewed, instead displaying…
1
vote
5 answers

Unable to access module forms in module controller

I have a test module. In test module I have a Form in forms folder. myproject/application/modules/test/forms/TestForm.php class Test_Form_TestForm extends Zend_Form { //form…
Awan
  • 18,096
  • 36
  • 89
  • 131
1
vote
2 answers

ZendFramework Send variables from Controller to View (Best pactice)

I have been working in Zend Framework for a while and I am currently refactoring some parts of my code. One of the big thing I would like to eliminate is my abstract controller class which initiate a lot of variables which must be present in all my…
JF Dion
  • 4,014
  • 2
  • 24
  • 34
1
vote
1 answer

PHPUnit: "Invalid value passed to setPost()" when passing Zend_Db_Table_Row_Abstract converted using toArray()

The following code fails throws a Zend_Controller_Exception ("Invalid value passed to setPost(); must be either array of values or key/value pair") /** Model_Audit_Luminaire */ $luminaireModel = new Model_Audit_Luminaire(); if (!$fixture =…
webjawns.com
  • 2,300
  • 2
  • 14
  • 34
1
vote
2 answers

Control access to files available for download

I have a folder that contains uploaded documents that my ZF application can spit out to logged in users. I want them to be able to use a link like http://server/documents/filename.pdf and download the file, but I want to have a controller…
ashurexm
  • 6,209
  • 3
  • 45
  • 69