zend-framework-mvc Questions

10

Solved

I know with ZF1 you would retrieve the module/controller name using custom View Helpers that would get the singleton frontController object and get the name there. Using ZF2 as they've abolished a...
Baudoin asked 12/1, 2012 at 22:12

2

Solved

I know that this has been covered extensively in other threads, but I'm struggling to work out how to replicate the effect of $this->getServiceLocator() from ZF2 controllers in ZF3 ones. I have tr...

4

Solved

So far, I have figured out how to return a typical JSON response in Zend Framework 2. First, I added the ViewJsonStrategy to the strategies section of the view_manager configuration. Then, instead ...
Thoreau asked 16/9, 2012 at 22:54

3

Solved

I'm trying to evaluate if it's already the right time to start moving to ZF3 (or keep developing my application with ZF2). Therefore, I installed the mvc-skeleton application and walked through the...
Countless asked 10/7, 2016 at 16:20

7

By default the page is set like this in the Application module.config array: 'template_map' => array( 'error/404' => __DIR__ . '/../view/error/404.phtml' I want to change the page. I want...

5

Solved

I have an Action method in Foo Controller which requires parameters: public function fooAction($one, $two) { $a = one; $b = $two; } And I need to forward to that method from the other method o...

4

Solved

Using the standard MVC set up in Zend Framework, I want to be able to display pages that have anchors throughout. Right now I'm just adding a meaningless parameter with the '#anchor' that I want in...
Detour asked 1/1, 2009 at 19:20

4

Solved

I have experienced Zend Framework 1 and I've build some apps with that framework. Now, I'm experimenting Zend Framework 2, but I'm stuck on the url parameters. I've setup my routing like this: //...
Strati asked 5/4, 2012 at 8:14

1

Solved

I've just started setting up a new ZF2 application for a new project, based off the ZF2 skeleton, and am looking at their tutorial on Models. tl;dr: how should I share a Model between multiple diff...
Carbohydrate asked 26/2, 2013 at 6:45

1

Solved

I want to set a basePath to be the same for every component of my Mvc for a given request. I mean when I call these methods I want to get the same result, lets say '/spam/ham/': echo $this->hea...

1

The manual's example shows how to set the basePath only for some specific viewModel: $this->getHelper('basePath')->setBasePath() But I want to set it somewhere in one place and then it is...

3

Solved

My goal is to require login for certain pages. I am using Zend Framework MVC, and I'm trying to find examples regarding best practices. Some notes on what I'm looking for: I want non-logged in u...
Sueannsuede asked 1/4, 2011 at 12:46

5

Solved

Could someone give few tips and/or examples how Controller Plugins and Action Helpers are different? Are there situations where particular task could be accomplished with one but not another? For m...
Auto asked 17/3, 2010 at 15:9

1

Solved

We currently employ Zend Framework and the MVC pattern on our website. We have large numbers of static pages, which are in random areas of the site. These pages are not simple HTML pages that can b...
Whippet asked 21/4, 2009 at 18:33
1

© 2022 - 2024 — McMap. All rights reserved.