[symfony-users] Re: error in symfony 2 sandbox on install

2010-05-21 Thread Florian
same problem, no solution... If you have found it, please tell me :) Florian. On 18 mai, 23:13, AigerVoid aanw...@gmail.com wrote: http://localhost/sandbox/web/check.php mandatory requirements is ok. but in...http://localhost/sandbox/web/index_dev.php/ Warning:

[symfony-users] menu and notification

2010-05-21 Thread Sela
i put in my template a slot to update the menu in the layout. the problem i encounter is where to do check for values i need to display in the menu. i use a partial as the menu and pass variables that are depends on some conditions. should i use event or something else? -- If you want to report

Re: [symfony-users] ldap authentication

2010-05-21 Thread Luc Didry
Hi, There is a very simple way : Install the ldap library for php (in Debian, this is php5-ldap) in /apps/myapp/config/app.yml : all: sf_guard_plugin: check_password_callable: [check, checkPassword] This is by-passing the default sfGuardPlugin password checking methode. Here, check is

Re: [symfony-users] How to got the last id from a table, usinf criteria

2010-05-21 Thread kadia dia
Thank u for your answer, but I use Propel. I have not found an answer yet, so if u can help me. It will be really good for me. 2010/5/20 Abraham Montilla amontil...@gmail.com you mean using Propel? in Doctrine is as simple as using the getLast() method after the execute() method. 2010/5/20

[symfony-users] Error in symfony2 on Win7

2010-05-21 Thread AigerVoid
System conf: Win7 Ult., apache2, php 5.3.2,mysql5 http://localhost/sandbox/web/check.php - OK,all required is green but in: http://localhost/sandbox/web/index_dev.php/ Warning: DOMDocument::schemaValidateSource() [domdocument.schemavalidatesource]: Invalid Schema in C:\Program Files

Re: [symfony-users] How to got the last id from a table, usinf criteria

2010-05-21 Thread Gábor Fási
If last means the biggest id, something like this in your peer class will do: public static function getLastId() { $c = new Criteria(); $c-addDescendingOrderByColumn(self::ID); $item = self::doSelectOne($c); return $item-getId(); } On Fri, May 21, 2010 at 12:14, kadia dia

[symfony-users] Fonction configure() ----- Récup érer la valeur d'un champ

2010-05-21 Thread kadia
Est ce qu'il existe un moyen de récupérer la valeur d'un champ au niveau de la fonction configure. Je voudrai initialiser le validator d'un champ à requis à condition que la valeur d'un autre champ soit égale à une valeur V. Donc il me faudra récupérer la valeur de ce champ afin de poser la

Re: [symfony-users] How to got the last id from a table, usinf criteria

2010-05-21 Thread kadia dia
Thank you for u help, It's ok now; I have just changed some details. And the good code for propel is: $c= new Criteria(); $c-addDescendingOrderByColumn(id); $item = ClasseNamePeer::doSelectOne($c); $x= $item-getId(); 2010/5/21 Gábor Fási maerl...@gmail.com If last means the biggest id,

[symfony-users] How to retrieve the value of a field in configure() function

2010-05-21 Thread kadia
I want to set a validor for a field on configure (), but the field can be required or not, it depends on the value of another field. Now I need set the condition following the value of that filed but I can find the good function, for having that value. I have to use it one configure() function.

[symfony-users] Re: Generated methods in peer class'

2010-05-21 Thread Massimiliano Arione
You can write a Propel behavior, that allows to add both static and non-static methods. Refer to Propel documentation cheers Massimiliano On 21 Mag, 02:57, rekarnar rekar...@gmail.com wrote: Fromhttp://www.symfony-project.org/cookbook/1_2/en/behaviors: Unfortunately, as of PHP 5, static

[symfony-users] Re: Generated methods in peer class'

2010-05-21 Thread rekarnar
Hi, Thats what I was hoping for, can you link me to some documentation, I can't seem to find it anywhere. Much appreciated, On May 22, 1:08 am, Massimiliano Arione garak...@gmail.com wrote: You can write a Propel behavior, that allows to add both static and non-static methods. Refer to

