[symfony-users] Re: sf_sandbox

2009-05-06 Thread FÁSI Gábor
Did you do a `php symfony cc` after installing DbFinder? On Wed, May 6, 2009 at 14:11, maithili.k shalu0...@gmail.com wrote: I am getting the error when i run http://localhost/sf_sandbox/web Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The plugin DbFinderPlugin

[symfony-users] Re: Good Propel HOWTO with examples?

2009-05-06 Thread FÁSI Gábor
You should check out the propel criteria builder[1], where you can enter the sql and it generates the criteria for you. [1] http://propel.jondh.me.uk/criteria/analyse On Wed, May 6, 2009 at 19:57, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: I'm wondering if anyone's familiar with a

[symfony-users] Re: Help with sfGuard and LDAP external method

2009-05-06 Thread FÁSI Gábor
Compare: check_password_callable: [LDAP, checkLDAPPassword] class LDAPclass extends sfGuardSecurityUser { in the config you say LDAP, but later you call it LDAPclass, this is why you get the following error: Warning: call_user_func_array() [function.call-user-func-array]: First argument

[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: propel dublicate table

2009-04-28 Thread FÁSI Gábor
Show us your schema.yml, the error is there. On Tue, Apr 28, 2009 at 12:53, Waseem whme...@gmail.com wrote: Dear All, i am facing following problem. please help. D:\Apache2\htdocs\atssymfony propel:build-model schema    converting D:/Apache2/htdocs/a...ig/generated-schema.yml to XML

[symfony-users] Re: user-getFlash() when the flash contain html tag

2009-04-22 Thread FÁSI Gábor
The problem is caused by the automatic escaping of any data passed from the controller to the view (including the flash), that you have enabled while generating the application. One way to work around it is to disable escaping entirely, but then you'll have to do this manually, or to get the data

[symfony-users] Re: Using ajax for input text update

2009-04-17 Thread FÁSI Gábor
You can use a normal template to be rendered after an ajax call, just set hasLayout to false either in view.yml, or in your action. I think symfony can do this automatically when the IsXMLHTTPRequest http header is set (automatically done by prototype and jquery). On Thu, Apr 16, 2009 at 16:09,

[symfony-users] Re: Schema Problem

2009-04-17 Thread FÁSI Gábor
The cli often has a different php.ini, maybe you don't have pdo enabled there. Run a phpinfo() from the command line and it will tell you which php.ini it uses. On Fri, Apr 17, 2009 at 12:40, Waseem whme...@gmail.com wrote: i have installed symfony 1.2.5 on windows xp. and using mysql 5 and

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread FÁSI Gábor
/plugins/sfErrorHandlerPlugin On 16 Apr 2009, at 09:58, FÁSI Gábor wrote: I suggest uploading the _dev front controller and commenting the die() command, but make sure you delete is as soon as you've finished. On Thu, Apr 16, 2009 at 10:52, Roland Cruse cruses...@gmail.com wrote: Hi symfony

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread FÁSI Gábor
I suggest uploading the _dev front controller and commenting the die() command, but make sure you delete is as soon as you've finished. On Thu, Apr 16, 2009 at 10:52, Roland Cruse cruses...@gmail.com wrote: Hi symfony coders I making a rest application which does not show php syntax errors.

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread FÁSI Gábor
/controllers and none of them seem to call die at least grep did not think so. I do not understand, could you give me some more details. Thanks On Thu, Apr 16, 2009 at 10:58 AM, FÁSI Gábor maerl...@gmail.com wrote: I suggest uploading the _dev front controller and commenting the die

[symfony-users] Re: csrf protection on and link_to() + method: put, post, delete - what is going on ?

2009-04-15 Thread FÁSI Gábor
It's not like you 'should' or 'must', it's just a convention to use delete for deletion, put for creation or update. Check this: http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_example:_the_World_Wide_Web On Wed, Apr 15, 2009 at 14:12, dziobacz aaabbbcccda...@gmail.com

[symfony-users] Re: Issue with Swift

2009-04-15 Thread FÁSI Gábor
Put an `error_reporting(E_ALL);` before the code, and you'll get the error message on the output, not just the error log. On Wed, Apr 15, 2009 at 17:37, Adrien Mogenet adrien.moge...@gmail.com wrote: I performed a test using  `class_exists()` and Swift class seems to be correctly loaded...

[symfony-users] Re: Tricky date format requirements...

2009-04-15 Thread FÁSI Gábor
One of the basic symfony principles is don't reinvent the wheel, do it's highly unlikely they do something that can be done with a single php function. On Wed, Apr 15, 2009 at 19:29, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: There's no way to do this within the Symfony framework's

[symfony-users] Re: the simpliest search on the word doesn't work

2009-04-13 Thread FÁSI Gábor
I believe you need a validator, even if you don't need the validation. Check sfValidatorPass: http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfvalidatorpass On Mon, Apr 13, 2009 at 09:48, dziobacz aaabbbcccda...@gmail.com wrote: I have made my own search - I don't want

[symfony-users] Re: how to insert cyrillic words?

2009-04-12 Thread FÁSI Gábor
If you meant if utf8 supported cyrillic, the answer is a definite yes. 2009/4/12 Alexandru-Emil Lupu gang.al...@gmail.com: HI! you might want to try UTF-8 encoding ? dunno for sure if it supports cyrilic characters.. but it might be a chance alecs 2009/4/12 belbek zbit...@gmail.com

[symfony-users] Re: how to give a parameter to a form ?

2009-04-11 Thread FÁSI Gábor
The second parameter of the default constructor[1] is an array called $options. You can use that to pass config settings to the form, and get them via sfForm's getOption()[2]. [1] http://www.symfony-project.org/api/1_2/sfForm#method___construct [2]

[symfony-users] Re: how to give a parameter to a form ?

2009-04-11 Thread FÁSI Gábor
' = 'Michael')); in Form: class ChangeForm extends sfForm {  public function configure()  {  $a = $this-getOption('parameter1'); .  is it ok ? On 11 Kwi, 15:53, FÁSI Gábor maerl...@gmail.com wrote: The second parameter of the default constructor[1

[symfony-users] Re: how to give a parameter to a form ?

2009-04-11 Thread FÁSI Gábor
and sid for help :) On 11 Kwi, 17:23, FÁSI Gábor maerl...@gmail.com wrote: I don't know what $object is, I tend to use array() there (the default value for that parameter), but besides this your code seems fine. On Sat, Apr 11, 2009 at 17:00, dziobacz aaabbbcccda...@gmail.com wrote: so

[symfony-users] Re: Dynamic security.yml

2009-04-09 Thread FÁSI Gábor
I don't think you can make this .yml file dynamic, but you can create dynamic credential checks with something like sfBasicSecurityFilter. You can check its source here: http://trac.symfony-project.org/browser/branches/1.2/lib/filter/sfBasicSecurityFilter.class.php Focus on the

[symfony-users] Re: Dynamic security.yml

2009-04-09 Thread FÁSI Gábor
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Ok, I will look into it. Thank you! More suggestions are welcome :) On 9 apr, 13:54, FÁSI Gábor maerl...@gmail.com wrote: I don't think you can make this .yml file dynamic, but you can create dynamic credential checks with something like

