[symfony-users] Re: Custom form

2009-04-30 Thread Alexandru-Emil Lupu
HI! I think that you have something like : Services - A [prefs a,b,c,d] - B [prefs e,f,g] - C [prefs h] I think that you want to be able have a form for each one of the services, with custom fields. If so, then you cannot use CRUD. I am nopt very sure how to do it in sf... Alecs On Thu, Apr 30,

[symfony-users] Re: sfGuardPlugin fatal error

2009-04-30 Thread Pierre Lecocq
Unfortunatly ... still got the same error ! I created manually apps/backend/modules/sfGuardAuth/modules/ sfGuardUser/config (also tried apps/backend/modules/sfGuardAuth/ config) I copied the sfGuardUser's generator.yml. Regenerated froms / sql / filters ... cleared cache. But if I modify the

[symfony-users] sfDoctrineGuardPlugin permission/group assignment trouble

2009-04-30 Thread mlmarius
I am using symfony 1.2.1 on PHP 5.2.0-8+etch13 and have installed sfDoctrineGuardPlugin using svn:externals like so : sfDoctrineGuardPlugin http://svn.symfony-project.com/plugins/sfDoctrineGuardPlugin/branches/1.2/ I followed the instructions in this page

[symfony-users] Re: sfGuardPlugin fatal error

2009-04-30 Thread Pierre Lecocq
I tried with the 3.0.0 release. But each time I try to override a file, I have an error. (this time: Class 'autosfGuardUserActions' not found) ... Does anybody encountered the same problem ? On Apr 30, 10:37 am, Pierre Lecocq pierre.lec...@gmail.com wrote: Unfortunatly ... still got the same

[symfony-users] Re: sfGuardPlugin fatal error

2009-04-30 Thread Pierre Lecocq
Can somebody who customized the sfGuardPlugin show me the file system from apps ? apps/ backend/ modules/ sfGuardAuth/ ... And show me its generator.yml ? Thanks On Apr 30, 11:04 am, Pierre Lecocq pierre.lec...@gmail.com wrote: I tried with the 3.0.0 release.

[symfony-users] Re: Custom form

2009-04-30 Thread alessandro
ok I try give you more information. My client is a physiotherapy studio. They give services to their customers like: machinery rental; production of custom plantars; ecc For the first service the form could have these information: kind of machine, rental period, delivery method; For the

[symfony-users] Re: Bitwise Criteria's

2009-04-30 Thread Richtermeister
Gareth, this is awesome! Thanks for taking the time to answer in detail, I get it now and my horizon just expanded by a bit. *drumroll!* ;) Really, thanks, this is cool. Great link as well, I'll be reading up on this. Have a great day! Daniel On Apr 29, 10:48 pm, Gareth McCumskey

[symfony-users] Re: Custom form

2009-04-30 Thread Richtermeister
Hey Alessandro, what you describe is a formbuilder, and if you keep it very basic you can do this via a list of fieldtype, fieldname, required flag, etc.. in the database. The form would just display those fields, and post things to a module that validates it based on your setting, and then I

[symfony-users] Re: Custom form

2009-04-30 Thread alessandro
thanks Richtermeister for the reply, ideally the services the client could create are unlimited and so are the relative forms. Anyway I will talk to the customer and try to restrict the number of options...maybe we'll come up with a single request form with few general options. Thanks to all

[symfony-users] How do you execute a sfTask by clicking on a link (do not want to use the CLI) ?

2009-04-30 Thread fredlab
Hey, I would like to set up a link in an application so that it executes a task that you normally execute using the CLI interface ? Is it possible to do it and how ? I tried to find a tuto on this but I did not succeed. Regards, Frédéric --~--~-~--~~~---~--~~

[symfony-users] Re: How do you execute a sfTask by clicking on a link (do not want to use the CLI) ?

2009-04-30 Thread Jonathan Wage
$task = new sfTaskClassName(); $arguments = array(); $options = array(); $task-run($arguments, $options); Arguments and options are the exact input you would give to the command line. - Jon On Thu, Apr 30, 2009 at 12:52 PM, fredlab frederic.beauf...@free.fr wrote: Hey, I would like to set

