[symfony-users] Primary key violation with admin generator tool in Sf 1.2.9, propel 1.3 PostgreSql 8.2

2009-11-18 Thread ToM
Hello All, I’m using Symfony 1.2.9 with propel 1.3 and PostgreSql 8.2 Data Base. I’ve generated my backend application using admin generator tool. Everything worked just fine for a few days I was able to update, create and remove objects from data base, but suddenly out of the blue, yesterday I’m

Re: [symfony-users] sfguarduser. How to check before login ?

2009-11-18 Thread Gareth McCumskey
What about doing a pre-filter? http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_filters On Thu, Nov 19, 2009 at 6:08 AM, Avani wrote: > Hi friends, > > In my "before login" pages, there are 3 "tabs" > > 1. Register (register page) > 2. Login (login page) > 3. Gu

[symfony-users] Re: unobtrusive JS

2009-11-18 Thread Antoine S.
sfUJS provides widget form, and it's cool. if you know how to use a widget, that's the same, with just a transformer javascript in the option. The transformer will change the render to something nicer, depends of which widget. You can then create your own widget, following the same way .. the doc

[symfony-users] Re: Create form manually, but add csrf-token?

2009-11-18 Thread Antoine S.
Hi, if your customised form extends sfForm, it should not be a problem, and include the csrf, and valid it. Don't forget to display it in the template if you don't use 'echo $form' On Nov 10, 9:59 am, Sebastian Göttschkes wrote: > Hello, > > I'm a bit lost here as I try to create a form manual

[symfony-users] admin generator

2009-11-18 Thread Antoine S.
Hi, Does someone have a way to find all the possible options of the admin generator ? like : ~, _, =, display, fields, help, date_format .. etc to use all the possibilities before using component, partial or form. It seems that with symfony 1.3/1.4 there is not the same option than the previous v

[symfony-users] sfguarduser. How to check before login ?

2009-11-18 Thread Avani
Hi friends, In my "before login" pages, there are 3 "tabs" 1. Register (register page) 2. Login (login page) 3. Guest (visit site as guest) Now, here, what I have done is.. when user clicks on "guest" he will be automatically logged in as "guest" user and can access some functionality of the sit

[symfony-users] sfDoctrinePager problem "Call to undefined method Doctrine_Collection::offset()"

2009-11-18 Thread rosb
Hi everyone. I'm traing to do a List Pagination but get this fatal error: "Fatal error: Call to undefined method Doctrine_Collection::offset() in /home/rosb/sfprojects/taurus_v01/lib/vendor/symfony/lib/plugins/ sfDoctrinePlugin/lib/pager/sfDoctrinePager.class.php on line 84" I have this code in m

RE: [symfony-users] symfony 1.3 - propel build error

2009-11-18 Thread Daniel Kucharski
Hi, I am indeed using the 1.3RC1 (sandbox install). Could you give me a reference to the bug solution so I can check if it is already present? -Original Message- From: Fabian Lange [mailto:fabian.la...@symfony-project.com] Sent: Wednesday, November 18, 2009 16:29 To: symfony-users@googl

Re: [symfony-users] [OT] Scary action name

2009-11-18 Thread Lee Bolding
I made an app with... public function executeVictim($request) There must be a ton of apps out there with executeUser functions ;) On 18 Nov 2009, at 20:53, sasin...@weboticx.com wrote: > I think I can top that :) > > public function executeFamilyMembers(sfWebRequest $request) > I had to rename

Re: [symfony-users] [OT] Scary action name

2009-11-18 Thread sasinski
I think I can top that :) public function executeFamilyMembers(sfWebRequest $request) I had to rename it to executeListFamilyMembers.. The original was way to scary. :) Mariusz Quoting Sid Bachtiar : > Hi all, > > just an off topic post :) > > I wrote this function a few days ago and just re

[symfony-users] widget to select items and manage their order at the same time -- how?

2009-11-18 Thread Boo_boo
hi for the project i working on, i need some custom choice-widgets with ability to reorder items and retrieve that order as well as id's of selected items, in module/action upon form submission.. something like that: http://www.dicks-blog.com/blogpix/ReOrderLb1.gif or that: http://blog.gascoyne.

[symfony-users] [OT] Scary action name

2009-11-18 Thread Sid Bachtiar
Hi all, just an off topic post :) I wrote this function a few days ago and just realized that it's pretty scary! public function executeYourself(sfWebRequest $request) I must be so tired when I wrote that action! :-\ -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- You receive

[symfony-users] SF 1.3 RC1 - cannot use symfony doctrine:buil ....

2009-11-18 Thread fredlab
Since I upgrade to symfony 1.3 RC1, all my doctrine tasks do not work. When I do symfony doctrine:build-all I got : "Call to undefined method ProjectConfiguration::getEnvironment" I look on the web and I did not find any thing. Any idea ? Regards, Frédéric -- You received this message becau

