Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread Thomas Rabaix
Duplicating base code is not ideal. It would be better on the long run to have 2 differents applications, you are not forced to have a dedicaded subdomain. You can initialize the Frontend and Backend from within a single index.php by matching url. On Thu, Jun 2, 2011 at 1:45 PM, keymaster

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread keymaster
You can initialize the Frontend and Backend from within a single index.php by matching url. Thanks for the response, Thomas. While in principle I understand what you are recommending, I have no clue on what changes to make to get that setup. Would you know of any example code somewhere on

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread Thomas Rabaix
On Fri, Jun 3, 2011 at 11:31 AM, keymaster ad...@optionosophy.com wrote: You can initialize the Frontend and Backend from within a single index.php by matching url. Thanks for the response, Thomas. While in principle I understand what you are recommending, I have no clue on what changes

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread keymaster
Just confirming to see if I understand correctly: Two app folders - frontApp, backApp. Single code base. Single db. Each userland bundle has AdminFront and AdminBack classes as well as AdminFrontController and AdminBackController classes. The AdminBundle config is

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread Thomas Rabaix
2 app folders with 1 different configuration for routing and templating. You can share the Admin class, but this is not a good idea, it would be better to have 2 dedicated Admin class, behaviors can change a lot between super admin and simple user. On Fri, Jun 3, 2011 at 2:12 PM, keymaster

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-02 Thread Thomas Rabaix
I am not sure you can easily do that for now. The only good option will be to create another dedicated application (FrontendKernel and BackendKernel). With this solution you can customize all your previous points On Wed, Jun 1, 2011 at 5:45 PM, keymaster ad...@optionosophy.com wrote: Our site

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-02 Thread keymaster
what if we extended the CRUDController, overwrote the crud actions with something like: function edit(){ IF (current route is not 'admin/') THEN //setup things for front end. set new layout template set new edit template set new edit form

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-02 Thread keymaster
maybe... different namespaces...? Sonata/AdminBundleFrontEnd Sonata/AdminBundleBackEnd Code is same in each. In our config/config.yml, we map a different AdminClass and Entity for each of the two AdminBundles to use. We override the templates for AdminBundleFrontEnd as needed. Feasable? --

[symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-01 Thread keymaster
Our site uses the Sonata AdminBundle for our backend. Now we would like to be able to also use it on our front end, so users can manage their own properties (list, edit, delete, search/filter, etc.). However, the following would have to be different for the front and back end: 1.

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-01 Thread Luis Cordova
have you gotten any response yet? have you checked whiteoctober? I have seen someone did this with basic custom CRUD stuff and it simplifies all the magic and it is clear ready made bundles scare me a bit since they have magic keep me posted on your experience with whiteoctober i believe that