[symfony-users] Where to put a WSDL file

2010-05-21 Thread Tom Haskins-Vaughan
Hey guys, In my everlasting quest for doing things the right way, I'm just wondering where I should put a WSDL file in a plugin. I know it's not really a big deal, but hey... My initial feeling is to put it in myPlugin/data/ Any thoughts? Thanks, Tom -- If you want to report a

[symfony-users] problem rendering embedded form when in edit

2010-05-21 Thread Tofuwarrior
Hi, Anyone give me any pointers? I'm stumped and not really sure where to look. Would really appreciate any help anyone could give, deadline is looming :-( I have an embedded form that works fine for the 'new' action but when it gets called in edit then it throws an error, I've included the

Re: [symfony-users] Where to put a WSDL file

2010-05-21 Thread Daniel Lohse
Yeah, the data directory seems to be the correct location for such a file. :) On 21.05.2010, at 16:11, Tom Haskins-Vaughan wrote: Hey guys, In my everlasting quest for doing things the right way, I'm just wondering where I should put a WSDL file in a plugin. I know it's not really a big

Re: [symfony-users] Error in symfony2 on Win7

2010-05-21 Thread Fabien Potencier
fixed now: http://github.com/fabpot/symfony/commit/269651235ae830fe8d93800f3fc70c6142b8bbc4 This patch will be included in the next version of the sandbox (end of June). In the meantime, you can just apply the patch or store your Symfony project in a path with no whitespaces. Fabien --

Re: [symfony-users] Re: error in symfony 2 sandbox on install

2010-05-21 Thread Fabien Potencier
fixed now: http://github.com/fabpot/symfony/commit/269651235ae830fe8d93800f3fc70c6142b8bbc4 This patch will be included in the next version of the sandbox (end of June). In the meantime, you can just apply the patch or store your Symfony project in a path with no whitespaces. Fabien --

[symfony-users] sfPropel15Plugin won't install

2010-05-21 Thread ferdjuan
I tried: symfony plugin:install sfPropel15Plugin and got: plugininstalling plugin sfPropel15Plugin No release available for plugin sfPropel15Plugin in state stable So I downloaded the package .tgz and tried to install that and I got: sfPearFrontendPlugin ...done: 1,525,189 bytes

[symfony-users] primary key _forms

2010-05-21 Thread safa boubekri
hello in my forms i have ths primary key how can i display it thank you -- 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 group. To post to

[symfony-users] Re: How to got the last id from a table, usinf criteria

2010-05-21 Thread Richtermeister
Hi there, in theory there's not often a need for this kind of query.. For example, if you save an object, you get the new ID immediately.. $object = new Whatever(); $object - save(); $latest_id = $object - getId(); Daniel On May 21, 5:47 am, kadia dia kadial...@gmail.com wrote: Thank you

[symfony-users] Re: Generated methods in peer class'

2010-05-21 Thread Richtermeister
http://www.propelorm.org/wiki/Documentation/1.5/Behaviors#WritingaBehavior It applied to 1.4/1.5, and if you're not there, do yourself a favor and try it out... it'll rock your world. Daniel On May 21, 7:03 am, rekarnar rekar...@gmail.com wrote: Hi, Thats what I was hoping for, can you link

Re: [symfony-users] Where to put a WSDL file

2010-05-21 Thread Tom Haskins-Vaughan
Thanks, Daniel! :) On Fri, May 21, 2010 at 10:30 AM, Daniel Lohse annismcken...@googlemail.com wrote: Yeah, the data directory seems to be the correct location for such a file. :) On 21.05.2010, at 16:11, Tom Haskins-Vaughan wrote: Hey guys, In my everlasting quest for doing things the

[symfony-users] Dumping and loading passwords (re-hashing)

