Questions tagged [zend-controller]

114 questions
0
votes
3 answers

How to add a third-party Action Helper to a Zend Framework 1.8+ application?

I have downloaded a third party action helper that I would like to add to my application. How can I do this?
Andrew
  • 227,796
  • 193
  • 515
  • 708
0
votes
1 answer

Zend controller extends from two class

In my application I have got a main controller in which I have a few methods. One of them checks if the user is logged in and if not it redirects the user to login form etc. class FA_Controller_Auth extends Zend_Controller_Action { public function…
0
votes
1 answer

zend framework 2 notice appears in console when call a console action

I have follow the simple steps of zend documentation to develop a many simple console action. My action have only one literal param. It works ok and the action is executed but before, in each call appears following notice and a stack trace. How I do…
0
votes
1 answer

zend controller weird issue

i have a problem with handling exception in controller level. basically i have one controller say FOO controller , abcAction and another controller BOO with xyz action. now i have to call xyz inside abc and i have to use the output of that . in abc…
0
votes
1 answer

Zend_Controller_Action_Exception not showing a 404 page

I'm trying to get Zend to throw a 404 error if an array contains less than 10 elements, but it is currently just sending me a generic "Error" page. I know the 404 exception is configured properly as they work elsewhere in the site so it must be a…
Kaizen9001
  • 510
  • 1
  • 4
  • 11
0
votes
0 answers

Multiple view strategy in zend 2

Possible Duplicate: How to render ZF2 view within JSON response? I have to update a Zend controller that has set it up as view strategy ViewJsonStrategy. Usyally I have $result = new JsonModel($result); $e->setResult($result); return…
catalinux
  • 1,462
  • 14
  • 26
0
votes
1 answer

Contact Us Form not working under Zend Framework

I started learning Zend so this is the link i followed for the contact us page - My Zend Version - Zend Framework v1.11.11 http://www.tutorial-portal.com/tutorial/show/id/27 I created form using command line - zf create form Contact which…
swapnesh
  • 26,318
  • 22
  • 94
  • 126
0
votes
2 answers

register a variable in all controllers

I want to register a variable that will be available in all Controllers. class testController extends Zend_Controller_Action{ public function testAction(){ echo $this->testVar; } ... How and Where ,can I set the content of this…
Seif
  • 51
  • 1
  • 6
0
votes
4 answers

ZendFramework 2 - how do you handle from controller the layout head body footers like in ZF1?

How to do the following __construct section shown in ZF1 on the fly in ZF2 way? I have tried $this->headTitle('..'); by ommiting ->view call, but it still fail by throwing: Zend\ServiceManager\ServiceManager::get was unable to fetch or create an…
user285594
0
votes
2 answers

Implementing vanity urls (like http://facebook.com/JohnDoe) in Zend framework?

Is there anyway to create a vanity url "catch all" route whilst maintaining the default /module/controller/action/value routing structure? Thanks!
arendn
  • 51
  • 7
0
votes
1 answer

Set different Controller_Front on ZendFramework

I do need to change Zend_Controller_Front and use My_Controller_Front, but I can't figure it out... I have made this: At My_Controller_Front /** * Set singleton instance */ public static function setInstance($instance = null) { …
Cito
  • 1,659
  • 3
  • 22
  • 49
0
votes
3 answers

Zend Framework issue with accessing a method from another controller

I have been trying to use the _forward method to access a method in my IndexController from another controller, but it won't seem to work. I have tried: $this->_forward('permissions', 'Index') $this->_forward('permissions',…
gazzwi86
  • 1,019
  • 1
  • 15
  • 35
0
votes
3 answers

Zend Framework controller issue

This has to be the most frustrating and mind boggling problem I have encountered so far. I have a small demo project which has about 5 controllers. When I go to the project using the URL 'localhost/demo/public/' it opens the indexcontrollers…
Björn
  • 203
  • 6
  • 19
0
votes
1 answer

Setup Zend Router with and without lang uri parameter

I'm wondering if anyone can help me with the next issue I have. I want to be able to setup my project with multilanguage support with and without Uri lang flag, and also, with module structure. I mean something like…
0
votes
1 answer

Zend Framework - Getting access to controller and action names in resource class (inherits after Zend_Controller_Resource_ResourceAbstract)

I need to create my own resource which sends some information to Zend_View instance which depends on currently working controller and action. I've got this code: $view = $bootstrap->getResource('layout')->getView(); $front =…
Kacper Kołodziej
  • 698
  • 1
  • 9
  • 23