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

[symfony-users] [Assetic] How to deal with images references in CSS

2011-06-02 Thread dbenjamin
Hi, I started to use Assetic and that's really a great tool ! However, i wonder how to deal with images referenced in some CSS files. Take jQuery UI for instance, the bundle comes with a css file and an images dir next to it. All images in the css are referenced by 'images/.'. How to deal

Re: [symfony-users] getting a fatal error using swiftmailer

2011-06-02 Thread Gareth McCumskey
How about giving us the code that makes use of SwiftMailer? Kind of hard for us to help you debug without seeing what might be buggy On Mon, May 30, 2011 at 12:31 PM, Diego Henrique Oliveira diegoholiveira...@gmail.com wrote: Hey guys, I'm getting a fatal error when i try to use

[symfony-users] [Symfony2] - [beta3] Empty values on the page that exists in database

2011-06-02 Thread seven seven
Hi everyone, I am currently working on a basic CMS based on sf2. After upgrading from beta1 to beta3 a strange thing happened , some data doesn't appear on the page anymore; same database as in beta1. I must mention that data from the same entity , some works some does not, but every time I

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

[symfony-users] Re: [1.4] sfDoctrineActAsKeyValueStorePlugin with form values

2011-06-02 Thread Tom Boutell
Sounds like you'll be overriding the form's updateObject() method to deal with your custom form fields by calling aSet and aGet on the object. On Wed, Jun 1, 2011 at 11:38 PM, John Kary johnk...@gmail.com wrote: I are doing a project where we our client runs ~15 competitions each year, but the

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] Validators

2011-06-02 Thread Paul Dugas
My SF2 application provides traditional pages using forms for creating/updating entities. I'm also using the Neton\DirectBundle to provide support for a rich Internet application build using Sencha's ExtJS Javascript framework. DirectBundle allows me to publish server-side controller actions

Re: [symfony-users] Validators

2011-06-02 Thread Christophe COEVOET
Le 02/06/2011 15:14, Paul Dugas a écrit : My SF2 application provides traditional pages using forms for creating/updating entities. I'm also using the Neton\DirectBundle to provide support for a rich Internet application build using Sencha's ExtJS Javascript framework. DirectBundle allows me

[symfony-users] Re: Multiple kind of profile with sfGuard

2011-06-02 Thread Grzegorz Śliwiński
Inheritance worked quite good, when I worked with these on diem based portal. sfForked used inheritance initially, but as always, you have to make the final mechanism to process inherited objects, so at current version it's up to developer, whether he'll add inheritance, or not. On Jun 1, 4:39 

[symfony-users] Re: - [beta3] Empty values on the page that exists in database

2011-06-02 Thread Roger Webb
Hello, Did you follow the update document closely: https://github.com/symfony/symfony/blob/master/UPDATE.md That's solved most of my update-related issues. I know there are some bundles (WebServiceBundle for one) that were broken in the last release or two. So, there could, possibly, be

Re: [symfony-users] getting a fatal error using swiftmailer

2011-06-02 Thread keymaster
Getting the identical error, also on Sf2 Beta3. *Fatal error*: Call to a member function clearAll() on a non-object in *C:\Program Files (x86)\Zend\Apache2\htdocs\Symfony\vendor\swiftmailer\lib\classes\Swift\Mime\SimpleMimeEntity.php * on line *822 Here is the code: * $message =

[symfony-users] Recommended way to handle Entities that were not found?

