I am learning Zend Framework 2 as it seems to be quite interesting. Unfortunately I can't find a good book to teach my self the framework.
I am interested in knowing which class/object is used to generate links. Lets take some examples:
- Module M has controllers C and actions A1 and A2, assume I am in the view of A1 and am needing to put a link to the controller A2?
- Module M has controllers C1 and C2. From the C1A action of C1, how can I generate a link to C2's C2A action?
- Got 2 modules, Module M1 and Module M2. Both modules have controllers M1C and M2C respectively and each having index actions. From the index controller of M1C (first module), how can I make a link to M2C (of the second module) ?
I am following the Zend Skeleton Application. I wanted to create a link from Application module - Layout view to another view in another module. Well it is a menu item link.
I think the above 3 scenarios will cover most of such links.
I think routing should play a role in this. Not sure.