[symfony-users] Re: Extend form class with I18n

2009-10-14 Thread HAUSa
Someone who knows how this is done? On 13 okt, 08:17, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Would be a good option, but I need more forms than only these two. * Sign up * Change profile * Change sign in settings * Uploads new photo All of these three forms use just a few

[symfony-users] admin field level credentials

2009-10-14 Thread Alexandru-Emil Lupu
HI there! I am trying to create some field level credentials in the edit/new, but it seem that the form is always ignores my credentials (displaying all the fields even i do not have those credentials). Any ideea how to fix it ? this is my generator.yml file generator: class:

[symfony-users] Re: Extend form class with I18n

2009-10-14 Thread Alexandru-Emil Lupu
I think that your UserI18nForm generates some fileds lables like user_i18n_description or so ... you could do unset($this['user_i18n_description']) in your sign in form Alecs On Wed, Oct 14, 2009 at 11:32 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Someone who knows how this

[symfony-users] Re: is sfMediaLibraryPlugin compatible with Symfony 1.2 (Propel)?

2009-10-14 Thread Massimiliano Arione
On Oct 13, 11:56 am, Sid Bachtiar sid.bacht...@gmail.com wrote: I just tried sfMediaLibraryPlugin, could not get it to work! For anyone else reading this, use sfAssetLibraryPlugin instead if you are using Symfony 1.2 (Propel) with TinyMCE 3. Apply the following patch to get rid of the

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-14 Thread Matt Robinson
On Oct 13, 3:13 pm, Pablo Godel pgo...@gmail.com wrote: I am using sfDoctrineGuard plugin. When I run doctrine:data-dump and then data-load the passwords which are encripted by default with sha1 get corrupted. As others have said, sfGuard's setPassword method is called by the data-load task,

[symfony-users] Re: Realize this UML model (job interviews system) in symfony

2009-10-14 Thread Lee Bolding
You can easily create an admin app where the admin can add questions, and a frontend app where the interviewee answers them... However, from your email and questions, it looks as though you don't already have any Symfony experience. This is a fairly trivial application - you could get it

[symfony-users] Trying to list profile fields in the backend

2009-10-14 Thread tirengarfio
Hi, is possible to do it using the generator (parameter list:)? Bye Javi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To

[symfony-users] Re: Trying to list profile fields in the backend

2009-10-14 Thread Alexandru-Emil Lupu
what do you mean ? On Wed, Oct 14, 2009 at 1:34 PM, tirengarfio tirengar...@gmail.com wrote: Hi, is possible to do it using the generator (parameter list:)? Bye Javi -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am

[symfony-users] Specify connection parameters (databases.yml) in PHP

2009-10-14 Thread Davide Borsatto
Hi everybody, Is there a way to specify the connection parameters (those normally specified in databases.yml) via PHP? Maybe in the ProjectConfiguration class, but how? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] sfForm decorator is not used when form is rendered

2009-10-14 Thread Iwan van Staveren
When I would like to render a form with sfWidgetFormSchemaFormatterTable as decorator. But to let it work I need to type the following code: /table ?php echo $form ? /table Although the form decorator table has a format $decoratorFormat = table\n %content%/table; I would prefer

[symfony-users] Re: Trying to list profile fields in the backend

2009-10-14 Thread tirengarfio
I have generated a backend from sfGuadUser model, so i can list in the backend the users registered in my app, sorting the list by the fields (username, created_at, etc)... but i also have a Profile model that is related to the sfGuardUser model. My problem: i dont know how to show also in that

[symfony-users] Re: Trying to list profile fields in the backend

2009-10-14 Thread Alexandru-Emil Lupu
this is relative simple ... check docs for the admin and create a partial to which you provide the rest of the fields ... also ... the sfGuardUser module allready does that listing ... Alecs On Wed, Oct 14, 2009 at 2:32 PM, tirengarfio tirengar...@gmail.com wrote: I have generated a backend

[symfony-users] Re: sfForm decorator is not used when form is rendered