[symfony-users] Re: How do you execute a sfTask by clicking on a link (do not want to use the CLI) ?

2009-04-30 Thread fredlab
Thanks and so simple. 2 minutes after I asked for help, I get the answer. Jonathan, you are just fantastic !!! I will try. Thanks. Frédéric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To

[symfony-users] Re: Best practice for debugging ?

2009-04-30 Thread Eno
On Thu, 30 Apr 2009, Benjamin wrote: Is there a way to use one of them to debug Symfony pages ? Features like breakpoints, variables live tracking, etc... seem to be very usefull... I dont use IDEs but between the symfony debug bar, the Apache logs and FireBug+FirePHP, I get the job done.

[symfony-users] Customize created_at field in Propel

2009-04-30 Thread HiDDeN
How can I customize the name of the created_at field? I mean, I'd like to have a field named, for example, created_date, that has the same behavior as the default created_at. How could accomplish that? Thanks! --~--~-~--~~~---~--~~ You received this message

[symfony-users] Package http://plugins.symfony-project.org/get/sfPropelPlugin/sfPropelPlugin -1.3.0.tgz is not valid

2009-04-30 Thread HiDDeN
I'm using Symfony 1.1.7 When I try to install the sfPropelPlugin with this command: php symfony plugin:install sfPropelPlugin I get this error message: Plugin sfPropelPlugin installation failed: Package http:// plugins.symfony-project.org/get/sfPropelPlugin/ sfPropelPlugin-1.3.0.tgz is not

[symfony-users] Re: Package http://plugins.symfony-project.org/get/sfPropelPlugin/sfPropelPlugin -1.3.0.tgz is not valid

2009-04-30 Thread David Ashwood
This happens quite a lot - the workaround is to download the package manually and then use: symfony plugin:install path to package -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of HiDDeN Sent: 30 April 2009 21:51 To: symfony

[symfony-users] Re: Package http://plugins.symfony-project.org/get/sfPropelPlugin/sfPropelPlugin -1.3.0.tgz is not valid

2009-04-30 Thread HiDDeN
I did a svn export of the package, so I got it copied to my lib directory. Then I tried to install with your method but it failed: php symfony plugin:install lib/sfPropelPlugin/ plugininstalling plugin lib/sfPropelPlugin/ sfPearFrontendPlugin Attempting to discover channel

[symfony-users] sfFinder pattern with case-insensitive modifier

2009-04-30 Thread isleshocky77
Before I put a ticket in for this I was wondering if I'm correct in my assessment that sfFinder cannot currently work with a name patter which has a case-insensitive modifier. Looking at line 116 of the sfFinder.class.php it looks like if you have a pattern such as /\.jpg$/i that it would look

[symfony-users] Re: sfFinder pattern with case-insensitive modifier

2009-04-30 Thread isleshocky77
I think this might be a really ugly way of doing it, but I changed that line from if ($str{0} == '/' $str{strlen($str) - 1} == '/') to if ($str{0} == '/' ($str{strlen($str) - 1} == '/' || $str{strlen ($str) - 2} == '/')) and it obviously now works. Can anyone think of a cleaner way

[symfony-users] Re: sfFinder pattern with case-insensitive modifier

2009-04-30 Thread FÁSI Gábor
It is a regexp. The slashes mark the start and the end of the pattern, the i is the case-insensitive flag, so it also matches .JPG, .jPG, etc. Recommended reading: http://hu.php.net/manual/en/regexp.reference.php /\.jpg$/i  that it would look at that as not being a regex expression because

[symfony-users] Re: sfFinder pattern with case-insensitive modifier

2009-04-30 Thread isleshocky77
Yes, I know this, but like 116 of sfFinder.class.php has it looking exclusively for '/something/' by stating the first character and the last character must be slashes. If you had something like '/someTHING/ i' it would not recognise it as being a regex pattern and therefore not treat it as one.

[symfony-users] Problem with DSN, (port)

2009-04-30 Thread Ramiroh
Hi, my problem is that i need use a port, i'm using a server portable Server2Go and work with port 4001, but when i put this port in the DSN my page not work, is freezes databases.yml all: propel: class: sfPropelDatabase param: classname: PropelPDO dsn: