You could do this by implementing a REST API (either in JSON, SOAP, etc.) to communicate between the view and action layer.
Implement an API controller in symfony and spec out an API, and only have the view communicate via API (maybe via curl?). On Oct 8, 5:42 am, Benoît <[email protected]> wrote: > Hello, > > I've sent a message on symfony-users group but nobody answered... > > Maybe it's because of the subject being Symfony2 internals. And that's > why i'm trying to re-post here. > > Here is the message > :http://groups.google.fr/group/symfony-users/browse_thread/thread/fb12... > > ================================================== > > I'm working in a company where IT architects advocate "3-tier > architecture". The main reason is security. > > Those same architects usually defines "3-tier architecture" with JAVA > technologies like this : > - A frontend server (Presentation tier) listens to HTTP requests and > creates the HTTP response. In web environment, an HTML page > (containing tables, forms, ...) is built using JAVA templates > depending on user credentials. > - A backend server (Application tier) is called using JAVA RMI > (Remote Method Invocation, implemented for instance by EJB containers) > each time business logic (e.g. form validation, data persistence) or > data (e.g. paginated rows) is needed. > - A database server (Data tier) stores relational data. > > Pages are rendered on Presentation tier, buisness logic is executed on > Application tier and data are saved on Data tier. See [http:// > en.wikipedia.org/wiki/Multitier_architecture] for more information. > > My boss asked me to build a proof of concept of a PHP framework > relying on such a 3-tier architecture. I chose Symfony2 as this PoC > basis because of its flexible architecture (and its Oracle support via > OCI8 with Doctrine DBAL's help). > > My idea is to replace RMI by SOAP : Presentation tier will call a > webservice (passing something like the serialized DIC as parameter), > then the Application tier will run the controller (eventually calling > Data tier using Doctrine) and return template vars and the view to be > rendered by Presentation tier and sent back to the client. > > I've spent the last week reading a lot of documentation and code to > see what i have to tweak in Symfony2 code and i think it could be > great if you can tell me your opinion about my idea or even point me > in the right direction. > > ================================================== > > Can you fellow developpers help me with this ? > > Regards, > Benoît -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
