[symfony-users] Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread caphun
Hi, It seems like the include_custom parameter was dropped from generator.yml in Symfony 1.2 but I could not find any documentation on alternatives. Looking at the 1.0 documentation (http://www.symfony-project.org/book/ 1_0/14-Generators) under listing 14-6 it shows: author_id:{ params:

[symfony-users] CSRF token required on login form when session times out

2009-08-12 Thread Grégoire
Hi, I've got a problem with my login form that occurs only after a session timeout when I was on a form, posting data. My application has global CSRF protection. The facts are these... 1. I log in successfully. 2. I go to a page with a form (that is csrf protected). This action is secure,

[symfony-users] Re: Best way to learn Symfony

2009-08-12 Thread James Cauwelier
If you feel like you 're struggling with doctrine rather than symfony, the following is recommended: http://www.symfony-project.org/doctrine/1_2/en/ I wouldn 't recommend Jobeet without first skimming through The Definitive Guide to Symfony James On Aug 12, 5:01 am, Eno symb...@gmail.com

[symfony-users] Re: CSRF token required on login form when session times out

2009-08-12 Thread Stig Manning
I have run into this problem also, basically the only way I managed to fix this was to remove CSRF protection for the login form. I believe it is to do with how the global CSRF token is created, it is using the session_id which is being reset by symfony. I would like to know if anyone knows how

[symfony-users] Re: doctrine admin generator: custom label and icon in object_actions

2009-08-12 Thread gestadieu
in such a case I would simply add a class to my custom object action and set a javascript to clean up the text afterward. myaction: { label: myinvisiblelabel, params: class=nolabel ...} in js: $('.nolabel').text(''); another way would be to use in sf1.2+ the generator helper in lib/, I

[symfony-users] Re: project:deploy rsync on windows

2009-08-12 Thread avorobiev
For using rsync on a windows machine you need: 1. Install cwRsync from http://www.itefix.no/i2/node/10650; 2. In the script /trunk/lib/vendor/symfony/lib/task/project/ sfProjectDeployTask.class.php change line 160 from: $this-log($this-getFilesystem()-sh(rsync --progress $dryRun $parameters

[symfony-users] Help text for nested form fields

2009-08-12 Thread caphun
Hi, Been looking around for answers to this but couldn't find one. Does anyone know how to get the help text from generator.yml to pull through to a nested form field? If that's not possible what's the best way to manually set the help text for a nested form field? Thanks!

[symfony-users] doctrine admin generator: custom label and icon in object_actions

2009-08-12 Thread silvio.cimino
Good suggestion! The linkToObjectactionname solution is also useful to customize the javascript message (Are you sure?) with i18n support (I sent another post with this request). Even though I hoped to find a generic solution useful for all modules, instead of a per-module implementation. In

[symfony-users] Re: delete a embedded form

2009-08-12 Thread Ca-Phun Ung
Hi, here's a good article that helped me... doesn't use Ajax but you could probably quite easily hook the delete button to an Ajax helper: http://redotheoffice.com/?p=42 On Thu, Aug 6, 2009 at 10:06 PM, Germana Oliveira germanaolivei...@gmail.com wrote: Hi!! i just want to know if somebody

[symfony-users] Re: pkMedia apikey

2009-08-12 Thread Sid Bachtiar
I got it!! In app.yml, instead of from the documentation: pkMedia: apikeys: * sidisinthehouse apipublic: false I changed it to: pkMedia: apikeys: [sidisinthehouse] apipublic: false Now it is working :) On Wed, Aug 12, 2009 at 2:39 PM, Sid

[symfony-users] Re: pkMedia apikey

2009-08-12 Thread Tom Boutell
Sorry about that Sid - the documentation on the plugin site is generated from the most recent tarball release, which was quite a while ago and seems to have that bug in the README. Glad you figured it out. Right now, with so much active development going on, I recommend checking out

[symfony-users] Re: sfWidgetFormDateTime help needed

2009-08-12 Thread François CONSTANT
Hi, Just use created_at and/or updated_at fields in your data base. You'll have nothing to do ! On Aug 12, 7:07 am, sunny asim...@gmail.com wrote: i am using sfWidgetFormDateTime can any one tell me how to insert it automatically current date time in database without showing the widget on

[symfony-users] Analyse doctrine queries