[symfony-users] Re: 404 http status

2009-04-09 Thread FÁSI Gábor
My customized 404 page does send a 404 http code, your example makes me think the default one doesn't. Add a custom error page (settings.yml, error_404_module and error_404_action) and try again. On Thu, Apr 9, 2009 at 15:47, Pierre Bastoul pie...@o10c.fr wrote: would you like to try :

[symfony-users] Re: Mime_types Mp3 upload file

2009-04-08 Thread FÁSI Gábor
mime_types should be an array. On Wed, Apr 8, 2009 at 10:26, saturn1...@hotmail.com saturn1...@hotmail.com wrote: Hello in the case of an upload of mp3 file, i write this validator : $this-validatorSchema['son'] = new sfValidatorFile(array( 'required' = true, 'path' =

[symfony-users] Re: sfDoctrineRouteCollection and non integer primary keys

2009-04-07 Thread FÁSI Gábor
Try .../staff/edit/someid On Tue, Apr 7, 2009 at 15:46, Nacho Bergmann nachoc...@gmail.com wrote: I add some info: This are my routes: textos: class: sfDoctrineRouteCollection options: model:Textos module: textos prefix_path:

[symfony-users] Re: How to use cli task command in linux cron?

2009-04-07 Thread FÁSI Gábor
cd /path/to/symfony; php symfony clearActiveUsers On Wed, Apr 8, 2009 at 04:49, xhe hexuf...@gmail.com wrote: Don't know if you have ever met this issue. I want to run sym1.2 task from cron cli environemnt, in windows, I will use php symfony clearActiveUsers But in linux cron, how can we

[symfony-users] Re: Format of plain text email

2009-04-03 Thread FÁSI Gábor
ArenaFor: Ice Hockey, Shinny, Level Chttp://goaliegigs.local/frontend_dev.php/goalies/apply-for-booking/1 It looks like I have to put in two line breaks for each line break I want to see?! On Apr 2, 1:13 pm, FÁSI Gábor maerl...@gmail.com wrote: Do you get the linebreaks in the source

[symfony-users] Re: Column type VARCHAR BINARY

2009-04-03 Thread FÁSI Gábor
You can use sqlType in your schema, but you may lose portability this way. On Fri, Apr 3, 2009 at 11:31, andreas inputrequi...@googlemail.com wrote: Hi all, unfortunately, MySQL VARCHAR columns are not case-sensitive by default. To make them case-sensitive, columns need to be defined like

[symfony-users] Re: are there anyway to reduce the memory size

2009-04-03 Thread FÁSI Gábor
This problem has nothing to do with max_execution_time, and by the way: that's a php config value, not an apache one. On Fri, Apr 3, 2009 at 05:48, sherwin corpuz sherwincor...@gmail.com wrote: Your Apache execution is only 30 second in default, make it large, max_execution time of your

[symfony-users] Re: Format of plain text email

2009-04-02 Thread FÁSI Gábor
Do you get the linebreaks in the source? You can check it with the 'show original' menuitem under the downarrow. On Thu, Apr 2, 2009 at 18:46, Steve the Canuck steve.san...@gmail.com wrote: Hi, I am sending plain text emails from my app using Swift Mailer.  The email bodies are all stored

[symfony-users] Re: Jobeet: Doctrine: Day 3

2009-03-31 Thread FÁSI Gábor
You linked screenshots for two different screens: one for the job list, one for an edit job page. Just checked jobeet day 03, seems like the url is incorrect, it should be like /job/edit/1 or something like that. On Tue, Mar 31, 2009 at 22:27, Emily Berk em...@armadillosoft.com wrote: I've

[symfony-users] Re: Upload file name

2009-03-30 Thread Fási Gábor
It's pretty useful when you have two files with the same name uploaded. You can get the original filename via sfValidatedFile-getOriginalName() An instance of sfValidatedFile is returned by sfValidatorFile by default. On Mon, Mar 30, 2009 at 11:51, HAUSa

[symfony-users] Re: Upload file name

2009-03-30 Thread FÁSI Gábor
While saving the form data in your action, you can get the sfValidatedFile instance by calling $form[file]-getValue(), and that has the getOriginalName() method I was referring to. On Mon, Mar 30, 2009 at 12:46, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Fási, thank you too! But I

[symfony-users] Re: Why should I write queries like this?

2009-03-26 Thread Fási Gábor
On Thu, Mar 26, 2009 at 09:31, Benjamin agtle...@gmail.com wrote: Lets say I change a field called name to first_name.  Then I rebuild the models.  fooPeer::NAME will no longer exist.  Do I then manually define that constant in a peer class? Nope, you can use the phpName attribute for

[symfony-users] Re: mysql extension not loaded

2009-03-26 Thread Fási Gábor
Well, the problem is: your mysql extension is not loaded. :P Check your php.ini, make sure there's no semicolon before the pdo_mysql extension. Note: the cli and the cgi versions often have a different php.ini. On Thu, Mar 26, 2009 at 11:01, sachin jain jainsachi...@gmail.com wrote:

[symfony-users] Re: Special characters in SF

2009-03-26 Thread Fási Gábor
, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I changed it, but still got the same problem... On 25 mrt, 14:15, Fási Gábor maerl...@gmail.com wrote: Check the encoding of your file, if I view it with iso-8859-1 instead of utf8, it's fine. On Wed, Mar 25, 2009 at 10:56, HAUSa

[symfony-users] Re: Atom Template

2009-03-26 Thread Fási Gábor
You have the short open tags php option enabled, so ? already starts the php interpreter, and you get a syntax error. On Thu, Mar 26, 2009 at 14:48, Nei Rauni Santos nra...@gmail.com wrote: Hi, I did the day 15 of Jobeet today, and I got an error when it render the atom template: Parse

[symfony-users] Re: Special characters in SF

2009-03-25 Thread Fási Gábor
Check the encoding of your file, if I view it with iso-8859-1 instead of utf8, it's fine. On Wed, Mar 25, 2009 at 10:56, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: See here: http://www.starterswijzerutrecht.nl/zoeken/jkals It is in dutch :P but in the main part you see two

[symfony-users] Re: constructor in symfony

2009-03-24 Thread Fási Gábor
You can use __construct(), just like anywhere else in php. Remember to call parent::__construct(). On Tue, Mar 24, 2009 at 16:11, dziobacz aaabbbcccda...@gmail.com wrote: How can I make constructor in symfony ? I have tried: class see_userActions extends sfActions {  private $id;  public

[symfony-users] Re: Download files - broken pdf

2009-03-24 Thread Fási Gábor
What's 'broken'? You mean you can't open it with adobe reader/other pdf viewer? If you check the contents of the file, does it look like a valid pdf? On Tue, Mar 24, 2009 at 12:51, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi, I use this code for downloading files. If I download image, it

[symfony-users] Re: constructor in symfony

2009-03-24 Thread Fási Gábor
{   private $ident;   public function __construct()   {         parent::__construct();         $ident=2;   } . } What can be the reason ? On 24 Mar, 16:41, Fási Gábor maerl...@gmail.com wrote: You can use __construct(), just like anywhere else in php

[symfony-users] Re: symfony textmate bundle

2009-03-24 Thread Fási Gábor
strg?  is that command? Ctrl --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to

[symfony-users] Re: Form validation in symfony1.2

2009-03-23 Thread Fási Gábor
You can use the validators described in the Forms book, appendix B http://www.symfony-project.org/book/forms/1_2/en/B-Validators they can be used w/o the form framework. On Mon, Mar 23, 2009 at 07:10, Prashanth pmahank...@gmail.com wrote: Hi All, iam working with symfony 1.2. i have created

[symfony-users] Re: how do I update 23 records with one query? That is, all the players on a particular team?

2009-03-21 Thread Fási Gábor
What you need is BasePeer::doUpdate($selectCriteria, $updateCriteria, $con) See http://snippets.symfony-project.org/snippet/50 On Sat, Mar 21, 2009 at 09:16, Lawrence Krubner lkrub...@geocities.com wrote: When I look in Chapter 8 of the book, I realize that Criteria seems to be mostly about

Re: Re : [symfony-users] sfGuardExtraPlugin

2009-03-21 Thread Fási Gábor
Did you clear your cache after installing the plugin? On Sat, Mar 21, 2009 at 00:57, ckemmler ckemm...@gmail.com wrote: This might be more interesting: I just tried to trigger the register action by going to: http://localhost/web/frontend_dev.php/sfGuardRegister/register This got me:

[symfony-users] Re: i18n for auto generated forms in admin generator

2009-03-19 Thread Fási Gábor
I'm not sure about the messages, but the labels can be translated, the form framework does this automatically. Unfortunately, the i18:extract task doesn't check the generated forms for strings to be translated, but if you include them in your xliff file, it'll echo the translated version. On

[symfony-users] Re: translation data table

2009-03-18 Thread Fási Gábor
Check this, taken from jobeet part 19: # config/schema.yml jobeet_category: _attributes: { isI18N: true, i18nTable: jobeet_category_i18n } id: ~ jobeet_category_i18n: id: { type: integer, required: true, primaryKey: true, foreignTable: jobeet_category,

[symfony-users] Re: connection to oracle9i

2009-03-17 Thread Fási Gábor
What's the error message you get? Did you modify all your php.inis? The cli and the cgi versions often use a different one. On Tue, Mar 17, 2009 at 00:14, Ghizlane Zinbi ghizlane.zi...@gmail.com wrote: Hi, I failed to connect my database oracle9i to symfony1.0 I m developping in windows xp. i

[symfony-users] Re: has anyone met this problem before - backend admin?

2009-03-17 Thread Fási Gábor
It seems like the site is trying to use the user's culture info, but it doesn't have any. Add one language, and try again. On Tue, Mar 17, 2009 at 02:57, xhe hexuf...@gmail.com wrote: I just followed the jobeet to create a backend admin for my site, but I met this error when trying to visit.