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/:i

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 a

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 more

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 > (www.linuxpl.

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=gst&q=diogobaeder#76035d6987e00ad8 > > But I haven't found a solution, yet. The problem is, I have to deliver >

[symfony-users] Re: sfDoctrineGuard is killing me

2010-01-11 Thread Georg Gell
, schrieb Mike Church: > > > On Jan 11, 12:30 pm, Georg Gell 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) >> >> A

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 l

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

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] admin generator, change redirect target after create/update

2009-12-21 Thread Georg Gell
question is "can we over-redirect" ? > > > 2009/12/20 Georg Gell 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

Re: [symfony-users] Development infrastructure

2009-12-20 Thread Georg Gell
You might use a virtual server. I have a virtual ubuntu server in a vbox with bridged network. So it has it's own network address and can be reached from the whole network, and the source code is on a shared windows directory mounted by smbfs. I used vboxsf for mounting the share, but had some trou

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

2009-12-20 Thread Georg Gell
our stuff : > > public function processForm() > { > try > { > parent::processForm(); > } > catch (sfStopException $e) > { > $this->redirect(...); > } > } > > > Not sure if this will work... T

[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 (4

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,

[symfony-users] OT: Create PHPCod comments automatically

2009-12-17 Thread Georg Gell
Hello list, just a quick OT post: I am looking for a way to auto add auto prefilled PHPDoc comments on my PHP files. For example if I have a method like this: public function doSomething($var){ then it should add above (if no PHPDoc comment is already existing) /** * doSomething * * @author Me

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

2009-12-11 Thread Georg Gell
the file parameter is > not empty. > > sent via htc magic > >> On Dec 11, 2009 2:01 PM, "Georg Gell" > <mailto:geor...@have2.com>> wrote: >> >> Hello, >> >> I have an action that accepts file uploads from a desktop program. >> I

[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, result

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

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

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 <mailto:geor...@have2.com>> wrote: > > Hi, > > the following tokens can be found in the autogenerated base model > classes in

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

2009-12-07 Thread Georg Gell
> > protected $isImport = false; > > public function setIsImport($value) > { > $this->isImport = $value; > } > > > And in your postInsert, just test : > > if ($this->isImport) > { > // your stuff > } > &g

[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

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

2009-12-04 Thread Georg Gell
p to here (in case anyone sees this :-D) Georg Stéphane schrieb: > First, Hello (sorry) :-) > > I was assuming this was happening to one of your class; is this > happening to all/other classes ? > > Before Printing, Think about Your Environmental Responsibility! > Avant

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 gets

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 dat

[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

[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 rec

[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 not

[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 cl

[symfony-users] Doctrine nestedSet delete with application level cascade

2009-11-09 Thread Georg Gell
Is there a way to have a table with the nestedSet behaviour cascade it's delete on the application level (like cascade: [delete]? I have a file for each record in the file system that I would like to delete also. Georg --~--~-~--~~~---~--~~ You received this messa

[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] Re: Doctrine:data-load error: which table, which field, which value???

2009-11-02 Thread Georg Gell
or 1.3 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 +01

[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 Dupli

[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] 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 (http://trac.symfony

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

2009-10-06 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: > 346:347: > if($show_left_sliding_men

[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 t

[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

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

2009-09-18 Thread Georg Gell
gt; that there is one. The only other thing I can think of is to use ajax > calls to update the object's contents and size. > > HTH, > Casey > On Sep 18, 2:27 pm, Georg Gell <geor...@have2.com> wrote: > >> Hi, >> >> thanks for the answer. >> at

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

2009-09-18 Thread Georg Gell
_index"] # check the doc > b) in your template add > > 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 <

[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 .item{width:17px} into the template, where the 17px will be different for each request.

[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 c

[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: string,

[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: >> 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. Otherw

[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 > prototypi

[symfony-users] OT: RAD contract issues

2007-03-25 Thread Georg Gell
Hi everyone, this is a little off topic, but I am reading the symfony book atm, it was mentioned in the book that symfony is very useful for RAD and code refactoring, as the newer customers often change the requirements. Technically I am quite used to RAD and I see it's advantages, but I am worki