A
A
Alexey Sumin2014-04-23 15:54:19
Zend Framework
Alexey Sumin, 2014-04-23 15:54:19

Which template or component to use for "controllers within controllers" in ZF 1.12?

Hello, colleagues, it is difficult to formulate the problem in the title of the question, it is better to describe it in detail here.
There is a project management system, pages have urls like:
/project/10/
/project/10/ task
/project/10/task/20
/project/10/task/20 /foto/index
According to the application logic, the request must go through several stages of dispatching , on each layer initialization occurs: permission checks, setting variables in templates, etc., in the urls each step is highlighted in bold.
For example:
/project/10/ task
The first layer is /project/10:
1. you need to find project 10,
2. check that the user has rights to view it,
3. put a link to the project in the template
4. Transfer control to the TasksController action controller
5. At the same time, the TasksController must have the $this->project variable available with a link to the project.
or
/project/10/task/20 /foto/index
the first layer of the project similarly to step 3
, then repeat the same steps for task 20.
The FotoController controller must have $this->project and $this->task variables
available please, in which direction to dig, a plug-in for FrontController or self-written routing to do, or can it be done somehow within the traditional ZF somehow?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question