[symfony-users] Re: which graphical design software to maintain database for symfony??

2008-11-17 Thread cokker
Hi I recently started to develop a new Eclipse Plugin for symfony: http://sfdt.borox.ch I have integrated an action to convert a clay-file (from Azzurri Clay) into a schema.yml . It is based on a simple XSLT. greets Sven [EMAIL PROTECTED] schrieb: I want to design and maintain my databases

[symfony-users] The most painless way to adopt the form's auto-validation in 1.1 in 1.0

2008-11-17 Thread Eus
Hi Ho! I am involved in a project that uses symfony-1.0. One ineffective and inefficient task that symfony-1.1 has fixed with its integration of sfForm and Propel (http://www.symfony-project.org/book/forms/1_1/en/04-Propel-Integration) is validating the maximum number of characters that can

[symfony-users] lastminute.visualdna.com Symfony 1.1 + Doctrine post-mortem

2008-11-17 Thread Lee Bolding
Hi Gang, As promised in my earlier email, this is my critical post-mortem of what did and didn't work for me on my last project. I personally would like to see quite a few similar critiques appearing - it's constructive criticism, and (I feel) will help the Symfony team to see exactly

[symfony-users] what is wrong with this bug?

2008-11-17 Thread Bruno Reis
Hi there, I´m facing a critical issue with the forms framework for some time now. I have asked here more than once, but could get a good answer. At least I could not understand if it is not a bug or what. Then, I opened a bug: http://trac.symfony-project.org/ticket/4916#comment:1 but it was

[symfony-users] Re: what is wrong with this bug?

2008-11-17 Thread Fabien Potencier
The conversion must be done by the validator, not the widget. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 Bruno Reis wrote: Hi there, I´m facing a critical issue with the forms framework for

[symfony-users] Re : [symfony-users] Re: which graphical design software to maintain database for symfony??

2008-11-17 Thread Loïc Vernet
If you use propel and DbDesigner4 you have the sfDB4toPropel plugin. ++ COil De : cokker [EMAIL PROTECTED] À : symfony-users@googlegroups.com Envoyé le : Lundi, 17 Novembre 2008, 9h24mn 23s Objet : [symfony-users] Re: which graphical design software to

[symfony-users] Displaying range for a value in image...

2008-11-17 Thread Sumedh
Hi Friends... I want to do this feature where I want to display price range graphically... It needs to be a simple image like this... ^ |HEADING | | upper limit | |*** Shaded Area *** |

[symfony-users] Handling session timeout...

2008-11-17 Thread Sumedh
Hi Friends... How can I handle automated session timeout, so that the user is taken to a login page, or shown a message like, You have been logged out because of timeout...? Is there some callback mechanism in Symfony 1.0 for this? - Thanks...

[symfony-users] Re: timestamp default value

2008-11-17 Thread [EMAIL PROTECTED]
Hi, Kiril. Yes, I define this table in schema.yml. So I just need to know how to define by default the current time. I've never heard about defaultExpr attribute so I searched - but haven't found almost anything, the first result was this page. Please, tell me if you know how to do it! P.S.

[symfony-users] File upload deletes previous file if field is empty

2008-11-17 Thread Daniel Staver
Hi! I'm implementing the file upload sample in chapter 4 of the form book. A problem I have is that the file is deleted if I modify an object with a previously uploaded file without uploading a new file. Is this supposed to happen if you implement the code in the book correctly? I think the

[symfony-users] Re: what is wrong with this bug?

2008-11-17 Thread Bruno Reis
But, the validator only converts back from the form. I´m talking about fields that needs to be converted from the model to the form and then back from the form to the model. For instance: I use a date in doctrine: 2005-08-07 When I need to convert it to a plain text date widget, the widget will

[symfony-users] Re: timestamp default value

2008-11-17 Thread Kiril Angov
Did you try: sess_time: { type: datetime, defaultExpr: NOW() } You must be using Propel 1.3 for this to work, though. 2008/11/17 [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi Kirill, look what I found out. When I define session table in schema.yml like that: session: sess_id: { type:

[symfony-users] Re: propel:build-all-load has problem when it gets to forms (1.2.0-dev r13048)

2008-11-17 Thread Kiril Angov
Filing bug report will have better change of action on this :) On Mon, Nov 17, 2008 at 1:24 AM, Evan Fribourg [EMAIL PROTECTED] wrote: When I run './symfony propel:build-all-load' under symfony 1.2.0-dev r13048 (this error has been happening since I started playing with 1.2.0, unknown rev

[symfony-users] Re: Displaying range for a value in image...

2008-11-17 Thread Kiril Angov
For example, http://pecl.php.net/package/imagick On Mon, Nov 17, 2008 at 1:27 PM, Sumedh [EMAIL PROTECTED] wrote: Hi Friends... I want to do this feature where I want to display price range graphically... It needs to be a simple image like this... ^ |HEADING | |

[symfony-users] Re: timestamp default value

2008-11-17 Thread [EMAIL PROTECTED]
I'm using Propel 1.2, though 1.3 may be installed as plugin, right? Actually I don't know - does it worth it? Installing Propel 1.3 as plugin I mean? One advantage I've already seen - are there any others? On 17 нояб, 16:17, Kiril Angov [EMAIL PROTECTED] wrote: Did you try: sess_time: {

[symfony-users] Re: timestamp default value

2008-11-17 Thread Kiril Angov
I am personally using the plugin on Symfony 1.0 and it works just fine, if you want to stay as close as possible to the symfony library versions. Why not use Symfony 1.2, btw? It is ready for use and as it seems you are not working on a production ready project yet. There is not point to start

[symfony-users] Re: timestamp default value

2008-11-17 Thread [EMAIL PROTECTED]
Actually it was not me who chose the symfony version to work in. It's interesting - why are they going to maintain v1.0 for whole three years - but 1.1 and 1.2 only for 1 year? On 17 нояб, 16:45, Kiril Angov [EMAIL PROTECTED] wrote: I am personally using the plugin on Symfony 1.0 and it works

[symfony-users] sfExtjsThemePlugin

2008-11-17 Thread Necho
Hi everybody! I'm french and i join this group because the french's group are not active! I have a problem when i want to install the plugin sfExtjsThemePlugin. I would like install this because i developp a software who must be like this site = http://tejohnston.dynora.eu/ (admin / admin ).

[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-17 Thread Jonathan Wage
We recently changed the base class name from generated to base to match all the other base directories. In propel they are all named base for forms, filters, etc. - Jon On Mon, Nov 17, 2008 at 12:27 AM, bstoppel [EMAIL PROTECTED]wrote: I had the same problem with a different Base* class.

[symfony-users] lauching a task form an action

2008-11-17 Thread Olivier Mansour
hello I have some troubles to lauch a task form an action what is the good method ? I am doing right now : $t = new myTask(sfContext::getInstance()-getEventDispatcher(), new sfFormatter()); $t-run(array(), array()); Symfony throw an exception : You must be in a symfony project directory.

[symfony-users] Re: lauching a task form an action

2008-11-17 Thread Jonathan H. Wage
That is how I see it done by Fabien and I've done it this way myself. chdir(sfConfig::get('sf_root_dir')); Sent from my iPhone On Nov 17, 2008, at 10:43 AM, Olivier Mansour [EMAIL PROTECTED] wrote: hello I have some troubles to lauch a task form an action what is the good method ? I

[symfony-users] AJAX doesn't work on prod box

2008-11-17 Thread [EMAIL PROTECTED]
When I froze and uploaded my source to my production box (on slicehost), my AJAX-ed links won't work. They were tested and fine in my dev environment, but on the server, the code is displayed in the source, but clicking on the link has the same effect as an a href=# tag. I feel like this is a

[symfony-users] Re: Working on a User Profile plugin.

2008-11-17 Thread Richtermeister
Hey James, I've used something like that in the past (was even internationalized), and the way I did it is that I added a type field to the attribute table, so that attributes became text, longtext, boolean, select one, select many, etc... That way you can generate appropriate input elements

[symfony-users] unique user in my article index

2008-11-17 Thread javo
Hi, I use this code to display articles on my page, public function executeIndex() { $c = new Criteria(); $c-addDescendingOrderByColumn(ArticlePeer::CREATED_AT); $pager = new sfPropelPager('Article', 10); $pager-setPeerMethod('doSelectJoinSfGuardUserProfile');

[symfony-users] Re: unique user in my article index

2008-11-17 Thread [EMAIL PROTECTED]
Why not just get users with criteria and write a $user- getLatestArticle() method that's called in your view? On Nov 17, 12:28 pm, javo [EMAIL PROTECTED] wrote: Hi, I use this code to display articles on my page,   public function executeIndex()   {     $c = new Criteria();    

[symfony-users] Re: unique user in my article index

2008-11-17 Thread [EMAIL PROTECTED]
No it wouldn't. Use this: $c = new Criteria(); $c-addDescendingOrderByColumn(UserPeer::CREATED_AT); $pager = new sfPropelPager('User', 10); and then, when you have 10 user objects in your template, ?php $user-getLatestArticle()-printArticle() ? What you're really trying to do is retrieve a

[symfony-users] Re: sfWidgetFormInputFile Not working ?

2008-11-17 Thread fredlab
Stephen: I did overwrite my executeUpdate function as it is public while the processform is private (did it under the action.class.php of the author module). This is my code : lass authorsActions extends autoAuthorsActions { public function executeUpdate(sfWebRequest $request) {

[symfony-users] Re: unique user in my article index

2008-11-17 Thread [EMAIL PROTECTED]
Wait, actually I didn't realize you were trying to select the latest 10 articles, I thought you were just getting 10 articles from different users. That would make things more difficult. I'm not sure how you'd do that. On Nov 17, 12:53 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No it

[symfony-users] Re: Working on a User Profile plugin.

2008-11-17 Thread Jonathan Wage
I've designed databases like this several times in the past. Specifically for CRM solutions where the users can add global custom fields or even add custom fields for specific contact records. I think it is a good solution. I have in fact started a sfDoctrineCrm plugin where you build your own

[symfony-users] Re: AJAX doesn't work on prod box

2008-11-17 Thread Lee Bolding
firebug is your friend for debugging AJAX ;) On 17 Nov 2008, at 17:53, Jonathan Wage wrote: Turn on logging and see if the requests are making it to the server and just erroring out. Tail the production log files $ tail -f log/appname_prod.log Then execute your action and see if

[symfony-users] Re: AJAX doesn't work on prod box

2008-11-17 Thread [EMAIL PROTECTED]
Yeah it says AJAX isn't defined, which would lead me to believe that prototype isn't working for some reason, and I don't know why that would be, besides the fact that I am not good at deploying my application. -Brendan On Nov 17, 1:01 pm, Lee Bolding [EMAIL PROTECTED] wrote: firebug is your

[symfony-users] Re: AJAX doesn't work on prod box

2008-11-17 Thread [EMAIL PROTECTED]
Alright I fixed the issue, but I'm still not sure what the underlying problem was. I had to download prototype and link to it explicitly in my template, but I think I'll attribute this to being a noob and not deploying my application correctly. Thanks for the help though, -Brendan On Nov 17,

[symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Jonathan Franks
You haven't done anything wrong - the example in the tutorial does delete previous uploads if the upload field is left empty. You need to add extra logic to your form in order to prevent this from happening. --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Loïc Vernet
Check this post, i had the same issue: -- http://groups.google.com/group/symfony-devs/browse_thread/thread/be2b4a3cf9f34ad6/77f422fa1c9ccdd3?hl=frlnk=gstq=1.1+feedbackpli=1# De : Jonathan Franks [EMAIL PROTECTED] À : symfony-users@googlegroups.com Envoyé le

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Daniel Staver
Thanks! But did you link to the wrong post? It doesn't seem to be related... I've tried adding logic to the form, but I just don't know the form system well enough to determine what should be modified. I think I need to remove the filename field before it's written to the Image object I'm

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Daniel Staver
Ah, sorry... I didn't understand the french text link to expand the full message. Checking now... On Nov 17, 9:52 pm, Daniel Staver [EMAIL PROTECTED] wrote: Thanks! But did you link to the wrong post? It doesn't seem to be related... I've tried adding logic to the form, but I just don't know

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Daniel Staver
I now have a working check for whether a new file is uploaded or not in the doSave method of the form object, but I still can't figure out how to unset the field if no new file is uploaded. unset($this ['filename']) doesn't work. On Nov 17, 9:54 pm, Daniel Staver [EMAIL PROTECTED] wrote: Ah,

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Jonathan Franks
in which method are you calling unset?? in doSave() is too late. You need to do it before the object is updated in updateObject() On 17 Nov 2008, at 21:19, Daniel Staver wrote: I now have a working check for whether a new file is uploaded or not in the doSave method of the form object,

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Daniel Staver
I'm calling unset in the doSave method before parent::doSave. As far as I can tell doSave calls updateObject() and then save(), so my unset should be in the right place. On Nov 17, 10:33 pm, Jonathan Franks [EMAIL PROTECTED] wrote: in which method are you calling unset?? in doSave() is too

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Daniel Staver
It doesn't work in updateObject either. The filename is still set to NULL. On Nov 17, 10:38 pm, Daniel Staver [EMAIL PROTECTED] wrote: I'm calling unset in the doSave method before parent::doSave. As far as I can tell doSave calls updateObject() and then save(), so my unset should be in the

[symfony-users] Re: sfWidgetFormInputFile Not working ?

2008-11-17 Thread isleshocky77
Fredlab, First I don't think that it was necessary to overwrite the executeUpdate. processForm was protected and not private and this is where you wanted to overwrite, just to add tot he bind function. {{{ #!php #/apps/admin/modules/images/actions/actions.class.php class imagesActions extends

[symfony-users] Update Forms from Symfony 1.0 to 1.1

2008-11-17 Thread Matías López
Hello, I'm just wondering if there is any guide to update my current 1.0 forms to the new 1.1 form framework? Or the only way I have is to re-write all my forms again? Thanks Matías López --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Update Forms from Symfony 1.0 to 1.1

2008-11-17 Thread Jonathan Wage
You will need to re-implement your forms. - Jon On Mon, Nov 17, 2008 at 4:48 PM, Matías López [EMAIL PROTECTED] wrote: Hello, I'm just wondering if there is any guide to update my current 1.0 forms to the new 1.1 form framework? Or the only way I have is to re-write all my forms again?

[symfony-users] Admin 1.2 Routing

2008-11-17 Thread ken
I have this in foo admin module object_actions: sample: action: sample then in actions.php public function executeSample(sfWebRequest $request) { } when i try to use link_to in sampleSuccess.php link_to('Sample', 'admin/sample?id=1') the generated url is

[symfony-users] Re: lastminute.visualdna.com Symfony 1.1 + Doctrine post-mortem

2008-11-17 Thread Eus
Hi Ho! --- On Mon, 11/17/08, Lee Bolding [EMAIL PROTECTED] wrote: Hi Gang, As promised in my earlier email, this is my critical post-mortem of what did and didn't work for me on my last project. I personally would like to see quite a few similar critiques appearing - it's

[symfony-users] Re: Displaying range for a value in image...

2008-11-17 Thread Sumedh
This looks like a very powerful image processing library...thanks :) But for simple line drawings etc, GD should be sufficient right? On Nov 17, 6:21 pm, Kiril Angov [EMAIL PROTECTED] wrote: For example,http://pecl.php.net/package/imagick On Mon, Nov 17, 2008 at 1:27 PM, Sumedh [EMAIL

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Jonathan Franks
Sorry Daniel - I did this a while ago and my memory let me down Ok, just quickly looked at the code. Does this help? unset($this-values['filename']) regards, Jonathan On 17 Nov 2008, at 21:42, Daniel Staver wrote: It doesn't work in updateObject either. The filename is still set