[symfony-users] Re: EntityChoiceField Issue with QueryBuilder params

2011-02-23 Thread Nathan Mudie
You need to use the use option for the closure as the variable your trying to use isn't in the correct scope. See example 3 on this page: http://php.net/manual/en/functions.anonymous.php Your code will look like this: 'query_builder' = function($repository) use ($state_id) { return

Re: [symfony-users] Re: How to get raw data in a partial???

2010-02-08 Thread Nathan
Just use $value-getRawValue() --- nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs On Mon, Feb 8, 2010 at 8:49 PM, Darren884 darren...@gmail.com wrote: It seems I was able to pass the second argument ESC_RAW, but this butchers my ability to read credentials either way. Is

Re: [symfony-users] How to disable sfWebDebug in dev environment?

2010-01-14 Thread Nathan
In your apps/APPLICATION/config/settings.yml change your dev: .settings: web_debug: true to false. that's all. Best regards, Nathan -- nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs On Thu, Jan 14, 2010 at 9:17 AM, Sid Bachtiar sid.bacht...@gmail.comwrote: Hi

Re: [symfony-users] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread Nathan
First of all read the upgrade guide for 1.1 to 1.2 because there were some serious changes in the form and widget system. After this read the 1.2 to 1.3 upgrade guide. Upgrading from 1.3 to 1.4 is not necessary (both are the same code, except in 1.4 all the depreciated stuff is gone). Nathan

Re: [symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Nathan
$form-setWidget('pc_id', new sfWidgetFormInputHidden()); On Fri, Jan 8, 2010 at 2:45 PM, Stéphane stephane.er...@gmail.com wrote: Oops, there are hidden fields too, look this way. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre

Re: [symfony-users] symfony 1.4 installation

2010-01-07 Thread Nathan
sudo svn co http://svn.symfony-project.com/branches/1.3/ sudo ln -s /usr/local/share/symfony/1.3/data/bin/symfony /usr/local/bin/sf1.3 that's all. --- nathan @ http://twitter.com/nathan_gs nathan.gshttp://nathan.gs/?utm_source=mailing-listutm_medium=emailutm_campaign=blog On Thu, Jan 7, 2010 at 12

Re: [symfony-users] Re: sf_user in url

2010-01-07 Thread Nathan
? If users share the same set of credentials no additional overhead is needed. best regards, Nathan --- nathan @ http://twitter.com/nathan_gs nathan.gs http://nathan.gs/?utm_source=mailing-listutm_medium=emailutm_campaign=blog On Thu, Jan 7, 2010 at 7:56 PM, Kevin kevinb...@gmail.com wrote

Re: [symfony-users] Any good reason to execute symfony with sudo?

2010-01-07 Thread Nathan
I would only give write permissions by the user running php (most of the times www-data) to cache, log and the upload directory. All else should be read only and preferable have another user, like the deployer (nathan in my case). Also it's considered very bad practice to give a file/directory

Re: [symfony-users] File size validation?

2010-01-07 Thread Nathan
This is actually a php limit. Not a Symfony one. There's not much you can do besides increasing your php max_post_size value. (but I wouldn't do this). Nathan -- nathan @ http://twitter.com/nathan_gs nathan.gs http://nathan.gs/?utm_source=mailing-listutm_medium=emailutm_campaign=blog On Thu

Re: [symfony-users] default value in form extracted from session

2010-01-07 Thread Nathan
in the session, I wouldn't. I would just after creating a pc do a redirect to the Eth form with the pc id as a request parameter (get/post). Nathan On Fri, Jan 8, 2010 at 1:02 AM, Mikael mikael.kermorg...@gmail.com wrote: Hi, My data model has a Pc table with a 1-n relation with an Eth table

Re: [symfony-users] symfony 1.2 + mssql 2005 + propel + wamp

2010-01-04 Thread Nathan Bijnens
better tested than the doctrine mssql dbal. For how to actually start: Just like any other Symfony project. Except in databases.yml put in a suitable dsn. (google for pdo dsn mssql if you really can't find anything). Best regards, Nathan On Mon, Jan 4, 2010 at 2:11 PM, Vikos make.webp

Re: [symfony-users] How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?

2010-01-04 Thread Nathan Bijnens
-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. Best regards, Nathan -- You received

Re: [symfony-users] How to disable some components like swiftmailer (sf1.4), how could I save more cpu resource?

2010-01-04 Thread Nathan Bijnens
On Mon, Jan 4, 2010 at 5:02 PM, Eno symb...@gmail.com wrote: On Mon, 4 Jan 2010, chrisyue wrote: When I finished the jobeet tutorial, I found the application load some files which shouldn't be loaded as I never used them at all (swifter mailer for example, 11 files of it were loaded each

Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Nathan Bijnens
This is a very bad idea...! Never run a program with more permissions than it needs to have. You could maybe create a bash wrapper that calls sudo symfony? And put this in the right path? Nathan On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu gang.al...@gmail.comwrote: A stupid ideea

Re: [symfony-users] Re: Netbeans with symfony support: tasks without sudo

2009-12-28 Thread Nathan Bijnens
Hello Javi, Rename your symfony script in the project dir to symfony.real paste this to a new file called symfony #!/bin/bash sudo symfony.real $@ that's about it. Warning this is not tested! This will not work in windows! regards, Nathan On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio

[symfony-users] Re: SETUP SERVER

2009-05-22 Thread Nathan Rzepecki
Is symfony actually installed on this new server or is your project frozen? - Nathan Rzepecki http://www.lionslair.net.au Frank He wrote: I also suspect the new server configuration does not support symfony's minimum requirement, such as PDO, php 5 or whatever. On Fri

[symfony-users] Re: jQuery + prototype problem

2009-03-27 Thread Nathan Rzepecki
You can not use JQuery and Prototype at the same time. All the library's use one component of JS and they can not both use it at the same time. Unfortunately you can only use one at a time - Nathan Rzepecki http://www.lionslair.net.au Sid Bachtiar wrote: Great tip! I

[symfony-users] Re: schema.sql is empty. Anybody can a help???

2009-03-16 Thread Nathan Rzepecki
I use propel not doctrine - Nathan Rzepecki http://www.lionslair.net.au Schorsch wrote: Hey, do you have an non empty schema.yml file? Doctrine stores it's schema.yml in the config/doctrine folder. If the doctrine folder doesn't exist, you have to create manually

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread Nathan Rzepecki
It is this line here that does it. $entry-setServerId($this-getObject()-getId()); within public function saveEmbeddedForms($con = null, $forms = null) Because by the time that is called the main object is then saved. - Nathan Rzepecki http://www.lionslair.net.au

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread Nathan Rzepecki
No problem. - Nathan Rzepecki http://www.lionslair.net.au maestro wrote: Oppps, this is embarrassing. I was missing the autoIncrement: true, in my message schema.yml. Nathan thanx for your time.. On Mar 16, 10:53 pm, maestro mustafa...@gmail.com wrote

[symfony-users] Re: Please help on exclude template

2008-06-08 Thread Nathan Hawks
On Jun 7, 12:53 pm, Richtermeister [EMAIL PROTECTED] wrote: You can create a view.yml file in the appropriate module config directory, and in there make the following declaration: youractionSuccess: has_layout: off replacing youraction by whatever you named your action. That should

[symfony-users] Re: Symfony doesn't like DateTime

2008-01-11 Thread Nathan Hawks
Aha! I ran into this this week too, now I know why. Thanks, all. --~--~-~--~~~---~--~~ 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