Questions tagged [zend-framework-modules]
89 questions
9
votes
1 answer
OAuth in Zend Framework 2
I am currently developing my first ZF application based on the new release 2.0.2. (I don't have any experience in ZF1)
Now I need to use OAuth to authenticate and I wonder if there's already an implementation for ZF2. I know there's a ZF1 module.
If…

Rob
- 1,158
- 1
- 12
- 22
6
votes
1 answer
code run before every actions in a module ZF2?
I want to write some code to run before every actions in my module. I have tried hooking onto onBootstrap() but the code run on the other modules too.
Any suggestions for me?

user1820728
- 61
- 1
- 2
5
votes
3 answers
ZF2 An Invalid Factory Was Registered
I've the following classes and my module config in ZF2 application and it is giving the below error:
While attempting to create applicationformuserform(alias: Application\Form
\UserForm) an invalid factory was registered for this instance…

Manish Jangir
- 5,329
- 4
- 42
- 75
4
votes
2 answers
Change Zend Framework Default Module
I'm working on a project and have the following project layout:
|Project
|-Application
|-api
|-configs
|-controllers
|-models
|-modules
|-core
|-controllers
…

Sjwdavies
- 4,079
- 7
- 38
- 43
4
votes
2 answers
Namespace / Prefix of Controller in Default Module
In my zf application I have 3 modules:
applicant
company
admin
And, in my application.ini I've picked a default module
resources.frontController.defaultModule = "applicant"
So, some of controllers classes are named like:
class IndexController…

texai
- 3,696
- 6
- 31
- 41
4
votes
2 answers
What functionality should go into Zend Framework modules?
I'm a bit puzzled about Zend Framework modules.
I mean - I understand that you would usually want to have frontend and backend module... right?
But - What else would you separate out into modules?
can someone who uses Zend Framework professionally…

Stann
- 13,518
- 19
- 65
- 73
3
votes
2 answers
Modules and models organization on Zend Framework 2
I have some questions about the structure of ZF modules and models.
(I'm talking about ZF 2, because I gave up of ZF 1.11)
To make my question simple to understand, look at the following example:
(I create this just to learn ZF2)
It's a "movie…

Vinicius Garcia
- 1,740
- 4
- 30
- 54
3
votes
1 answer
Modular Zend Framework app & Doctrine integration and usage
I need help, cause I am little stuck on this.
I have set up a modular Zend Framework app. Also using -- https://github.com/eddiejaoude/Zend-Framework--Doctrine-ORM--PHPUnit--Ant--Jenkins-CI--TDD- -- i integrated Doctrine 2.
My directory structure is…

dennisg
- 355
- 1
- 3
- 7
3
votes
1 answer
Best way to package a general-purpose zend module
As our company starts using Zend Framework as the base framework for most of our projects, we want to share some common elements across all our projects. I talk about things like:
An implementation of a model (based on doctrine2)
RBAC for the…

Steffen
- 2,235
- 13
- 19
3
votes
2 answers
Zend Framework - Redirecting to IndexController in different module
All,
I have the following project setup in Zend's mvc Framework. Upon accessing the application, I want the user to redirect to "mobile" module instead of going to IndexController in "default" module. How do I do that?
-billingsystem
-application
…

Jake
- 25,479
- 31
- 107
- 168
3
votes
1 answer
Zend reusable widgets / plugins / miniapplications?
I'm new to Zend framework and trying to get some insights about code re-usability. I definitely know about modules but there seems to be a bit of uncertainty about what functionality should go into modules and what not.
What I'm trying to…

Stann
- 13,518
- 19
- 65
- 73
3
votes
2 answers
Loading Modules Dynamically in Zend Framework 2
I have asked this question yesterday as well, but this one includes code.
Issue
My application have multiple modules and 2 types of user accounts, Some modules are loaded always which are present in application.config.php some of them are…

Haris Mehmood
- 854
- 4
- 15
- 26
3
votes
1 answer
same session use in zf1 , zf2 project
I have two application in zf1 and zf2 on save server, I have created login system in zf2, when i login zf2 it working fine.
Now i want to access zf2 session in zf1, it showing
[zf2_auth] => __PHP_Incomplete_Class Object
(
…

D Coder
- 572
- 4
- 16
3
votes
1 answer
Zend Framework 2 - Cache-conform service factories
The zend file application.config.php offers some way to cache the config, which I find very nice for a production system:
return array(
'modules' => array(
'Application',
),
'module_listener_options' =>…

Lanbo
- 15,118
- 16
- 70
- 147
3
votes
3 answers
Configure ZF2 view_manager to load 2 separate templates maps
I need 2 different template maps in ZF2 , one for admin and oen for front-end, currently from what I can see ZF2 merges the 2 module.config.php files that are used in the 2 modules I configured, and causes the template map I need to set for the…

Andrei Stanca
- 908
- 2
- 11
- 26