2009-10-14 Thread Thomas Rabaix
It is by design, the $decoratorFormat is only used when you embed a form On Wed, Oct 14, 2009 at 1:13 PM, Iwan van Staveren istave...@gmail.comwrote: When I would like to render a form with sfWidgetFormSchemaFormatterTable as decorator. But to let it work I need to type the following code:

[symfony-users] Component cache and authenticated user

2009-10-14 Thread Grégoire
Hi all, I'm using sf 1.2 and I've got a component on my web page that retrieves some RSS feed data and displays it (using sfFeed2Plugin). I don't want my server to do an http request on each page load, so I cached my component, with the layout. It works fine, but I've noticed a strange behavior:

[symfony-users] Re: Trying to list profile fields in the backend

2009-10-14 Thread tirengarfio
On Oct 14, 1:39 pm, Alexandru-Emil Lupu gang.al...@gmail.com wrote: the sfGuardUser module allready does that listing ... Do you mean it also can sort the list by the Profile fields? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Macosx, problem with mysql while inserting from console

2009-10-14 Thread cosmy
Hi all, I have a problem with console scripts. When i try to make doctrine:insert-sql from my console (i'm under macosx) i receive this error: Couldn't locate driver named mysql ..And of course it's a matter also if i try to load data or build all. I could insert by myself the sql, but i want

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread Gábor Fási
The command line php uses a different php.ini, locate it, and enable both the pdo and the pdo_mysql extensions. On Wed, Oct 14, 2009 at 14:16, cosmy c.zec...@gmail.com wrote: Hi all, I have a problem with console scripts. When i try to make  doctrine:insert-sql from my console (i'm under

[symfony-users] Re: Specify connection parameters (databases.yml) in PHP

2009-10-14 Thread Gareth McCumskey
First thing that goes through my mind is why you would want to do that? databases.yml is where all database connections are defined and you can create as many as you like in there. http://www.lampjunkie.com/2008/04/using-multiple-databases-in-symfony-with-propel/ On Wed, Oct 14, 2009 at 1:04 PM,

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread cosmy
they are enabled and i use the same php.ini On 14 Ott, 14:32, Gábor Fási maerl...@gmail.com wrote: The command line php uses a different php.ini, locate it, and enable both the pdo and the pdo_mysql extensions. On Wed, Oct 14, 2009 at 14:16, cosmy c.zec...@gmail.com wrote: Hi all, I

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread Gareth McCumskey
To make sure about this create a php file (lets call it php_info.php)that only contains: ?php phpinfo(); ? Then run it on command line as: php php_info.php | grep PDO If you do have command line PHP enabled you should see: php php_info.php | grep PDO PDO PDO support = enabled PDO drivers =

[symfony-users] Re: Component cache and authenticated user

2009-10-14 Thread Eno
On Wed, 14 Oct 2009, [ISO-8859-1] Grégoire wrote: - when no user is authenticated, the cache is working fine. - when I log in, the sf_cache_key changes, so the cache is refreshed - I don't want this behavior, since my cached data is not user dependent... Is there a way to parameter the

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread Eno
On Wed, 14 Oct 2009, Gareth McCumskey wrote: To make sure about this create a php file (lets call it php_info.php)that only contains: ?php phpinfo(); ? Then run it on command line as: php php_info.php | grep PDO Or just run: php -i |grep PDO --

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread Gareth McCumskey
Hah! You learn something new everyday On Wed, Oct 14, 2009 at 3:21 PM, Eno symb...@gmail.com wrote: On Wed, 14 Oct 2009, Gareth McCumskey wrote: To make sure about this create a php file (lets call it php_info.php)that only contains: ?php phpinfo(); ? Then run it on command

[symfony-users] Re: sfForm decorator is not used when form is rendered

2009-10-14 Thread Iwan van Staveren
Thomas, Thanks, do you also know what the design idea behind this is or where I can find it? Kind regards, Iwan On 14 okt, 14:06, Thomas Rabaix thomas.rab...@gmail.com wrote: It is by design, the $decoratorFormat is only used when you embed a form On Wed, Oct 14, 2009 at 1:13 PM, Iwan van

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread cosmy
Great, you were right PDO PDO support = enabled PDO drivers = sqlite, sqlite2 PDO Driver for SQLite 3.x = enabled there's no drivers for mysql, but i have this line enabled in php.ini: extension=pdo_mysql.so But i've learnt something new ;) Sharing knowledge is a great thing, thank you very

[symfony-users] Re: sfForm decorator is not used when form is rendered

2009-10-14 Thread Thomas Rabaix
no idea ... On Wed, Oct 14, 2009 at 3:27 PM, Iwan van Staveren istave...@gmail.comwrote: Thomas, Thanks, do you also know what the design idea behind this is or where I can find it? Kind regards, Iwan On 14 okt, 14:06, Thomas Rabaix thomas.rab...@gmail.com wrote: It is by design,

[symfony-users] Performance isset vs strlen

2009-10-14 Thread roberto german puentes diaz
Hi to all, here i send you a script for compare isset vs strlen. Maybe symfony can gain something with this! if (isset($username[5])) { //That's OK!; } is more faster than if (strlen($username) == 5) { //That's OK!; } Sure, there are cases where ask or know the

[symfony-users] Re: Performance isset vs strlen

2009-10-14 Thread Sid Ferreira
Im just shocked with this one ._. On Wed, Oct 14, 2009 at 11:32, roberto german puentes diaz puentesd...@gmail.com wrote: Hi to all, here i send you a script for compare isset vs strlen. Maybe symfony can gain something with this! if (isset($username[5])) { //That's OK!; }

[symfony-users] Re: Performance isset vs strlen

2009-10-14 Thread Fabian Lange
Hi, I am suprised that this is measurable that good. I can reproduce it. isset runs in 15% of the time as strlen. I tried wrapping this into a function: function hasXChars($string, $x){ return isset($string[$x-1]); } - speed boost gone. slower than strlen. The implication is that coders

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread cosmy
I don't know what's the matter.. this is my php configuration for mysql: --with-mysqli=/Applications/MAMP/Library/bin/mysql_config --with-pdo-mysql=shared,/Applications/MAMP/Library do you have an idea? On 14 Ott, 15:39, cosmy c.zec...@gmail.com wrote: Great, you were right PDO PDO support

[symfony-users] sfDoctrineGuard : backend login ILOD

2009-10-14 Thread aymeric
ILOD : infinite loop of death I'm at day 13 in Jobeet for Doctrine and I try to secure my backend. I couldn't get PEAR working so I installed sfDoctrineGuard by hand (manual download, manual unpacking in /plugins). I followed the tutorial and when I try to log in has username: admin , password:

[symfony-users] Re: Component cache and authenticated user

2009-10-14 Thread Eno
On Wed, 14 Oct 2009, Greg wrote: It sounds perfect, but I can't find how to set this key... Is it in my cache.yml file? If you are caching a partial, then you can include the key in the include_partial() call, e.g. ?php include_partials('global/feeds', array('sf_cache_key' = 'newfeeds'));

[symfony-users] Changes in Generator/list doesnt showed in the backend app

2009-10-14 Thread tirengarfio
Hi, just that. Changes in filter, for example, work perfect, but not for the list. Symfony 1.2.8 Javi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

[symfony-users] Re: Performance isset vs strlen

2009-10-14 Thread Alexandre SALOME
:) 2009/10/14 Fabian Lange fabian.la...@symfony-project.com Hi, I am suprised that this is measurable that good. I can reproduce it. isset runs in 15% of the time as strlen. I tried wrapping this into a function: function hasXChars($string, $x){ return isset($string[$x-1]); } - speed

[symfony-users] Re: Changes in Generator/list doesnt showed in the backend app

2009-10-14 Thread Eno
On Wed, 14 Oct 2009, tirengarfio wrote: just that. Changes in filter, for example, work perfect, but not for the list. Symfony 1.2.8 HYCC (Have You Cleared Cache :-) ? -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: Changes in Generator/list doesnt showed in the backend app

2009-10-14 Thread tirengarfio
Yes :) On Oct 14, 6:37 pm, Eno symb...@gmail.com wrote: On Wed, 14 Oct 2009, tirengarfio wrote: just that. Changes in filter, for example, work perfect, but not for the list. Symfony 1.2.8 HYCC (Have You Cleared Cache :-)  ? -- --~--~-~--~~~---~--~~

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread david
That's the configure compile options for php - not what's being used. You need to ensure the extension is loaded. If you check your php -i output you'll either have a single php.ini being used or have multiple .ini files (if you have --with-config-file-path set). The latter is more flexible

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread cosmy
There were a problem with imap.so extension which had blocked all the other extensions.. now it seems ok. Thank you. On 14 Ott, 19:11, david da...@inspiredthinking.co.uk wrote: That's the configure compile options for php - not what's being used. You need to ensure the extension is loaded.

[symfony-users] Performance tricks for Symfony

2009-10-14 Thread roberto german puentes diaz
Before practical test, how much is $v ?? $v = (int) ( (0.7 + 0.1) * 10); how many of you, can accept? Beware with (int) !! cheers to all -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.twitter.com/puentesdiaz Linux

[symfony-users] Re: Performance tricks for Symfony

2009-10-14 Thread david
$v = (string) ( (0.7 + 0.1) * 10); is better... On Wed, 14 Oct 2009 20:08:29 +0200, roberto german puentes diaz puentesd...@gmail.com wrote: Before practical test, how much is $v ?? $v = (int) ( (0.7 + 0.1) * 10); how many of you, can accept? Beware with (int) !! cheers to all --

[symfony-users] Re: What about sfSyslogLogger?

2009-10-14 Thread geezmo
On 9 Ott, 17:55, Davide Fedrigo davide.fedr...@contactlab.com wrote: I'm looking for a symfony class to manage log through syslog. That's my problem, too. It should be not that difficult writing a new class from scratch, but sounds strange that the existing one has been dismissed. Anyone?

[symfony-users] List of objects in the backend with i18n

2009-10-14 Thread Zacarías
Hi @ll, First excuse my English is not very good. Working on my first project with Symfony and Doctrine. I need help with the backend application. I have an object (car) that has a table associated language (i18n, car_translation). I ride a list showing the name found in the language table

[symfony-users] Re: entity-relationship editors?

2009-10-14 Thread Ases
You can try the MySql Workbench which has an ER editor http://dev.mysql.com/downloads/workbench/ It has plugins for Symfony Propel and Doctrine which generate yaml http://forums.mysql.com/read.php?153,208229,208229 On Oct 13, 2:55 pm, cosmy c.zec...@gmail.com wrote: Hi all. Generally i use

[symfony-users] Interface 'Swift_OutputByteStream' not found problem in Swift

2009-10-14 Thread Osman Üngür
Hi, when im trying sending smtp mail with swift it tells me Fatal error: Interface 'Swift_OutputByteStream' not found in /home/osmange/ public_html/swift/classes/Swift/Transport/IoBuffer.php on line 21 --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Additional URL values

2009-10-14 Thread enim ogainam
Hello! I am Enim and i am new to SYMFONY so please be kind. i am having trouble with the build query that causes the returned values to thankyouSuccess.php page not appear.

[symfony-users] Re: what plugins or code do symfony developers prefer for image cropping?

2009-10-14 Thread uncleringo
You may be interested to know that we've just published a symfony plugin called sfDoctrineJcroppablePlugin which, I think, would be something the original poster was looking for. It's a behaviour for your models which adds image handling visual cropping on the backend and can be used with the

[symfony-users] Re: Specify connection parameters (databases.yml) in PHP

2009-10-14 Thread Carlos Jorge Andrade
On 14, Oct 2009, at 13:48 , Gareth McCumskey wrote: First thing that goes through my mind is why you would want to do that? databases.yml is where all database connections are defined and you can create as many as you like in there. Imagine the exact same codebase to power two

[symfony-users] Re: what plugins or code do symfony developers prefer for image cropping?

2009-10-14 Thread uncleringo
You may be interested to know that we've just published a symfony plugin called sfDoctrineJcroppablePlugin which probably does what the original poster was looking for. It's a behaviour for your models which adds image handling visual cropping on the backend and can be used with the admin

[symfony-users] Re: Performance tricks for Symfony

2009-10-14 Thread ffrey
Total madness ! $v = (float) ((0.7 + 0.1) * 10);echo $v; = 8, as expected $v = (int) ((0.7 + 0.1) * 10);echo $v; = 7, as totally unexpected !!! Can you explain why ? A php bug ? Thanks for that thought-provoking post ;-) --~--~-~--~~~---~--~~ You received this