[symfony-users] Re: Trying to give a default value to a form

2009-11-18 Thread Richtermeister
In this case you're really giving a default value to the model object, and you might consider putting it in the constructor. Daniel On Nov 18, 8:36 am, tirengarfio wrote: > Thanks! > > On Nov 18, 10:55 am, Martin Settle wrote: > > > In other words, you need to create the Mensaje object first...

[symfony-users] Re: Trying to give a default value to a form

2009-11-18 Thread tirengarfio
Thanks! On Nov 18, 10:55 am, Martin Settle wrote: > In other words, you need to create the Mensaje object first... > >  public function executeNew(sfWebRequest $request) >  { >    $m = new Mensaje(); >    $m->setContent('Hola'); >    $this->form = new MensajeForm($m)); > >  } > > 2009/11/18 Gábor

Re: [symfony-users] Trying to give a default value to a form

2009-11-18 Thread Martin Settle
In other words, you need to create the Mensaje object first... public function executeNew(sfWebRequest $request) { $m = new Mensaje(); $m->setContent('Hola'); $this->form = new MensajeForm($m)); } 2009/11/18 Gábor Fási : > The first parameter of a doctrine form should be an object i

[symfony-users] Re: my solution for i18n forms

2009-11-18 Thread dziobacz
Because nobody know how I can unuset fields in FirmTranslationForm. On 11 Lis, 01:11, theredled wrote: > Why don't you just unset() unused fields in FirmForm and > FirmTranslationForm ? > > On 9 nov, 10:42, dziobacz wrote: > > > Creating i18n forms with only some fields from table isn't possible

Re: [symfony-users] symfony 1.3 - propel build error

2009-11-18 Thread Fabian Lange
Is that using the latest RC/SVN? I think there has been a bug, but this should be fixed. I checked my project and it works Fabian On Wed, Nov 18, 2009 at 2:38 PM, Daniel Kucharski wrote: > Here you are: > > BaseBloggableHasTagPeer.php à http://pastebin.org/54843 > > Schema.yml à http://pastebin.o

Re: [symfony-users] Trying to give a default value to a form

