[symfony-users] [Symfony2] How to use a listener to change the layout a template will decorate

2010-12-08 Thread Arvind
I’m using Symfony2 to build a website that’ll have two views, one for mobile devices and another for desktop depending on the user-agent. I see that templates in Sf2 state what layout they extend or decorate unlike sf1.4. For my app. I don’t want this behavior of Sf2. There’ll be just two layouts

[symfony-users] Re: Wrong date and currency format for locale

2010-12-08 Thread hrajchert
The last one worked :) Thanks, leandro On Dec 2, 8:05 pm, Leandro wrote: > In addition to what Pierre says you should use format_date($date, 'p') > > 'p' references de MediumDatePattern which in Argentina is dd/mm/ > > Hope it helps > > On 25 nov, 21:22,hrajchert wrote: > > > > > > > > > Hi,

[symfony-users] [Symfony2] Configuration by apache directive

2010-12-08 Thread Marijn
Hi guys, I'm having some trouble setting my database username and password from my apache configuration file for Symfony2. Is this no longer supported? My apache directive: https://gist.github.com/733132 I've also tried using the username key in favor of the user key. That didn't resolve the iss

[symfony-users] Re: Setter injection in controllers

2010-12-08 Thread benjamin.dulau
In fact, i think there is an issue here. The xml driver for configuration does not seem to work well. First of all, with the new PR4, the line : Causes a crash of the application with a xsd validation error. For the setter injection, when i use exactly the same configuration, it works with Y

Re: [symfony-users] Re: Setter injection in controllers

2010-12-08 Thread Fabien Potencier
That is definitely weird. Can you create a ticket? Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 On 12/8/10 12:42 PM, benjamin.dulau wrote: In fact, i think there is an issue here. The

[symfony-users] Re: Doctrine2 create column integer unsigned with Doctrin2

2010-12-08 Thread JF Simon
Hey dude, it's possible, but not portable !! You have to use the columnDefinition like this : /** * @orm:Id * @orm:Column(columnDefinition="integer unsigned") * @orm:GeneratedValue(strategy="IDENTITY") */ Yes this options let you defined *completely* your column definition

Re: [symfony-users] Re: Doctrine2 create column integer unsigned with Doctrin2

2010-12-08 Thread Francis Besset
Hey Jeff, Very big thanks for your solution ! Francis. 2010/12/8 JF Simon > Hey dude, it's possible, but not portable !! > You have to use the columnDefinition like this : > >/** > * @orm:Id > * @orm:Column(columnDefinition="integer unsigned") > * @orm:GeneratedValue(strategy=

[symfony-users] Re: Doctrine2 create column integer unsigned with Doctrin2

2010-12-08 Thread JF Simon
De nada - amazing question ! On 8 déc, 14:48, Francis Besset wrote: > Hey Jeff, > Very big thanks for your solution ! > > Francis. > > 2010/12/8 JF Simon > > > Hey dude, it's possible, but not portable !! > > You have to use the columnDefinition like this : > > >    /** > >     * @orm:Id > >    

[symfony-users] Error after executing "insert-sql". No problem when I use "build-all-load".

2010-12-08 Thread Javier Garcia
Hi, when I try to do a "propel:insert-sql" (after doing a propel:build- sql) i get the error message below. What I don't understand: when i do a "build-all-load" (that task includes the task "propel:insert-sql") I don't get any error... Execution of target "insert-sql" failed for the following

[symfony-users] Re: Setter injection in controllers

2010-12-08 Thread benjamin.dulau
No problem. I've created two different tickets. Thanks. Benjamin. On 8 déc, 13:50, Fabien Potencier wrote: > That is definitely weird. Can you create a ticket? > > Thanks, > Fabien > > -- > Fabien Potencier > Sensio CEO - symfony lead developer > sensiolabs.com | symfony-project.org | fabien.

[symfony-users] symfony test:unit or test:all causes odd segmentation fault

2010-12-08 Thread Jérôme TEXIER
Hi, I'm facing a very odd problem when running my unit test suite. Some tests pass correctly but others (not always the same) are causing a segmentation fault (see trace below). I precise that each test works and passes individually, the probem only appears when runing test:unit or test:all. Each

Re: [symfony-users] Re: inject a dependency in constructor at runtime

2010-12-08 Thread Florian
A Paginator is probably not an object you want to manage with the DIC. The DIC is good at managing "global" objects like a logger, the user (from the session), a database connection, ... all the objects for which you only need one instance. For everything else, the DIC is not the solution (like yo

[symfony-users] moving symfony plugin from symfony svn to github

2010-12-08 Thread Kevin
I am moving a plugin of mine (sfAdminDashPlugin) from the symfony svn to github, in the admin area on the plugin page I can't seem to change the "Repository URL". It just reverts back to: http://svn.symfony-project.com/plugins/sfAdminDashPlugin When I uncheck "...host your plugin on the symfony-p

[symfony-users] Where Modify action before saving

2010-12-08 Thread Seifollh Ghaderi
Hi all. In my website I have Post module that each Post created by a user. I use SfDocringGuard plugin. I need to hidden used_id that displayed via a combo box in post/new page and set it when user save the form.But I don't know where to do it? I modified Post.class.php as bellow /lib/model/P

[symfony-users] Autoload a 3rd party vendor class

2010-12-08 Thread Scott Switzer
Hi - I am having an issue autoloading a 3rd party vendor class in Symfony2. The class is the Mailchimp API class, which I downloaded from the Mailchimp website, and the file is called MCAPI.class.php, and the class is called MCAPI. I renamed the file to MCAPI.php, per the naming standards of aut

Re : [symfony-users] Where Modify action before saving

2010-12-08 Thread Blanchard Evelyne
hola amigos :o) ;o) De : Seifollh Ghaderi À : symfony-users@googlegroups.com Envoyé le : Mer 8 décembre 2010, 19h 59min 17s Objet : [symfony-users] Where Modify action before saving Hi all. In my website I have Post module that each Post created by a user.