2009-08-12 Thread klemens_u
I'm using symfony 1.2.7 with Doctrine 1.0 and I have an action which produces far too much database queries. What are your best practices to find out where the queries come from and how much time they consume? The web debug toolbar shows the total amount of queries and the query itself but it

[symfony-users] delete a embedded form

2009-08-12 Thread Germana Oliveira
mmm, but this delete the embedded form or delete the data in the embedded form from the database ¿? because what i need is to delete the form to embed a new one, i meant replace one with another... THANKS!!! ___

[symfony-users] generate.yml file upload path variables

2009-08-12 Thread Richie
Is it possible to dynamically define your path using values from your db in your file upload path in your generate.yml file? I'm trying the following with no success... fields: show_banner: help: please upload a 870x230px image (jpg only) type: admin_input_file_tag upload_dir:

[symfony-users] Re: Best way to learn Symfony

2009-08-12 Thread Donald Tyler
I find that understanding some of the fundamental OOP concepts that symfony employs will help a lot when using the framework. A good book on design patterns is s great place to start. I'd recommend Head First Object Analysis and Design or the Gang of Four's original book. Most of these books

[symfony-users] Ajax error 500

2009-08-12 Thread Rafael Barbosa
Hey guys, I'm trying to get some user data from a rest webservice using file_get_contents, the problem is, when the sfObjectRoute::getObject cannot find the user, it issues a 404 Exception. It's all fine with that, the problem is when the sfError404Exception calls the method printStackTrace()

[symfony-users] Re: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Eno
On Tue, 11 Aug 2009, caphun wrote: It seems like the include_custom parameter was dropped from generator.yml in Symfony 1.2 but I could not find any documentation on alternatives. Looking at the 1.0 documentation (http://www.symfony-project.org/book/ 1_0/14-Generators) under listing 14-6

[symfony-users] about session handling

2009-08-12 Thread sunny
how to creat sessions like $_SESSION['name']=asdasd; in symfony. --~--~-~--~~~---~--~~ 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@googlegroups.com To

[symfony-users] Re: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Ca-Phun Ung
On Wed, Aug 12, 2009 at 11:00 PM, Eno symb...@gmail.com wrote: If you look at the code, you'll see its still there in 1.1 and 1.2. Hmm, but params: include_custom='Choose an option', doesn't work in 1.2. Given the above the first option in my drop down should be: option value=Choose an

[symfony-users] Re: about session handling

2009-08-12 Thread Tom Haskins-Vaughan
http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_user_session sunny wrote: how to creat sessions like $_SESSION['name']=asdasd; in symfony. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Re: about session handling

2009-08-12 Thread asim nizam
thank you very much!! On Wed, Aug 12, 2009 at 9:36 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_user_session sunny wrote: how to creat sessions like $_SESSION['name']=asdasd; in symfony.

[symfony-users] Re: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Richtermeister
Hey Caphun, I believe the place to handle this stuff is in the form classes now, and I find that a better place as well, since it affects all instances of a form and you can adjust the validator at the same time as well (assuming you need to tell it to allow an empty submission or not..). Hope

[symfony-users] Form validation

2009-08-12 Thread Stefano
Hi, I'm developing my first web-application and I'm still RTFM (Reading The Fabulous Manuals), but I need a little help with a form validation. For this application I'm using the Admin Generator. The form contains 5 target fields: T1, T2, T3, T4, T5; every target must be greater than the

[symfony-users] Re: Symfony render admin list form

2009-08-12 Thread Richtermeister
hey giugio, without answering your real question (sorry, pressed for time right now), I would just link to the regular admin list for comments and pass a filter parameter to limit the list to the relevant comments (i.e. those related to that article. It's a very clean solution and keeps using

[symfony-users] Re: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Ca-Phun Ung
Hey Daniel, Thanks that worked! Not as elegant but I agree it's more appropriate in the Form class. For the benefit of others this is what I ended adding to my Form class: $this-widgetSchema['author_id'] = new sfWidgetFormPropelChoice(array( 'model' = 'Author', 'add_empty' = 'Default

[symfony-users] Re: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Richtermeister
Hey Ca-Phun, glad to hear all is good. I also thought I lost some elegance in the process, but only until I started to look at the generator.yml as a quickdirty helper, and the form as the refinement tool. Now life is much nicer ;) Also, just to add some more info to your solution, the

[symfony-users] Re: about session handling

2009-08-12 Thread Eno
On Wed, 12 Aug 2009, asim nizam wrote: thank you very much!! Amazing what you can find in the documentation. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

[symfony-users] Re: Best way to learn Symfony

2009-08-12 Thread Eno
On Wed, 12 Aug 2009, Donald Tyler wrote: A good book on design patterns is s great place to start. I'd recommend Head First Object Analysis and Design or the Gang of Four's original book. Most of these books are written for Java or C, but the concepts apply to PHP, and definitely symfony.

[symfony-users] Re: Best way to learn Symfony

2009-08-12 Thread James Cauwelier
The 'Gang of Four' book seems as overkill to me. First play with symfony and then learn something about design patterns. First try to use the patterns as documented in the symfony manual. Be productive first and try to understand the reasoning behind it once you have a basic understanding of

[symfony-users] Re: Best way to learn Symfony

2009-08-12 Thread Tom Haskins-Vaughan
Excellent advice, James! +1 If we all had to RTFM before we started coding... Bruno Reis wrote: ++ to James advice I´ve only learned design patterns on demand. I´ve read all the book and did not understand anything before, but when I need a pattern and find it there, then I learn it.

[symfony-users] Re: Form validation

2009-08-12 Thread Richtermeister
Hey Stefano, I would write a custom post-validator. A post validator is given the entire data array, so from there you can just loop over the array and see if the values keep increasing.. Hope this helps, Daniel On Aug 12, 8:57 am, Stefano stef...@sancese.com wrote: Hi, I'm developing my

[symfony-users] Re: Can't store text fields with è character(s)?

2009-08-12 Thread Ettore
Forgot to say a thing: i get the same problem with every similar character like è, à, ò, ù, but not with , % (the only ones i tried). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] [Propel] Can't store text fields with è character(s)?

