Re: [symfony-users] Re: sfShop demo?

2010-02-10 Thread Andreas Nyholm
apm wrote: I am interested in sfShop, because have similar task. And i ready to share some code for open-source. But problem is , i am beginner in symfony, not sure that i am will be useful. You can start out by testing and finding bugs. Then you will learn how it works. /Andreas -- You

Re: [symfony-users] Doctrine - how to detect if behavior exists

2010-02-10 Thread Daniel Lohse
Yes, that's possible. Inside the model class, do: $this-getTable()-hasTemplate('Timestampable') You can also do getTemplates() which returns all attached templates (= behaviors). Cheers, Daniel On 10.02.2010, at 08:51, Daniel Kucharski wrote: Hi, Is it possible to detect if for

[symfony-users] How may I add HTML code to a generated form field ?

2010-02-10 Thread NOOVEO - Christophe Brun
I'm still working on a backend form of my app. The form has several input fields, one of them allows the user to type an identifier pointing to an object stored on an external database. Let's call this field ExternalId (string 25). Now, I have to add a button after the input field to allow the

Re: [symfony-users] How may I add HTML code to a generated form field ?

2010-02-10 Thread Andrei Dziahel
Hi. You have to write your own form widget (let's call them sfWidgetFormInputButtonized) and then in yourForm::configure() call $this-widgetSchema['external_id'] = new sfWidgetFormInputButtonized(); I'd also recommend to inherit your widget from sfWidgetFormInput. It will save a bit of your

[symfony-users] placeholder in setDefaultMessage

2010-02-10 Thread Thibault Jouannic
Hi sf list, I'm trying to use the new sfValidatorBase::setDefaultMessage to define a message for the 'Required' error in my forms. However, I cannot figure out how to use placeholders in those messages. I'd like to write something like this : sfValidatorBase::setDefaultMessage('required', 'The

[symfony-users] How to set custom error message for sfValidatorPropelUnique?

2010-02-10 Thread Hong Kil Dong
How to set custom error message for sfValidatorPropelUnique? I have tried: new sfValidatorPropelUnique( array('model' = 'User', 'column' = array('email')), array('invalid' = 'My custom error message') ) but I still get 'An object with the same email already exist.' error message... -- You

Re: [symfony-users] Re: changing symfony project structure

2010-02-10 Thread Gareth McCumskey
The problem with that arrangement is that in order to make it work /www needs to be accessible by apache, and he subfolders, and therefore that means that /www/application is also accessible by apache and so creates a security risk for the application. The reason why symfony is structured like

[symfony-users] How to specify connection port in databases.yml using Doctrine

2010-02-10 Thread Pau Peris
Hi, i'm using Doctrine as default ORM and i'm trying to specify the connection port as i have 2 mysql running instances. The configuration i use to connect is: dsn: 'mysql:host=localhost;dbname=xXxxXx' username: xXXx password: XXx port: 3307 I also tried:

[symfony-users] Re: How to set custom error message for sfValidatorPropelUnique?

2010-02-10 Thread Hong Kil Dong
Sorry, it's my mistake ( -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more

Re: [symfony-users] How to specify connection port in databases.yml using Doctrine

2010-02-10 Thread apm
May be? dsn: 'mysql:host=localhost;dbname=xXxxXx;port=' username: xXXx password: XXx -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from

[symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Massimiliano Arione
Just define your object as a class in lib/model. On 9 Feb, 01:35, Pat Fong pf...@globaldatacompany.com wrote: Occasionally I come accross an object that I need in my application which doesnt require being saved to the DB. I usually define this object through the schema as I would any other

RE: [symfony-users] Doctrine - how to detect if behavior exists

2010-02-10 Thread Daniel Kucharski
Thanks Daniel, that'll do. From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Daniel Lohse Sent: woensdag 10 februari 2010 11:10 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] Doctrine - how to detect if behavior exists Yes, that's

[symfony-users] Re: symfony project:deploy dry-run no output

2010-02-10 Thread ev...@freshheads.com
Hmm ok seems like a pretty strange thing. When copying the rsync commando which ./symfony project:deploy production outputs and you add the option -v before lets say the - e option. The list which is gonna be rsynced is displayed. However when adding the option -v to the rsync command in your

Re: [symfony-users] frameset not working in Symfony PHP template

2010-02-10 Thread Eno
On Wed, 10 Feb 2010, DEEPAK BHATIA wrote: I have specified the src files for frame in /qp/web/htm directory where qp is my project. Maybe you should define what 'frameset not working' actually means? -- -- You received this message because you are subscribed to the Google Groups

[symfony-users] Re: Fastest cache method...

2010-02-10 Thread roman.borsc...@googlemail.com
Hi, caching in files is probably one of the slowest things you can do. In the case of php files it might be better with an opcode cache. If you really want fast caching with the best possible read performance, store your array in shared memory (RAM) via APC or XCache. Alternatively, but a bit

Re: [symfony-users] Bad saving on PropelChoice

2010-02-10 Thread Germana Oliveira
Dah!!! Thanks!! --- i was guessing something like that :/ 2010/2/10 Stefan Paschke symfony.pasc...@gmail.com Hi Germana both your keys ('true', 'false') are strings. My guess is that your field type is boolean, so any string will test true. In order to get boolean values, you'd need to

[symfony-users] redeclare class sfDoctrineBaseTask

2010-02-10 Thread scippio
I donwloaded my old project from web and when I run symphony I give error: Fatal error: Cannot redeclare class sfDoctrineBaseTask in /home/ scippio/webs/project/symfony/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBaseTask.class.php on line 99 :( -- You received this message because you are

Re: [symfony-users] Re: changing symfony project structure

2010-02-10 Thread Gunther Konig
On Wed, Feb 10, 2010 at 1:41 PM, Gareth McCumskey gmccums...@gmail.comwrote: The problem with that arrangement is that in order to make it work /www needs to be accessible by apache, and he subfolders, and therefore that means that /www/application is also accessible by apache and so creates

[symfony-users] Error Updating Form

2010-02-10 Thread bobotheevildevilclown
My site is using Symfony 1.4.1 with Propel and a database running on Microsoft SQL 2008. I'm using a form class defined in /lib/form to allow users to view and edit rows in a table. I've added a use_fields() line to it to limit what shows up and changed one of the fields to use a checkbox

[symfony-users] Trying to add Whatever:hover (csshover3.htc)

2010-02-10 Thread Javier Garcia
Hi, i have this problem: http://forum.symfony-project.org/index.php/m/26709/ Any idea? 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-us...@googlegroups.com. To unsubscribe from this group,

[symfony-users] Re: Anyone used symfony with Flash Builder 4 Data Service?

2010-02-10 Thread Danny L
It's easy no need of any plugin installed , just follow the tutorial on the adobe site and in the php file , create first php file somewhere in your root dir , (name cannot contain _ or . ) an then put this in it ?php class SamplePhp { public function __construct() {

[symfony-users] Re: frameset not working in Symfony PHP template

2010-02-10 Thread Henrik Bjornskov
what about stop using frames ? whats the need? On Feb 10, 2:30 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, I have specified the src files for frame in /qp/web/htm directory where qp is my project. Thanks in advance Regards Deepak Bhatia

[symfony-users] How to change time till the user is logged out (if there is no activity in the session) ?

2010-02-10 Thread Javier Garcia
Hi, just that. Using sfDoctrineGuardPlugin 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-us...@googlegroups.com. To unsubscribe from this group, send email to

[symfony-users] sfDoctrineGuardExtraPlugin Symfony 1.4.2

2010-02-10 Thread Don_Busi
Hi everybody, I'm trying to create a new application with Symfony 1.4.2, Doctrine and sfGuard. Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I checked out the latest version from the 1.3 branch (as there is no 1.4 branch) into my plugins folder. For some reason, the plugin

Re: [symfony-users] sfDoctrineGuardExtraPlugin Symfony 1.4.2

2010-02-10 Thread Gábor Fási
Did you enable the plugin? On Wed, Feb 10, 2010 at 19:18, Don_Busi dominik.busin...@gmail.com wrote: Hi everybody, I'm trying to create a new application with Symfony 1.4.2, Doctrine and sfGuard. Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I checked out the latest

[symfony-users] Homepage routing not working properly.

2010-02-10 Thread Darren884
I have set my routing in my routing.yml file to: homepage: url: / param: { module: employee, action: login } But it still shows: Symfony Project Created Congratulations! You have successfully created your symfony project. I have cleared the cache as well numerous times through the

Re: [symfony-users] Homepage routing not working properly.

2010-02-10 Thread Eno
On Wed, 10 Feb 2010, Darren884 wrote: I have set my routing in my routing.yml file to: homepage: url: / param: { module: employee, action: login } But it still shows: Symfony Project Created Congratulations! You have successfully created your symfony project. I have cleared

[symfony-users] Re: How to change time till the user is logged out (if there is no activity in the session) ?

2010-02-10 Thread wissl
http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_session_management On 10 Feb., 19:04, Javier Garcia tirengar...@gmail.com wrote: Hi, just that. Using sfDoctrineGuardPlugin Javi -- You received this message because you are subscribed to the Google

[symfony-users] sfValidatorErrorSchema error'ing (without errors?)!

2010-02-10 Thread Cainã
HI ppl. I'm trying to create a new form, which inherit from sfForm. In that form, i embed some other forms, and on save(), i save them too. But, i'm getting a blank error from sfValidatorErrorSchema, pointing to the $this-errorSchema = new sfValidatorErrorSchema($this-validatorSchema); from the

[symfony-users] Re: Error Updating Form

2010-02-10 Thread bobotheevildevilclown
Issue now happens on edit as well as update. I found some more out about this,. BasePeer::doSelect() calls BasePeer::populateStmtValues() calls $stmt-bindValue(':p'.$i++, (int)$value, $pdoType); on roughly line 594 of my BasePeer.php pdo type has been set by a call to

[symfony-users] Plugin wide layout

2010-02-10 Thread Avi Block
Is there a good way to make sure every module in a plugin has the same layout (one that is stored in the plugin, not in your app) -- 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: Plugin wide layout

2010-02-10 Thread Richtermeister
Hey there, look at the sfBlogPlugin, although it's a little outdated, it uses the trick you're looking for, which can be turned on / off via a config parameter (use bundled layout I believe). Daniel On Feb 10, 11:23 am, Avi Block atbl...@gmail.com wrote: Is there a good way to make sure every

[symfony-users] Re: Error Updating Form

2010-02-10 Thread bobotheevildevilclown
This appears to come back to a known bug: http://bugs.php.net/bug.php?id=44643 https://connect.microsoft.com/SQLServer/feedback/details/521409/odbc-client-mssql-does-not-work-with-bound-parameters-in-subquery It sounds like it may be a MS SQL Server bug, not a PHP/PDO/symfony bug. I'm

Re: [symfony-users] Re: symfony project:deploy dry-run no output

2010-02-10 Thread Augusto Flavio
Do you use the -e option for what? I think that the problem is in the class that execute the rsync process. sfFileSystem method execute(). I will work inside this problem. The next week i think i have a answer. bye. Augusto Morais -- You received this message because you are subscribed

Re: [symfony-users] changing symfony project structure

2010-02-10 Thread Eno
On Mon, 8 Feb 2010, Tom Ptacnik wrote: I needed to change it, because of my clients hosting. He host on the server, where he can't change anything in apache configuration. He has configured hosting that way, that every folder in his webfolder is a subdomain These two statements appear to

Re: [symfony-users] Re: changing symfony project structure

2010-02-10 Thread Eno
On Tue, 9 Feb 2010, Tom Ptacnik wrote: Shorter question :-) Did someone tryied to change project structure to: /www(web folder - index.php, .htaccess, css, js) /www/application(rest of the application - apps,cache,config,) and had some problems with that? I guess noone

[symfony-users] Re: sfDoctrineGuardExtraPlugin Symfony 1.4.2

2010-02-10 Thread Don_Busi
Hi, I added the following to the settings.yml of my Application. -- all: .settings: enabled_modules:[default, sfGuardAuth, sfGuardForgotPassword, sfGuardRegister] -- Other than that I didn't enable

Re: [symfony-users] Re: sfDoctrineGuardExtraPlugin Symfony 1.4.2

2010-02-10 Thread Gábor Fási
You need to enable the plugin in your ProjectConfiguration. http://www.symfony-project.org/tutorial/1_2/en/whats-new#chapter_3fb3b0c857177a2b6740a5dcbc0fb8c7_configuration On Wed, Feb 10, 2010 at 22:14, Don_Busi dominik.busin...@gmail.com wrote: Hi, I added the following to the settings.yml of

[symfony-users] Re: How to change the route created by the admin generator

2010-02-10 Thread Fabrizio
I found another discussion on the exact same problem http://groups.google.com/group/symfony-users/browse_thread/thread/61ae0d3e9a06224c/f46622302f3744c1?show_docid=f46622302f3744c1 I already tried this solution (in my case, add a method getTypeId () ), but does not work, this method is not

[symfony-users] Re: sfDoctrineGuardExtraPlugin Symfony 1.4.2

2010-02-10 Thread Don_Busi
Thanx a lot. I forgot about that. It works fine now. Cheers, Don On Feb 10, 10:26 pm, Gábor Fási maerl...@gmail.com wrote: You need to enable the plugin in your ProjectConfiguration.http://www.symfony-project.org/tutorial/1_2/en/whats-new#chapter_3fb3... On Wed, Feb 10, 2010 at 22:14,

[symfony-users] Re: How to change the route created by the admin generator

2010-02-10 Thread ken
As for me, I ended up overriding sfDoctrineRoute and sfDoctrineRouteCollection On Feb 11, 5:51 am, Fabrizio fabrizio.pucci...@gmail.com wrote: I found another discussion on the exact same problem http://groups.google.com/group/symfony-users/browse_thread/thread/61a... I already tried this

RE: [symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Pat Fong
Thanks Massimiliank, I did consider doing this but in that in that case I need to write the whole class from scratch so no getters and setters etc which I was hoping to avoid. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of

Re: [symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Gareth McCumskey
So define the object in your schema, run the symfony propel:build-model (or Doctrine equivalent) and then remove it from the schema. symfony does not delete previously created model classes :) On Thu, Feb 11, 2010 at 6:58 AM, Pat Fong pf...@globaldatacompany.com wrote: Thanks Massimiliank, I