2011-06-02 Thread thesaint
In your controllers you'll often load entities with IDs coming from the URL. What's the recommended way to deal with the case that an entity was not found? In Symfony 1.4 it was $id = $request-getParameter('id); $this-forward404Unless($user = Doctrine_Core::getTable('User')- find($id),

[symfony-users] Re: Recommended way to handle Entities that were not found?

2011-06-02 Thread Roger Webb
If you're using a DQL Query: try { $em-createQuery('...')-getSingleResult(); } catch(\Exception $e) { return new Response('...'); } Will throw an exception if no record is returned. Same thing with getResult instead of getSingleResult should return an ArrayCollection with a count of 0 if

[symfony-users] Re: Set form value from one field to another

2011-06-02 Thread thesaint
Thanks for the pointer. As a followup, I post my working solution here: This is what I do in my controller: private function getSignupForm($customer) { $form = $this-get('form.factory')-create(new Form \CustomerType(), $customer); // remove regular email field

Re: [symfony-users] PDF version of book

2011-06-02 Thread Donald Tyler
If you're talking about 1.4, there are PDF versions of all books available here: http://www.symfony-project.org/doc/1_4/ If you're talking about 2.0, then I'm sure it'll be available one Symfony is actually relealsed. On Thu, May 26, 2011 at 2:43 PM, Symfonier hrs...@gmail.com wrote: A PDF

Re: [symfony-users] [Assetic] How to deal with images references in CSS

2011-06-02 Thread Kris Wallsmith
There is a CssRewriteFilter that should fix relative URLs like these. It’s enabled in the SE by default as “cssrewrite” — try adding that to your asset. k On Thursday, June 2, 2011 at 3:33 AM, dbenjamin wrote: Hi, I started to use Assetic and that's really a great tool ! However, i

Re: [symfony-users] [Assetic] How to deal with images references in CSS

2011-06-02 Thread dbenjamin
Ok, i added the cssrewrite filter to my assets but i'm not sure how to use it. {% stylesheets filter='cssrewrite,?yui_css' '@MvalSiteBundle/Resources/css/jquery/jquery-ui.css' '@MvalSiteBundle/Resources/css/reset.css' '@MvalSiteBundle/Resources/css/style.css' %}

[symfony-users] Re: Recommended way to handle Entities that were not found?

2011-06-02 Thread dustin10
Something like the following: use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class EntityController extends Controller { public function getEntityAction($id) { $em =

[symfony-users] [sf2] Handling AccessDeniedException

2011-06-02 Thread winzou
Hi all, I'm using some ajax features with Symfony2 and jQuery. All is working well, except the case when an ajax request encounters an AccessDeniedException. The behavior in the usual case is to redirect to the login page, I'm ok with that. But, when it's an XmlHttpRequest, with a Json

[symfony-users] Re: R: Functional test: how to set JSON data in a POST method?

2011-06-02 Thread ashton
Not really a solution, more of a workaround, but might as well get an answer up here :D If you get the content in your action like this: $content = $request-getParameter('content'); if(!$content) $content = $request-getContent(); that should allow you to test what you want by passing

Re: [symfony-users] [Assetic] How to deal with images references in CSS

2011-06-02 Thread Paul Dugas
There's also the CssEmbed filter than may be useful if your users tend to actually use most of your images. $0.02, P On Thu, Jun 2, 2011 at 11:53 AM, dbenjamin bd.web...@gmail.com wrote: Ok, i added the cssrewrite filter to my assets but i'm not sure how to use it.     {% stylesheets

[symfony-users] Re: Handling AccessDeniedException

2011-06-02 Thread Roger Webb
Your AJAX request will use the same cookie/authentication as you use normally. I would check the access control on the route you are POSTing to with your AJAX request. My guess is that you are having an issue with ROLEs or user type. Remember that firewalls/access control (ROLES) can (and often

[symfony-users] Re: Can you please unsubscribe me

2011-06-02 Thread Justin Hilles
Symfony Users Home Page My Membership Leave Group Anything else extremely simple i can help you with? -- 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-users] Re: Can't get MongoDB working

2011-06-02 Thread Mathias
Just update to latest symfony and doctrinemongodb commit and everything works well :). On 25 Mai, 13:27, Conrad conrad.barthel...@googlemail.com wrote: I don't. Need this working as well. Thanks for finding this ticket :) -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Symfony and Facebook Hip Hop

2011-06-02 Thread Ton Yeung
Does the code transformer that Facebook put out called hip hop which converts PHP to C++ work when I use the symfony framework? I've read that it doesn't support php5.3 but some recent post say that for the most part it does now. Seeing as how the framework might use a lot of things like eval(),

[symfony-users] Re: Is there demand for a Symfony2 Eclipse Plugin?

2011-06-02 Thread Damien
Yes, I'm also very interested in this. I am currently looking around for one as we speak and came across this thread. Your hard work will be welcome! On Jun 1, 11:51 am, Robert Gründler r.gruend...@gmail.com wrote: Hi, i'm one of the developers of the (never-finished) symfony 1.x eclipse

[symfony-users] Re: Is there demand for a Symfony2 Eclipse Plugin?

2011-06-02 Thread Bart van Wissen
* Do people actually use Eclipse as their preferred IDE for Symfony / PHP projects? [..] * Is there a Twig (or Jinja) Editor available for Eclipse - or does this need to be part of the plugin? I have been using Eclipse as my preferred IDE for years. I must say that I have been doing fine

[symfony-users] Re: [sf2] Debuging applications with netbeans

2011-06-02 Thread Landria Miriidana
Tutorial how to run Unit tests on NetBeans http://netbeans.org/kb/docs/php/phpunit.html On Jun 2, 5:11 am, Diego Henrique Oliveira diegoholiveira...@gmail.com wrote: Thanks for the answer, but my problem it's not debug. :) My problem is: how i can integrate the phpunit into netbeans in a sf2

[symfony-users] Symfony2 Resources in PDF or Other Print Friendly Format?

2011-06-02 Thread Damien
Has anybody packaged 'The Book' on Symfony2 into a printable format yet? I don't understand why there isn't an option to download this reference guide. I know it is moving fast but would be a great resource non-the-less. Anybody? -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Re: Symfony2 Forms createView

2011-06-02 Thread Sebastian
There is obviously a problem with the service definition. I did not look deeper in it though because it worked by using the FormFactroy class in the controller. And I did not need this form as a service necessarily. On May 31, 2:40 pm, Sebastian sknu...@googlemail.com wrote: Hi there, so I

[symfony-users] Re: DataBase Migration

2011-06-02 Thread Bart van Wissen
On 31 mei, 08:53, zemzoum89 ayed.cha...@gmail.com wrote: Please help me, i'm in an internship and i'm working on a symfony project, i'd like to make changes to my database but the problem is that i don't have a schema.yml, i have a lot of other files that contains the model of the database and

[symfony-users] Re: New to PHP

2011-06-02 Thread Ton Yeung
My clientele are cheap and they have a culture of break it apart and jurry rig it if we can. If I don't obfuscate or protect my source, i can be guaranteed its going to show up in someone else's project. Some of you might say go somewhere else then, but they pay so I'm staying. Anyway, php, bsd,

[symfony-users] Iterating over form fields in template

2011-06-02 Thread thesaint
I have a rather long form with many different fields. In my Twig template a few of them need special output, but most of them can be handled with a call to form_row(). I do my rendering in a loop like this: {% for key, elm in form %} {% if key != 'myfield' %} {{ form_row(elm) }} {% endif

[symfony-users] Re: Handling AccessDeniedException

2011-06-02 Thread winzou
Thank you for your answer, but it's not the point. You're right, in theory, an AJAX request should not face an AccessDeniedException. But I'm just playing with the framework, and wanted to see the behavior in case of. So I throw my AccessDeniedException on purpose, for me to make a javascript

[symfony-users] The route # does not exist

2011-06-02 Thread Imran
Hi Folks, I am new to symfony1.4 and few issues are coming with link_to() helper. when i use write as link_to('text', '#), it throws error The route # does not exist. It was working in earlier versions of symfony. How to render the anchor tag with # url? Thanks -- If you want to report a