2009-08-12 Thread Ettore
Hi all, i'm using a form to allow users insert a comment on a post. When they insert characters like à, è, the text is not inserted in the field into the database. [ PHP Code ] . $reqObj-setNotes( $this-form-getValue('notes') ); $reqObj-save(); .. [ Query reported by the debug

[symfony-users] Symfony/Doctrine memory leak?

2009-08-12 Thread Jonathon McKitrick
Here's a snippet of code: while ($obj = mssql_fetch_object($result)) { $group = Doctrine::getTable('Group')-findOneByCompany_id($obj- company_code); . . . } This loop, with about 3500 cycles, is using 1.5 gigs of memory. The first db connection is obviously mssql, running on Linux

[symfony-users] Re: Can't store text fields with è character(s)?

2009-08-12 Thread Ettore
Problem solved. I forgot to check if Navicat is enough smart (as i supposed to be) to handle utf8 fields correctly. Field is inserted and retrieved correctly through Symfony and Propel. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] new translation task

2009-08-12 Thread Kevin Bond
Hi guys, I just released a new plugin ( http://www.symfony-project.org/plugins/zsI18nExtractTranslatePlugin). It adds a task which extends the functionality of i18n:extract to allow new target strings to be automatically translated into their respected languages. This is done with Google's

[symfony-users] Re: pkMedia apikey

2009-08-12 Thread Sid Bachtiar
Hi Tom, It's a very good CMS plugin with a bit of initial setting up and learning curve :) Where can I see bug fix list since that tarball release? Any major bug? The plugin is so far working fine. I'd rather manually fix critical bugs and monitor the issue tracking than always getting latest

[symfony-users] Integrate A CMS Forum with sfGuardPlugin

2009-08-12 Thread greg
Hello i need to integrate a forum like PHPBB or FLUXBB to my symfony 1.2 website Doctrine. But i need to know the best way (and easy if possible) to integrate it. I readed this topic http://forum.symfony-project.org/index.php/t/7156/ Someone could advice myself? I prefer punBB cause it is more

[symfony-users] Extract the time life of a component, is it possible??

2009-08-12 Thread Nei Rauni Santos
I used cache on a component and I'd like to show at bottom of this component the message updated at $hour or next update at $hour both is ok to me.. Is possible to get the partial cache and extract this information of it?? If it's possible, can you send me this snippets Thank you -- Nei

[symfony-users] functional test and session

2009-08-12 Thread Chtipepere
Hi everybody, Does anyone knows how to test variable in the session in a functional test ? Thanks in advance, Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,