Questions tagged [zend-controller]

114 questions
1
vote
2 answers

Zend_Controller Following PEAR Naming Convention

I am developing a web-app using zend framework. I like how all the autoloading works however I don't really like the way Zend_Controller names the controllers by default. I am looking for a way to enable zend_controller to understand my controller…
Jeffrey04
  • 6,138
  • 12
  • 45
  • 68
1
vote
0 answers

Create the controller of an upload file form in zend

I have created the elements in the form for an upload document but the form has other elements as well. Now I can't seem to find out a way to upload files because no matter what I do is says "File 'img_file' exceeds the defined ini size" even if I…
Nadia
  • 31
  • 1
  • 2
1
vote
1 answer

How does a Zend controller action have access to Form subclass for instantiation?

Considering this subclass of Zend_Form class Form_Mine extends Zend_Form { public function init() { //form } Then in Class MineController extends Zend_controller_Action { public function formAction() { …
succeed
  • 834
  • 1
  • 11
  • 28
1
vote
2 answers

Zend framework controller action helper

I am getting fatal error after adding the action helper class. I am trying to load layout corresponding to called layout. Following is my code snippet: First of all i added a helper class under application/controller/helpers: class…
user362273
  • 11
  • 1
  • 2
1
vote
1 answer

Zend Pdf generation from an action

I have a controller Employee , in that i have the action detail . The detail action prints like the attached image.alt text http://www.freeimagehosting.net/uploads/7bfae5ce57.png Suppose there is a save pdf button, i need to print this page as…
Nisanth Kumar
  • 5,667
  • 8
  • 33
  • 43
1
vote
1 answer

How to attach css and javascript files in zf2 controller?

i attach some stylesheets in zend controller but blank page shown,how i include stylesheets and javascript files in zend controller?here is my code: public function showAction() { //css …
Muhammad Arif
  • 1,014
  • 3
  • 22
  • 56
1
vote
1 answer

How to forward data to another action using Forward Plugin and read it there in Zend Framework 2?

I have two actions in a controller: actionA() and actionB(). Dependent on a condition the actionA() should return a ViewModel object or be forwarded to actionB() (and return its result): class MyController extends AbstractActionController { public…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
3 answers
1
vote
3 answers

Layout being rendered twice

I seem to have a problem with my layout displaying twice. I was wondering if this was caused by something in my front controller plugin (see below) which utilises Zend Layout only for a particular module and not in the main application. Any answers…
1
vote
2 answers

How to pass params from controller to Zend_Form?

I know this question is already answered here. But this doesnt work for me. The Form is generated by using the PluginLoader: $formClass = Zend_Registry::get('formloader')->load('Payment'); $form = new $formClass(array('someval' =>…
1
vote
1 answer

ZF - Check whether request is forwarded from another action

I'm using Zend Framework and come up with a situation of forwarding a request to another action in same controller. I'm forwarding the request from create to save. What I want to do is to check (from saveAction) whether the request is forwarded or…
rajukoyilandy
  • 5,341
  • 2
  • 20
  • 31
1
vote
1 answer

How to dynamicly load of controller and action (Zend Framework + AJAX)?

I am trying to write a universal code for AJAX. I will show what I mean on the example of the e-shops admin panel. There are some things that we can edit, for example: categories, products, attributes. Each of those elements have its forms with…
1
vote
1 answer

zend framework 2 set_exception_handler in ActionController

I try use the "set_exception_handler" function for capture my ActionController exceptions. Inside any view e.g. index.phtml this code works ok, the view show Helloooo. doctype(); class Fun { …
josepmra
  • 617
  • 9
  • 25
1
vote
2 answers

Is it possible to disable an action in pre-dispatch?

In my controller I have a preDispatch method where I check if the user is logged in. If he is not I redirect the user to login form. Is there any way to disable one of the action's from the preDispatch method? Because I do not need the authorisation…
1
vote
0 answers

How add external controller to ZEND module

I want make a in my CMS autoload plugin, which will be automaticly load externall controller to my admin module. I writing because I have problem with add external controller to my Zend module. My situation is: I have Admin module and external…