Questions tagged [zend-controller]
114 questions
0
votes
3 answers
Zend Framework: Can I set a depth for url parameters?
I would like to get only one parameter.
For example site.ru/controller/action/param1/value/
But if I request follow url:
site.ru/controller/action/param1/value/param2/value2/param3/value4/
by default I havn't any error.
Is it possible to set up the…

Anthony
- 3,218
- 3
- 43
- 73
0
votes
1 answer
zend framework 3 append script from controller
Is it still possible to dynamically append script/files depending on the context?
I saw here it was possible in ZF1 but that doesn't work in ZF3.
Any Ideas?

Gwen Hufschmid
- 197
- 1
- 12
0
votes
1 answer
can't find route in console action zf3
i'm trying to make sitemap generator from console in ZF3.
Console action gets executed but it breaks when i try to generate url
with $this->url()->fromRoute()...
here is controller action
public function sitemapAction() {
$loc =…

forw4rd_lord
- 1
- 4
0
votes
1 answer
Integrating Zend Controller Standalone - without the rest of Zend Framework
I am using specific parts of the Zend Framework in my application, and I would like to replace my home grown controller with a Zend Framework controller.
My home grown controller is based on an index.php file to which all requests are submitted. A…

Stephen Senkomago Musoke
- 3,528
- 2
- 29
- 27
0
votes
1 answer
Zend passing data from action in controller to view in another controler
How can I pass data from action in controller to view in another controller?
From action in controler to view in the same controller is easy:
I simply write in action's function :
$this->view->assign('error', 'Wrong login');
and in view I recieve…

Bukocen
- 51
- 1
- 1
- 4
0
votes
1 answer
Controllers, Action helpers, or View Helpers for multi-level tabbed interface
This question is related to the question asked here, regarding the best practice for handling tabbed interfaces. It made reference to a blog post titled, Why the Zend Framework Actionstack is Evil, which outlined that you should use partials and…

Rod
- 33
- 4
0
votes
1 answer
Zend Controller all actions to one action
I have categorie Controller, with index action
I need that when I enter address .com/categorie/education
it uses index action with parameter education .com/categorie/index/education
or redirect all actions to index ??

Edmhs
- 3,645
- 27
- 39
0
votes
1 answer
ZF2 many forms in one controller
In ZF2, I have a controller that handles 5 forms. The 5 forms get displayed on a single page (index), and all the forms processing happens in the indexAction() based on a form's submit button pushed (just one form is submitted at a time).
To me,…

Dima Dz
- 512
- 1
- 5
- 17
0
votes
2 answers
Zend Framework :: Is this code good for user login (Its begining- because that I want to know if its can be improve)
I new in Zend.
Main Question:
Is this code good for user login (Its beginning- because that I want to know if its can be improve)?
Thanks
view index.phtml
echo $this->form
controller IndexAction.php
public function indexAction() {
…

Ben
- 25,389
- 34
- 109
- 165
0
votes
1 answer
Can ZF2 escapeHTML be used for get post data?
Recently I was assigned to a project and I see this in the controller:
if ($this->getRequest()->isPost()){
$escapar = new Escaper('utf-8');
$consulta = $this->getRequest()->getPost();
$nombreComercial = …

JoaqiinRA
- 103
- 7
0
votes
1 answer
Zend Framework Routing Get Parameters
With Zend Framework 1.10 I'm having a list with articles and an search field.
When typing something in the searchfield and hit the search button it generates me the following url:
https://example.org/products?category=12&no=
On the result of the…

frgtv10
- 5,300
- 4
- 30
- 46
0
votes
2 answers
How i get parameter from url in zf2?
I am new in zf2 and I want to get parameter from url. But when I write
if($this->getRequest()->isGet()) {
$get = $this->params()->fromQuery();
}
print_r($get);
in controller it returns empty array. How I get…

Muhammad Arif
- 1,014
- 3
- 22
- 56
0
votes
3 answers
Zend Framework: Using controller method in view to call model method
I've got a little problem here. I have category_id for every product in DB. I also have a category table in DB for categories and their ID. Now i need to put in into view together. I've made add, edit and delete action, also show action, where is…

Michal Takáč
- 1,005
- 3
- 17
- 37
0
votes
2 answers
How to reencode url parameters with Zend Framework
I use the following code with my Zend Framework application:
controller:
$paramsOtherAction = $this->getRequest()->getParams();
$paramsOtherAction['action'] = 'otheraction'
$this->view->paramsOtherAction = $paramsOtherAction;
view:

Peter Smit
- 27,696
- 33
- 111
- 170
0
votes
1 answer
How to call static view helper method in controller?
like in topic, I have two static method in view helper but when I try to call in controller action by
Zend_View_Helper_SomeHelper::firstStaticMethod();
I got error:
Warning: include_once(Zend/View/Helper/SomeHelper.php): failed to open stream: No…

Michał Kalkowski
- 467
- 8
- 26