[symfony-users] sf1.1 propel admin gen. editable primary key

2009-10-14 Thread Hofferek Attila
Hi all, how about this problem? Is there any simple or complicated solution? I tried to change the generated form's ID widget type from sfWidgetFormInputHidden to sfWidgetFormInput but still I can' edit the PK. Thanks in advance -- Hofferek Attila

[symfony-users] Re: Performance tricks for Symfony

2009-10-14 Thread Thomas Rabaix
This is a symfony mailing list not a PHP one ;) btw, http://uk.php.net/float On Wed, Oct 14, 2009 at 9:33 PM, ffrey ffrey@gmail.com wrote: Total madness ! $v = (float) ((0.7 + 0.1) * 10);echo $v; = 8, as expected $v = (int) ((0.7 + 0.1) * 10);echo $v; = 7, as totally unexpected !!!

[symfony-users] Re: sfDoctrineGuard : backend login ILOD

2009-10-14 Thread Casey
do you have an @homepage route? On Oct 14, 8:32 am, aymeric elag...@gmail.com wrote: ILOD : infinite loop of death I'm at day 13 in Jobeet for Doctrine and I try to secure my backend. I couldn't get PEAR working so I installed sfDoctrineGuard by hand (manual download, manual unpacking in

[symfony-users] Re: Macosx, problem with mysql while inserting from console

2009-10-14 Thread ridcully
The Problem ist the PHP which comes with MacOSX, you can found it under /usr/bin My resolution is to make a symbolic link to the php from MAMP, XAMPP, Zend etc. sudo mv /usr/bin/php /usr/bin/php.orig sudo ln -s /usr/local/zend/bin/php /usr/bin/php On Oct 14, 8:11 pm, david

[symfony-users] Re: entity-relationship editors?

2009-10-14 Thread cosmy
thank you all.. mysql workbench seems interesting, but it doesn't work on my macosx 10.4 :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

[symfony-users] Re: entity-relationship editors?

2009-10-14 Thread Lee Bolding
Aqua Data Studio? On 14 Oct 2009, at 22:46, cosmy wrote: thank you all.. mysql workbench seems interesting, but it doesn't work on my macosx 10.4 :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Re: sf1.1 propel admin gen. editable primary key

2009-10-14 Thread Fabian Lange
Hi, one of the drawbacks of all ORM is that they cannot edit PKs, but in fact this shows a design flaw. a PK represents identity and s not supposed to be changed. This, among others, is the reason I always put autogenerated integer ids as PK. Fabian 2009/10/14 Hofferek Attila h...@soka.co.hu:

[symfony-users] Is the admin generator cheat sheet deprecated?

2009-10-14 Thread tirengarfio
Hi, just that. I have Sf 1.2.8. Javi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send

[symfony-users] jobbet using sf 1.3

2009-10-14 Thread Nei Rauni Santos
There is any diference of this tutorial using sf 1.3? or it´s iquals the old one using 1.2 ? -- Nei Rauni Santos nra...@gmail.com +55 41 85020985 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group.

[symfony-users] sfDoctrineActAsTaggablePlugin memory leak in simple insert loop

2009-10-14 Thread Carlos Jorge Andrade
Hi, Has anyone been using sfDoctrineActAsTaggablePlugin ? I have a simple site with one table and added this taggable plugin to the schema. It works fine until I built a task to import 200K records. A simple... foreach () { $obj = new Obj(); $obj-title = ...

[symfony-users] Can not rotate image resized by sfThumbnail Plugin

2009-10-14 Thread Avani
Hi all, I have module of photolibrary in my project. In which, when user upload photo, I have resized the photo using sfThumbnail Plugin. Now, I have a link for rotating photo. For that, I have used code below: $image = sfConfig::get('sf_web_dir').'/images/photo_3_147.jpg.png';