2009-11-18 Thread Gábor Fási
The first parameter of a doctrine form should be an object instance (in this case: Mensaje) or null. On Wed, Nov 18, 2009 at 15:30, tirengarfio wrote: > Hi, > > im trying to give a default value to a form through this: > >  public function executeNew(sfWebRequest $request) >  { >    $this->form =

Re: [symfony-users] SVN repo not authenticating?

2009-11-18 Thread Fabian Lange
Not me, I don't have svn powers anymore Fabian On Wed, Nov 18, 2009 at 1:10 AM, Lee Bolding wrote: > Hey guys, > > Who should this be directed to? Fabi(e|a)n? Stefan? > > I'm trying to commit a bunch of fixes that people have contributed to > sfErrorHandlerPlugin recently, but I keep getting an

[symfony-users] Trying to give a default value to a form

2009-11-18 Thread tirengarfio
Hi, im trying to give a default value to a form through this: public function executeNew(sfWebRequest $request) { $this->form = new MensajeForm(array('content' => 'Hola')); } This is the model: Mensaje: colums: sf_guard_user_id: integer(4) receptor_id: integer(4) tipo:

Re: [symfony-users] Re: My first work with Twig template

2009-11-18 Thread Gareth McCumskey
Why not just use pre and/or post filters tied in with the existing templating framework of symfony to get the job done? There really is no need for something like Twig, Smarty et al to do templatisation. Also, CSS is a great way to customise content on the presentation side without affecting busin

Re: [symfony-users] Re: My first work with Twig template

2009-11-18 Thread ReynierPM
Matt Robinson wrote: > I'd like to use Twig in Symfony 1.3 too. A couple of years ago I > implemented phpTAL pretty easily in Symfony 1.0 by writing a custom > view class and telling Symfony to use that instead of its usual > sfPHPView. Perhaps Twig would be similarly easy? Well if you can provide

Re: [symfony-users] Re: How can I access sfUser session value from lib directory

2009-11-18 Thread Frank He
Agree, using sfContext::getInstance() is not working here in the lib directory. As I am using sfAmfplugin in the frontend, see public function executeAmf() { $this->setLayout(false); $gateway = new sfAmfGateway(); $response = sfContext::getInstance()->getResponse(); $resp

RE: [symfony-users] symfony 1.3 - propel build error

2009-11-18 Thread Daniel Kucharski
Here you are: BaseBloggableHasTagPeer.php à http://pastebin.org/54843 Schema.yml à http://pastebin.org/54845 From: Alexandre SALOME [mailto:alexandre.sal...@gmail.com] Sent: Wednesday, November 18, 2009 13:07 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] symfony 1.3 - pr

[symfony-users] Re: Doctrine_Record_UnknownPropertyException

2009-11-18 Thread Jan Fabry
On Nov 18, 12:23 pm, Jan Fabry wrote: > On Nov 4, 6:56 am, theprodigy wrote: > > > I'm receiving an error of type: > > Doctrine_Record_UnknownPropertyException (Unknown method > > Company::getAddress2) > > I am seeing the same problem with a column named 'phone_1'. Maybe it > is related to the di

Re: [symfony-users] Re: How can I access sfUser session value from lib directory

2009-11-18 Thread Alexandre SALOME
NO ! Not good idea ! Using sfContext::getInstance() is (always) a bad idea : why do you need the universe ? Change your method to : function saveMemberHeadImage($image, $sf_user){ // your stuff } And change your method call to pass the sfUser Alex' 2009/11/18 Richtermeister > If that code

Re: [symfony-users] SVN repo not authenticating?

2009-11-18 Thread Alexandre SALOME
Go on this page : http://www.symfony-project.org/about And choose ;) Best would be *Stefan Koopmanschap* 2009/11/18 Lee Bolding > Hey guys, > > Who should this be directed to? Fabi(e|a)n? Stefan? > > I'm trying to commit a bunch of fixes that people have contributed to > sfErrorHandlerPlugin r

Re: [symfony-users] sfDoctrineGuardPlugin errors with 1.3/1.4

2009-11-18 Thread Alexandre SALOME
It works fine for me. Did you tuned anything ? 2009/11/18 Greg Freeman > Has anyone been using sfDoctrineGuardPlugin from the trunk with > symfony 1.3/1.4? > > I can install it, add users by the command line and login but when I > try to add users/permissions/groups etc from the admin pages I g

Re: [symfony-users] symfony 1.3 - propel build error

2009-11-18 Thread Alexandre SALOME
Could you create a pastebin with the full BasePeer code, and one with your model definition ? Thanks, Alexandre 2009/11/18 Daniel Kucharski > Hi, > > > > I am trying to port a symfony 1.2 application to 1.3. When regenerating > the model, I get following parse error bel

Re: [symfony-users] Any test suites for sfGuardForgotPassword module/plugin?

2009-11-18 Thread Alexandre SALOME
You should contact the author of the plugin to see if they have any test suite, or to help them to create one. 2009/11/17 a...@speedypin.com > > Hello fellow Symfony Developers. > > We had an issue today where our sites forgot password functionality > was broken for a few days, (due to changes o

Re: [symfony-users] Re: Functional form testing with i18n

2009-11-18 Thread Alexandre SALOME
Hello, Try some debugging, because everything works fine with the click() method. try this : // your test code ->with('response') ->debug() // next And see the ouput. You should see the HTML code retrieved by the tester. Otherwise, create a pastebin with your generat

Re: [symfony-users] intégration de jqueryGrid

2009-11-18 Thread Alexandru-Emil Lupu
English please. I am also integrating the jqgrid... 2009/11/18 Ben Akacha Khalil > bonjour > - Masquer le texte des messages précédents - > > Je cherche comment intègre le maquette de jqgrid juste j'ai besoin de > table de ce tu peux consulter le demo > http://www.trirand.com/jqgrid/jqgrid.htm

[symfony-users] intégration de jqueryGrid

2009-11-18 Thread Ben Akacha Khalil
bonjour - Masquer le texte des messages précédents - Je cherche comment intègre le maquette de jqgrid juste j'ai besoin de table de ce tu peux consulter le demo http://www.trirand.com/jqgrid/jqgrid.html ensuite clique sur Live Data Manipulation >>Navigator bon j'ai bien faire la maquette mais d'au

[symfony-users] Re: Doctrine_Record_UnknownPropertyException

2009-11-18 Thread Jan Fabry
On Nov 4, 6:56 am, theprodigy wrote: > I'm receiving an error of type: > Doctrine_Record_UnknownPropertyException (Unknown method > Company::getAddress2) I am seeing the same problem with a column named 'phone_1'. Maybe it is related to the digit at the end of the column name? If that is the case

Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-18 Thread Stefan Paschke
Hi Germana > I have to embedded Forms into a main Form, and i have to do this process: > > 1. Save the embedded Form number1 > 2. Save the main Form (the main Form have some Foreing Key from Embedded > Form number1) that is pretty much standard. why does it not work? How do you configure the f

Re: [symfony-users] Re: Licensing Question / Code ownership

2009-11-18 Thread Gareth McCumskey
A licence is just a bunch of legalese. You can use existing licences but it doesn't mean you cannot make your own licence from scratch. As long as clients are informed pre-development what restrictions will be applied there shouldn't be a problem. Of course, bear in mind that really restrictive lic