[symfony-users] Re: Configuration by apache directive

2010-12-08 Thread mwsaz
Hi, Could you check that these are passed to PHP by adding a print_r($_SERVER);exit(); in one of your files ? Also, you should use SYMFONY__DOCTRINE__DBAL__USER instead of SYMFONY__DOCTRINE__DBAL__USERNAME. On Dec 8, 11:51 am, Marijn wrote: > Hi guys, > > I'm having some trouble setting my data

Re: Re : [symfony-users] Where Modify action before saving

2010-12-08 Thread Alex Pilon
Can you post you schema.yml with respect to this model? > *De :* Seifollh Ghaderi > *À :* symfony-users@googlegroups.com > *Envoyé le :* Mer 8 décembre 2010, 19h 59min 17s > *Objet :* [symfony-users] Where Modify action before saving > > Hi all. > In my website I have Post module that each Post

Re: [symfony-users] Autoload a 3rd party vendor class

2010-12-08 Thread Tim Nagel
Symfony2 uses namespaces, $api = new \MCAPI('key'); Or, add a use definition to the top of the file, use MCAPI; t On Thu, Dec 9, 2010 at 04:44, Scott Switzer wrote: > Hi - > > I am having an issue autoloading a 3rd party vendor class in > Symfony2. The class is the Mailchimp API class, wh

Re: [symfony-users] Autoload a 3rd party vendor class

2010-12-08 Thread Francis Besset
Hi Scott, To instanciate a class which is not in a namespace, you must add a backslash before class name : $api = new \MCAPI('my-api-key'); 2010/12/8 Scott Switzer > Hi - > > I am having an issue autoloading a 3rd party vendor class in > Symfony2. The class is the Mailchimp API class, wh

[symfony-users] Re: Prompt for Extended Permissions when registering with Facebook Connect.

2010-12-08 Thread deadwards
WOW! Thanks asshole!! On Dec 6, 1:54 pm, Alex Pilon wrote: > Try this..http://tinyurl.com/2uhq73m > > Thanks! > > > > > > > > > > On Mon, Dec 6, 2010 at 14:49, deadwards wrote: > > This may be a dumb question, but I can't figure out how to prompt for > > extended permissions (ex. publish_str

Re: [symfony-users] Re: Prompt for Extended Permissions when registering with Facebook Connect.

2010-12-08 Thread Alex Pilon
You said it was a dumb question. On Wed, Dec 8, 2010 at 16:56, deadwards wrote: > WOW! Thanks asshole!! > > On Dec 6, 1:54 pm, Alex Pilon wrote: > > Try this..http://tinyurl.com/2uhq73m > > > > Thanks! > > > > > > > > > > > > > > > > > > > > On Mon, Dec 6, 2010 at 14:49, deadwards > wrote:

[symfony-users] Re: Configuration by apache directive

2010-12-08 Thread Marijn
Hi Mwsaz, Thanks for your reply. My original gist was indeed incorrect but like I said in the post, I tried both as I saw SYMFONY__DOCTRINE__DBAL__USERNAME in the slides of a Symfony2 presentation. Anyway, that didn't resolve the issue. If I inspect the request in the profiler I do see these env

[symfony-users] [Symfony2] How to preselect ChoiceField?

2010-12-08 Thread Dennis Jacobfeuerborn
I'm trying to understand how the ChoiceField field for an entity is supposed to work in a form. I have server and rack entities. The server entity has a property "rack" that points to a rack entity. I've create a form where I can edit a server and select a rack from a ChoiceField and when I submit

[symfony-users] [Symfony2][Doctrine2] Mapping issue that only occurs on my remote

2010-12-08 Thread Marijn
Hi everybody, I'm having some trouble with a small test application which won't run on my remote server. I keep getting the following error: No mapping file found named 'Application.ServiceBundle.Entity.Service.dcm.xml' for class 'Application\ServiceBundle\Entity\Service'. My entities are mapped

[symfony-users] [Symfony2][Security] Problems with signing out for HTTP based authentication

2010-12-08 Thread Marijn
Hi guys, I'm having some trouble with signing out user based on the default HTTP based authentication as described here; http://docs.symfony-reloaded.org/guides/security/authentication.html#logout-users When I visit the default signout URL: /signout I get a 404 error page stating that no controll

[symfony-users] Re: [Security] Problems with signing out for HTTP based authentication

2010-12-08 Thread Marijn
For completeness I've added my security configuration file here: https://gist.github.com/734260 On Dec 9, 3:36 am, Marijn wrote: > Hi guys, > > I'm having some trouble with signing out user based on the default > HTTP based authentication as described > here;http://docs.symfony-reloaded.org/guid

[symfony-users] hiding or disabling editing on sfWidgetFormDoctrineChoice and sfWidgetFormDateTime

2010-12-08 Thread dmitrypol
I am having a few challenges with sfWidgetFormDoctrineChoice and sfWidgetFormDateTime. I have profile table used to store address, phone and other info about users. It has relationship to sfGuardUser (using sfDoctrineGuardPlugin-5.0.0). I modified my profileForm class to extend BaseprofileForm t

[symfony-users] Re: hiding or disabling editing on sfWidgetFormDoctrineChoice and sfWidgetFormDateTime

2010-12-08 Thread Marijn
You can use the sfWidgetFormInputHidden class for your sgu_id. If there is no validator in your form class yet for sgu_id create one by adding a sfValidatorChoiceDoctrine validator with the constraints you would like to add. Displaying as non-editable is possible by setting the html attribute of t