2010-05-21 Thread ashton
I have a question regarding dumping and loading passwords. In 1.4.5 I am experiencing passwords hashes being re-hashed after a dump/load. This is because when the data is loaded the set method is expecting plaintext and hashes the hash that was passed in. (describes issue

[symfony-users] SfValidatorAnd: does the order of the validators (arguments) care??

2010-05-21 Thread Javier Garcia
Hi, I have this code: $this-validatorSchema-setPostValidator(new sfValidatorAnd(array( new ValidatorPasswordActual(array(), array('invalid' = 'Contraseña actual incorrecta.')), new sfValidatorSchemaCompare('password_nuevo',

[symfony-users] Re: SfValidatorAnd: does the order of the validators (arguments) care??

2010-05-21 Thread Javier Garcia
Sorry, in that order it doesn't work. In the reverse order it works. On May 21, 7:12 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this code:      $this-validatorSchema-setPostValidator(new sfValidatorAnd(array(      new ValidatorPasswordActual(array(), array('invalid' =

[symfony-users] edit id in admin

2010-05-21 Thread Mihai Rusoaie
Hello! When I insert an new object in the database, I want the id to be assigned automatically (autoincrement). In the edit form, however, I want to be able to change the id. I tried to override the BaseForm class widget and validator with: $this-widgetSchema['id'] = new

[symfony-users] Symfony overriding custom DB connections?

2010-05-21 Thread Dennis Jacobfeuerborn
Hi, I'm dealing with a setup with multiple databases with identical schemas but individual data. My problem is that I try to handle the connections manually but Symfony doesn't play nice. I basically defined a dummy DB connection (dummy_db) so I can still define the models properly however in the

Re: [symfony-users] sfPropel15Plugin won't install

2010-05-21 Thread Három D . Márk
Unpack the archive in your plugins folder and enable it manually in the ProjectConfiguration. On Fri, May 21, 2010 at 17:00, ferdjuan afr...@gmail.com wrote: I tried: symfony plugin:install sfPropel15Plugin and got: plugin    installing plugin sfPropel15Plugin  No release available for

Re: [symfony-users] edit id in admin

2010-05-21 Thread Tom Haskins-Vaughan
I'm intrigued...why would you want to change the id? On Fri, May 21, 2010 at 1:51 PM, Mihai Rusoaie mi...@rusoaie.com wrote: Hello! When I insert an new object in the database, I want the id to be assigned automatically (autoincrement). In the edit form, however, I want to be able to change

Re: [symfony-users] Symfony overriding custom DB connections?

2010-05-21 Thread Eno
On Fri, 21 May 2010, Dennis Jacobfeuerborn wrote: $con = MMDBConnection::getRead(de); $this-user = $con-getTable(User)-find( 1234 ); this results in an exception: Unknown database 'dummy_db' I've verified that $con contains the correct connection to the real DB member_db but find() still

[symfony-users] Re: Symfony overriding custom DB connections?

2010-05-21 Thread Dennis Jacobfeuerborn
On May 21, 8:35 pm, Eno symb...@gmail.com wrote: On Fri, 21 May 2010, Dennis Jacobfeuerborn wrote: $con = MMDBConnection::getRead(de); $this-user = $con-getTable(User)-find( 1234 ); this results in an exception: Unknown database 'dummy_db' I've verified that $con contains the correct

[symfony-users] Re: Generated methods in peer class'

2010-05-21 Thread rekarnar
Ahhh excellent. Thanks so much. On May 22, 3:35 am, Richtermeister nex...@gmail.com wrote: http://www.propelorm.org/wiki/Documentation/1.5/Behaviors#WritingaBeh... It applied to 1.4/1.5, and if you're not there, do yourself a favor and try it out... it'll rock your world. Daniel On May

[symfony-users] shopping cart?

2010-05-21 Thread bretth
Hi All, I'm looking for any solutions for putting a shopping cart system into a Symfony 1.4 (Doctrine) project. I have found the old shopping Cart plugin for Symfony 1.0 but of course want something current and more fully featured (reports etc) I would prefer not to have to completely develop

[symfony-users] Re: Jobeet Day 7: Unable to find the JobeetCategory object with the following parameters array ( 'slug' = 'design',)).

2010-05-21 Thread asuarez
Thanks! The field slug had a null value on every record of jobeet_category. Now it works!!! On May 20, 5:28 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Look in your database. Do you have a jobeet_category record with a slug 'design'? On Thu, May 20, 2010 at 2:54 PM,