Re: [symfony-users] Re: how to prevent save in preInsert?

2010-05-29 Thread Georg Gell
add this to each form's configure() method, that you want to have flood protected (I expect that you want to protect this way (form) of entering data from flooding, and not the model itself): $this-validatorSchema-setPostValidator(new CombValidator(null, array(), array('invalid' = 'Flooding is

Re: [symfony-users] Templates in a single directory

2010-05-17 Thread Georg Gell
It might be worth looking into using your own view class: something along class myView extends sfPHPView { public function setDirectory($directory){ $this-directory = $directory . '/theme'; //whatever, must be full path } } and in filters.yml rendering: class: myView But then caching

Re: [symfony-users] a question about routing framework :P

2010-04-01 Thread Georg Gell
try to put something like this in routing.yml auckland: options: { segment_separators: [/, ., -] } Am 01.04.2010 08:39, schrieb Lee Joseph: as I know routing framework in symfony which separates url information with slash '/' or dot '.' like some_route: url: /:module/:actions/:id

Re: [symfony-users] Symfony License issue

2010-03-15 Thread Georg Gell
Hi, checkout symfony and execute find . -name 'LICENSE*' in it's folder. Am 13.03.2010 10:29, schrieb Avinash: Hi There, I am not sure if this is right place, but I need to clear my doubt that if i can create a symfony based product for selling instances to clients without paying to any

Re: [symfony-users] Slow template rendering

2010-01-28 Thread Georg Gell
Axel, is it possible that the creation of the user objects takes such a long time? I don't know what your user objects do, or how many are in this list, but just for displaying the names of the users, I wouldn't create objects, but hydrate with Doctrine_Core::HYDRATE_SCALAR. Try if this works

Re: [symfony-users] No content

2010-01-21 Thread Georg Gell
This happens sometimes when you have a fatal php error in the template (or a method called from the template) Am 21.01.2010 17:24, schrieb Pax95: I've installed a project in my local server - WampServer and it works successfully. I added test content and uploaded it into server

Re: [symfony-users] URGENT: default_messages translation

2010-01-20 Thread Georg Gell
Am 19.01.2010 14:40, schrieb diogobaeder: Hi, guys, I've posted this one: http://groups.google.com/group/symfony-users/browse_thread/thread/5432958e71a54747/76035d6987e00ad8?lnk=gstq=diogobaeder#76035d6987e00ad8 But I haven't found a solution, yet. The problem is, I have to deliver the

Re: [symfony-users] sfDoctrineGuard is killing me

2010-01-11 Thread Georg Gell
probably the key name is too long. Try if this works: ALTER TABLE sf_guard_group_permission ADD CONSTRAINT g FOREIGN KEY (permission_id) REFERENCES sf_guard_permission(id) Am 11.01.2010 07:54, schrieb Mike Church: Hi Folks: I have been trying to deploy, I have everything working right

[symfony-users] Re: sfDoctrineGuard is killing me

2010-01-11 Thread Georg Gell
, schrieb Mike Church: On Jan 11, 12:30 pm, Georg Gell geor...@have2.com wrote: probably the key name is too long. Try if this works: ALTER TABLE sf_guard_group_permission ADD CONSTRAINT g FOREIGN KEY (permission_id) REFERENCES sf_guard_permission(id) Am 11.01.2010 07:54, schrieb Mike

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Georg Gell
Hi, Am 08.01.2010 09:46, schrieb Parijat Kalia: Hey guys, Just lighting up everyone's day, would like to get as many as possible arguments on this. Me and a friend of mine, had a debate last evening, about open source(PHP) vs closed source technologies(DOT NET).He raised the following

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Georg Gell
Am 08.01.2010 15:20, schrieb Lee Bolding: On 8 Jan 2010, at 13:43, Eno wrote: On Fri, 8 Jan 2010, Lee Bolding wrote: The whole IIS/windows server licensing issue is also beginning to disappear - if you want a well supported, enterprise grade, stable and scalable PHP environment,

Re: [symfony-users] admin generator, change redirect target after create/update

2009-12-21 Thread Georg Gell
-redirect ? 2009/12/20 Georg Gell geor...@have2.com mailto:geor...@have2.com Hi, no, this will not work, because I want to change the redirect after the form has been successfully processed, which means no exception to catch. Georg Am 19.12.2009 22:54, schrieb

Re: [symfony-users] admin generator, change redirect target after create/update

2009-12-20 Thread Georg Gell
function processForm() { try { parent::processForm(); } catch (sfStopException $e) { $this-redirect(...); } } Not sure if this will work... Try and tell us. Alexandre 2009/12/19 Georg Gell geor...@have2.com mailto:geor

[symfony-users] admin generator, change redirect target after create/update

2009-12-19 Thread Georg Gell
Hello, I would like to change the target of the redirect in an auto generated admin form, after the object is saved. This target is hard coded in processForm() in the base action. Is there an easier way then copying the whole processForm() method into the action, and then change only the target

Re: [symfony-users] OT: Create PHPCod comments automatically

2009-12-17 Thread Georg Gell
Cool! Thanks Georg Am 17.12.2009 09:45, schrieb Christopher Schnell: NetBeans does that. all you have to do is to add /** above the method and press enter. It can also handle type-hinting. Regards, Christopher. Georg Gell schrieb: Hello list, just a quick OT post: I am looking

[symfony-users] problem with functional test for upload

2009-12-11 Thread Georg Gell
Hello, I have an action that accepts file uploads from a desktop program. I use a form for validation (see below) and if the form is valid, I process the uploaded files(see action below). This works as expected. But the functional tests (see below) do not upload any file (result see below,

Re: [symfony-users] problem with functional test for upload

2009-12-11 Thread Georg Gell
11, 2009 2:01 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hello, I have an action that accepts file uploads from a desktop program. I use a form for validation (see below) and if the form is valid, I process the uploaded files(see action below). This works as expected

Re: [symfony-users] check in model class if it is used from doctrine:data-load task

2009-12-07 Thread Georg Gell
) { $this-isImport = $value; } And in your postInsert, just test : if ($this-isImport) { // your stuff } Nicest way, Alexandre 2009/12/4 Georg Gell geor...@have2.com mailto:geor...@have2.com Hello group, how can I check in a model class

Re: [symfony-users] token ##PACKAGE## in sf1.4 base model classes should be replaced by?

2009-12-07 Thread Georg Gell
and the values come from the properties.ini file. - Jon On Thu, Dec 3, 2009 at 4:15 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hi, the following tokens can be found in the autogenerated base model classes in sf 1.4. * @package##PACKAGE

Re: [symfony-users] token ##PACKAGE## in sf1.4 base model classes should be replaced by?

2009-12-07 Thread Georg Gell
. That would be a question for Kris, I am not sure. - Jon On Mon, Dec 7, 2009 at 2:56 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Yes, svn update, symfony doctrine:build --all-classes and it is working out of the box. Thanks a lot for your work. Just out

Re: [symfony-users] Where to put the logic?

2009-12-04 Thread Georg Gell
about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Dec 3, 2009 at 10:53 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Where would you register the listener? If it is registered in the form action

[symfony-users] check in model class if it is used from doctrine:data-load task

2009-12-04 Thread Georg Gell
Hello group, how can I check in a model class if the class is used from the doctrine:data-load task instead from the normal application? Example model Model class Model extends BaseModel { public function postInsert($event) { if (not in symfony doctrine:data-load){ //do some wild things that

[symfony-users] token ##PACKAGE## in sf1.4 base model classes should be replaced by?

2009-12-03 Thread Georg Gell
Hi, the following tokens can be found in the autogenerated base model classes in sf 1.4. * @package##PACKAGE## * @subpackage ##SUBPACKAGE## * @author ##NAME## ##EMAIL## Is there a way to replace them by real values? Or are they placeholders for future use? TIA Georg -- You received

Re: [symfony-users] Where to put the logic?

2009-12-03 Thread Georg Gell
Hi Bernhard, actually I had the logic in a postInsert method of the Client class, which IMO made the most sense. But this lead to the following surprise: When I used $ symfony doctrine:data-load from a fixture with one client and one user I suddenly ended with two users instead of one. First

Re: [symfony-users] Where to put the logic?

2009-12-03 Thread Georg Gell
Where would you register the listener? If it is registered in the form action, this would only be an elaborate extension of the controller logic: instead of creating the Client object and afterwards the User object directly in the controller, I would register a listener in the controller that

[symfony-users] Where to put the logic?

2009-11-30 Thread Georg Gell
Hello, in my application, I would like to have this logic: When I add a client, I would like to autmatically add an admin user for the client. For me this belongs to the client object logic, and I have put it in postInsert. But if I use doctrine:data-dump and afterwards doctrine:data-load, I

[symfony-users] difficulties with doctrine:data-dump in sf1.4

2009-11-23 Thread Georg Gell
Hello, I have suddenly problems when I try to dump my data. My model has a listener attached, that changes some queries. Until now this didn't matter when using doctrine:data-dump. I updated yesterday to sf 1.4, and now I can't dump the data anymore, because the listener is executed. This does

[symfony-users] Doctrine behaviour adds field, how to get rid of it's validator in auto generated forms in sf 1.3?

2009-11-11 Thread Georg Gell
Dear list, I have a Doctrine behaviour that sets the correct client id on some tables on each save, update and select. The idea is that I put ActAs: ClientAware in the schema.yml file for each table that should have a connection to the client table, and the result would be: * create a field

[symfony-users] Re: non ascii chars in Fixtures files

2009-11-06 Thread Georg Gell
Did you save the fixtures file in UTF8? cosmy schrieb: Hi all, do you know a method to load fixtures data without losing chars like àèìòù and others? It exchanges them with a question mark during the data-load. thank you in advance

[symfony-users] Doctrine:data-load error: which table, which field, which value???

2009-11-02 Thread Georg Gell
Hi, I changed parts of my table definitions to a behaviour, and now doctrine_data-load does not work any more with data, that were previously working. No big problem so far, probably made an error. BUT: The only message I have is this: SQLSTATE[23000]: Integrity constraint violation: 1062

[symfony-users] Re: Doctrine:data-load error: which table, which field, which value???

2009-11-02 Thread Georg Gell
that gives more detail for errors that I can easily convert to sf 1.2. I mentioned the issues with non-verbose error messages in a Doctrine ticket recently with data imports and I think it's something in the pipeline. On Mon, 2009-11-02 at 11:20 +0100, Georg Gell wrote: Hi, I changed parts of my

[symfony-users] use renderPartial in a filer

2009-10-23 Thread Georg Gell
Hi, afaik renderPartial is a method of the action. How can I call it in a filter? Probably through the action stack, but I am too tired to search through the docs again. Is it it fifo or filo? TIA Georg --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: if (condition): endif: not working

2009-10-07 Thread Georg Gell
Guessing: you have short_open_tag=1 in php.ini on your pc, but short_open_tag=0 on your laptop. Avani schrieb: Below is my code 345: !-- show only in trip-profile page OR multimedia pages -- 346: ?php 347:

[symfony-users] culture aware sfValidatorNumber, what are you using?

2009-10-07 Thread Georg Gell
In german, a decimal number looks like this: 5,2, not 5.2 like PHP is expecting. If a user enters a decimal number in a form, sfValidatorNumber rejects it. I was expecting sfValidatorNumber to use the user culture to resolve this, but it does not. I found an old ticket on trac

[symfony-users] Re: Call For Information Re-organization [opinions needed]

2009-09-25 Thread Georg Gell
Hi, as I am just now developing a symfony application, I will watch myself how I try to get the information I need and maybe add some suggestions. In general I would like to say that the symfony documentation is very comprehensive and well done. Thanks to the symfony team for it. On some parts

[symfony-users] Re: Insert custom styles in template

2009-09-21 Thread Georg Gell
Right, thank you Davide Borsatto schrieb: Slots are the solution to your problem, read about them in the docs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send

[symfony-users] Insert custom styles in template

2009-09-18 Thread Georg Gell
Hi, how can I include some custom style information in a specific template? I would like to change the size of some divs fitting to the items in them. So i think i am looking for a way to insert something like style.item{width:17px}/style into the template, where the 17px will be different for

[symfony-users] Re: Insert custom styles in template

2009-09-18 Thread Georg Gell
(/alternate_index) ? c) add it by hand in your template I would recomend just 2a or 2b, as being most appropriate for a long term maintainability. Alecs On Fri, Sep 18, 2009 at 11:16 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hi, how can I include some custom style

[symfony-users] Re: Insert custom styles in template

2009-09-18 Thread Georg Gell
and size. HTH, Casey On Sep 18, 2:27 pm, Georg Gell geor...@have2.com wrote: Hi, thanks for the answer. at 1) AFAIK style should ony be in head, and I cannot put anything in head in my template, this would have to be in layout.php, and there I think I cannot access $this-style from

[symfony-users] How can I set a different base class for each Doctrine record?

2009-09-04 Thread Georg Gell
Dear list, is it possible to set a certain base class for each doctrine record? I tried baseClassName, but this was not working like expected. I would like to have Adress extends BaseAdress extends ClientAwareDoctrineRecord extends Doctrine_Record for all tables, that have a reference to the

[symfony-users] Can't get Doctrine Nested Set on an aliased multi root column to work

2009-08-31 Thread Georg Gell
Hello, I am trying Doctrine for a new project, so my Doctrine level is newbie. I would like to have nested albums with one root album per client, so I set up the table like this: Album: actAs: NestedSet: {hasManyRoots: true, rootColumnName: client_id } columns: path: { type:

[symfony-users] Re: Symfony coders needed / symfony e-commerse module...

2007-09-25 Thread Georg Gell
Yes, I am interested. Please release them! Georg Jon Busby schrieb: On the same subject, I've written a standard Paypal module (standard webpayments), and a Google Checkout module. If anyones interested in using these I'll release them under the MIT lisence in true symfony fashion.

[symfony-users] Re: OT: RAD contract issues

2007-03-25 Thread Georg Gell
Lukas Kahwe Smith schrieb: Georg Gell wrote: Well in order to really leverage the benefits from agile development, one must really build a trust relationship with the client. Otherwise you do not benefit from throwing out things not deemed useful during prototyping etc. All in all