Copyright (c) 2008 Olivier Mansour
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
This plugin aims to simply resolve the problem of doing cross app links for Symfony 1.2.
It's done using the symfony core classes and some context switch, so you can really use the routing defined in each application.
Usage
This plugin provide an helper you can simply use as decribed in the book. For now just the url_for copycat is available : cross_app_url_for
function cross_app_url_for($appname, $url, $absolute = 'false', $env = null, $debug = 'false')
Options are self-explanatory. $url is an internal uri as specified in the routing.ym off the $app application.
TODO
- investigate to check the overhead of the function
- try catch the context creation
- dig more to find the adequat main controler (instead of lauching an exeception)
Changelog
01/12/2008
- initial realease - cross_app_url_for function
On the web
http://www.glagla.org/weblog/2008/11/10/liens-inter-applications-avec-symfony-12/