[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-07 Thread Massimiliano Arione
Tom, I fixed the layout issue. Thanks for reporting it. Massimiliano On 5 Gen, 19:38, Tom Ptacnik to...@tomor.cz wrote: I wanted to add a link to a printscreen to imageshack (with your datepicker in Opera), but when I add a link into this reply window it show me an error that I can't post

Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread Christopher Schnell
There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have

Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread Gareth McCumskey
Personally I use Eclipse and struggle to do without the features this IDE gives me. Never used Netbeans but may give it a go, because I like the idea of having symfony support builtin - Original Message - From: Christopher Schnell ty...@mda.ch To: symfony-users@googlegroups.com Sent:

[symfony-users] File size validation?

2010-01-07 Thread Mark Smith
Hi, I am trying to implement file size validation for an upload field on a form. For security / performance the php.ini post_max_size config setting is set to 8 mb. Now I want to limit the file size upload to about 1 mb. I am using the built in sfValidatorFile: $this-setValidator(file, new

Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread Christopher Schnell
I use Eclipse, too, but would like to use Netbeans. I can't because since updateing to Fedora 12, it freezes radomly and crashes my entire system. And I can't use another Distribution because Fedora is the only, I know of that supports my 2 monitors. Netbeans has better code-completion with

[symfony-users] Custom 500 error page

2010-01-07 Thread Mark Smith
Hi, Is it possible to define a custom 500 error page for a specific action? Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email

Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread Alexandru-Emil Lupu
ohh this netbeans is cool ... i might go for it as well Alecs On Thu, Jan 7, 2010 at 12:55 PM, Christopher Schnell ty...@mda.ch wrote: I use Eclipse, too, but would like to use Netbeans. I can't because since updateing to Fedora 12, it freezes radomly and crashes my entire system. And I can't

[symfony-users] Re: Problems getting test:coverage to work

2010-01-07 Thread nil_von_9wo
You need to know if your apache is thread safe or not (if under windows I guess it is). I don't know if my Apache is thread safe, but I know that it works with my PHP, so it probably is because my PHP won't work with the NTS version of this extension (I tried and received an error that the

[symfony-users] sfWidgetFormDoctrineChoice

2010-01-07 Thread l3ia-etu
hello, i would like to change the widget: //$this-widgetSchema['type'] = new sfWidgetFormChoice(array ('choices' = Doctrine::getTable('JobeetJob')-getTypes(),'expanded' = true)); to have a combo box instead of radio buttons, so i use: $this-widgetSchema['type'] = new

Re: [symfony-users] sfWidgetFormDoctrineChoice

2010-01-07 Thread Daniel Lohse
Don't change the widget at all, it's not needed! Just change 'expanded' = true to 'expanded' = false and you have your combo box. Cheers, Daniel On Jan 7, 2010, at 1:09 PM, l3ia-etu wrote: hello, i would like to change the widget: // $this-widgetSchema['type'] = new

[symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread pghoratiu
I converted to Netbeans 6.8 from the latest Eclipse version, personally I had problems with Eclipse unreliable code completion and high resource usage (both cpu and memory). Unfortunately not everything is perfect with Netbeans, I experienced also the high CPU usage lockup (i suspect it has

[symfony-users] Re: Get/Set - what is more 'correct' in symfony

2010-01-07 Thread pete
Thanks Daniel for that tip: that's clear...I gather the __toString method is one symfony coders spend a bit of time overriding. Pete -- 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] Re: Custom 500 error page

2010-01-07 Thread chrisyue
yes you can custom 500 in apps/APPNAME/config/error/error.html.php Mark Smith wrote: Hi, Is it possible to define a custom 500 error page for a specific action? Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

[symfony-users] Helpers and Widgets??

2010-01-07 Thread wueb
Hello, Maybe someone could help me with this problem i'm having. Whats the difference between the form Helpers and the Widgets? Don't they do the same thing? If not, when should we use helpers instead of the widgets? Can someone please explain me better this doubt i have? PS: Another thing i

Re: [symfony-users] Helpers and Widgets??

2010-01-07 Thread Daniel Lohse
Form helper are deprecated and are remainder of symfony 1.0. Form widgets are essentially all your database columns as object-oriented equivalents contained in your form classes. Cheers, Daniel On Jan 7, 2010, at 1:50 PM, wueb wrote: Hello, Maybe someone could help me with this problem

[symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread wueb
So should i just use for example the widget-render instead of a input_tag('column'), something like that? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from

[symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread wueb
So should i just use for example the widget-render instead of a input_tag('column') on the template, something like that? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To

Re: [symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread Daniel Lohse
Kind of. Just read the docs, there's plenty on how to do forms in symfony with the new form framework. echo $form['column']; is sufficient in your templates. Did you just start using symfony? Or did you start with symfony 1.0? Then I'd highly suggest going through Jobeet chapter after

[symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread Florian
yes, it is exactly like you say : ?php echo $form['filed_name'] ? or ?php echo $form['filed_name']-renderLabel() ? ?php echo $form['filed_name']-renderError() ? ?php echo $form['filed_name']-render() ? You should read this : http://www.symfony-project.org/forms/1_2/en/ On 7 jan, 14:01, wueb

[symfony-users] Re: Custom 500 error page

2010-01-07 Thread Mark Smith
Yes but that error message will be used for every module and every action. I need to override this and use a specific 500 error page for a specific action. On Jan 7, 12:42 pm, chrisyue blizzch...@gmail.com wrote: yes you can custom 500 in apps/APPNAME/config/error/error.html.php Mark Smith

Re: [symfony-users] Re: Where is the configuration in Symfony 1.3/1.4 for sf_upload_dir?

2010-01-07 Thread Eno
On Wed, 6 Jan 2010, Dennis wrote: I never saw that! Thanks. Where would you execute that so that it is done for all symonfy actions in all applications? http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_the_basic_file_structure -- -- You

Re: [symfony-users] redirect method covert to amp;

2010-01-07 Thread Eno
On Wed, 6 Jan 2010, chrisyue wrote: in an action method if I use $this-redirect('a_route_name', array( 'a' = '1', 'b' = '2', 'c' = '3')); it will redirect to a url like /the_route?a=1amp;b=2amp;c=3, is it a bug? or I just use it wrong? Route names usually have a @ in front:

Re: [symfony-users] Re: Custom 500 error page

2010-01-07 Thread Eno
On Thu, 7 Jan 2010, Mark Smith wrote: Yes but that error message will be used for every module and every action. I need to override this and use a specific 500 error page for a specific action. Doesn't really make sense since the error could occur before symfony has loaded all the classes

[symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread wueb
When i try override the constructor (don't know what is the correct, if public function construct() or public function CrmEmpresasForm (), but i try both) it send me an error: Fatal error: Call to a member function getStylesheets() on a non- object in

[symfony-users] Re: symfony 1.4 installation

2010-01-07 Thread PachinSV
I suggest you install symfony embeded in the project, that way each project will be version independant. On 6 ene, 04:41, karansoni kanu8...@gmail.com wrote: i am using Ubuntu Linux 9.10 and i have installed symfony1.2.9 on it through pear . is there any phenomenon through which i can install

Re: [symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread Daniel Lohse
Hey there! class ...Form extends Base...Form { protected $user_id; public function __construct($user_id, $object = null, $options = array(), $CSRFSecret = null) { $this-user_id = $user_id; parent::__construct(object, $options,

[symfony-users] Problem with test:functional

2010-01-07 Thread nil_von_9wo
I'm a newbie still working through the Jobeet tutorial. When I try to execute either symfony.bat test:functional frontend jobActions or symfony.bat test:functional frontend categoryActions I get the following feedback: Warning: call_user_func_array() expects parameter 1 to be a valid

[symfony-users] Re: Custom 500 error page

2010-01-07 Thread Mark Smith
On Jan 7, 2:05 pm, Eno symb...@gmail.com wrote: On Thu, 7 Jan 2010, Mark Smith wrote: Yes but that error message will be used for every module and every action. I need to override this and use a specific 500 error page for a specific action. Doesn't really make sense since the error

[symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread wueb
Thanks Daniel. ;) I know i should look better to OOP in PHP5, but unfortunally i don't have a lot of time to do it :( -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To

[symfony-users] 1.2 vs 1.3 : web debug indicates much slower configuration

2010-01-07 Thread DigitalBase
For testing purposes i upgraded a project (that's already running on 1.2) to 1.3. I immediately noticed that the application was much slower was using more resources. Symfony 1.2.10 timings : http://www.flickr.com/photos/digitalbase/4253786085/ Symfony 1.3.1 timings :

[symfony-users] sf_user in url

2010-01-07 Thread Kevin
I am building an intranet system and would like to have the user's username at the beginning of the url: example.com/username/foo/bar. I was able to accomplish this by creating a custom routing class but I am wondering if there is a better way, with filters or something... I don't want to have to

Re: [symfony-users] get id from new row

2010-01-07 Thread Gabo
HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName()); $author-setDocumentDescription($this-getDocumentDescription()); $author-save(); $sfUser =

[symfony-users] Re: 1.2 vs 1.3 : web debug indicates much slower configuration

2010-01-07 Thread xplo
Hi, i noticed the same thing with a project upgraded from 1.2 = 1.3 = 1.4 However a project created directly from 1.4 is ~ 3 time faster for the configuration. I guess it s from the yml that have been cleaned up from 1.2 to 1.3 ? Anyway i stoped caring since these configuration times only occur

[symfony-users] Re: 1.2 vs 1.3 : web debug indicates much slower configuration

2010-01-07 Thread DigitalBase
I made sure that ./symfony project:upgrade1.3 (or whatever that task is called) converted all my yml files into new correct syntax (not using no/yes but true/false). Development of pages with over 4seconds load time (due to configuration parsing) is unacceptable, so i will keep looking for a

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-07 Thread g0d br
Hi, I still having this problem. Im using sfWidgetFormInputFileEditable for a backend form and when i edit the record with the image i have to choose the image file again otherwise i get required error for the file. the problem is that i don wanna change the file but every time i have to choose

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

2010-01-07 Thread Javier Garcia
Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to

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

2010-01-07 Thread Alexandru-Emil Lupu
not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.comwrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- You received this message because you are subscribed to

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

2010-01-07 Thread Jacob Coby
I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal generator related stuff, no. On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote: not quite. Chown the sf_root folder

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

2010-01-07 Thread Alexandru-Emil Lupu
you can put yourself in www-data group ... :) On Thu, Jan 7, 2010 at 10:47 PM, Jacob Coby jc...@portallabs.com wrote: I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal

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

2010-01-07 Thread Stéphane
Apache and Php needs write right to cache dir, this is why it is chmod'ed 777 using project:permissions task. You probably want apache and php read rights to read .php and other stuff, and need them write rights for cache and other dynamic-related folders (upload, etc). Before Printing, Think

[symfony-users] Creation of a module without model

2010-01-07 Thread Gianluca Sartori
I need to create a mailing list app. I have all the addresses in a text file. Can I create a module that's not linked with a model class? Many thanks, G Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web)

Re: [symfony-users] Creation of a module without model

2010-01-07 Thread Stéphane
symfony generate:app mailing_list symfony generate:module mailing_list sender Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 10:46 PM, Gianluca Sartori g.sart...@gmail.comwrote:

Re: [symfony-users] symfony 1.4 installation

2010-01-07 Thread Nathan
It's actually quite easy if you have svn. I always install Symfony to /usr/local/share/symfony/VERSION. And I create symlinks in the /usr/local/bin to the symfony script with a meaningful name like sf1.3, sf1.4. It's as easy as: sudo mkdir /usr/local/share/symfony cd /usr/local/share/symfony

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

2010-01-07 Thread Nathan
Actually you do know the username. Just do a $this-getUser()-getUsername() in your catch you could use this as key. You could put the generated menu at the beginning of the login in the session. It still feels a bit dirty. Isn't there a way to catch based on unique combination of credentials? If

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] Any good reason to execute symfony with sudo?

2010-01-07 Thread Lee Bolding
What Nathan said. Unless your Symfony app is using backtick, passthru, exec or similar operators to execute shell commands (that MUST be run by root [is there any?]) then you shouldn't run Symfony as root or via sudo. It's simply bad practice, and introduces many more attack vectors to

[symfony-users] Problem sending mail

2010-01-07 Thread Gianluca Sartori
I'm using symphony verison 1.4 send strategy: none MailTransport: Mail Here is my code: /frontend/modules/newsletter/actions class newsletterActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-getMailer()-composeAndSend('g.sart...@gmail.com', '

Re: [symfony-users] Problem sending mail

2010-01-07 Thread Stéphane
You need to configure your http://fr.php.net/manual/en/mail.configuration.php#ini.smtp Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 11:58 PM, Gianluca Sartori

Re: [symfony-users] Problem sending mail

2010-01-07 Thread Alexandru-Emil Lupu
change your delivery_strategy: none to spool or realtime in order to make it send emails ... here is my config mailer: class: sfMailer param: logging: %SF_LOGGING_ENABLED% charset: %SF_CHARSET% delivery_strategy: spool spool_class:

Re: [symfony-users] Problem sending mail

2010-01-07 Thread Gianluca Sartori
Even with mail strategy: none? G Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 On Fri, Jan 8, 2010 at 12:04 AM, Stéphane stephane.er...@gmail.com

Fwd: [symfony-users] get id from new row

2010-01-07 Thread Gabo
HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName()); $author-setDocumentDescription($this-getDocumentDescription()); $author-save(); $sfUser =

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

2010-01-07 Thread Mikael
Hi, My data model has a Pc table with a 1-n relation with an Eth table. I'd like to configure the backend forms in order to : 1 - Show 'New Pc form' with button 'save and add interface' 2 - When pc is saved (processForm), Pcs new id is put in session 3 - Then, the form for creating a new

Re: [symfony-users] get id from new row

2010-01-07 Thread Stéphane
$q-set('id_document', $author-getId()); - does it work ? if you get error message, please copy/past them. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 1:02 AM, Gabo

Re: [symfony-users] get id from new row

2010-01-07 Thread Lee Bolding
On 8 Jan 2010, at 00:02, Gabo wrote: HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName());

Re: [symfony-users] Problem sending mail

2010-01-07 Thread Stéphane
There are some informations about this here : http://www.symfony-project.org/advent_calendar/5/en You are using SmtpTransport which use php mail function, which use smtp php ini. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre

Re: [symfony-users] get id from new row

2010-01-07 Thread Lee Bolding
On 8 Jan 2010, at 00:19, Lee Bolding wrote: On 8 Jan 2010, at 00:02, Gabo wrote: $q = new document_trace(); $q-set('id_document', $author); //NOT WORK, ERROR Should be $q-set('id_document', $author-getId()); I want to

[symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread Crafty_Shadow
I have been using NuSphere's PhpED for the past six months. It is not free (though a trail version is available), however it is better than Eclipse/Netbeans by leaps and bounds. If feels much more coherent, there is no excessive overfunctionality. Writing macros for symfony is a piece of cake,

Re: [symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread Gábor Fási
I've been using it under linux for a while, with wine - everything but the debugger works fine. On Fri, Jan 8, 2010 at 01:41, Crafty_Shadow vankat...@gmail.com wrote: I have been using NuSphere's PhpED for the past six months. It is not free (though a trail version is available), however it is

Re: [symfony-users] get id from new row

2010-01-07 Thread Gabo
ERROR 500 | Internal Server Error | Doctrine_Validator_Exception Validation failed in class document_trace 1 field had validation error: * 1 validator failed on id_document (notnull) is a new record ($ this- getId ()), so it is empty. 2010/1/7 Stéphane stephane.er...@gmail.com

[symfony-users] Symfony mail

2010-01-07 Thread Gabo
Buena Noche Juan Pablo Quciera preguntarte en symfony 1.2 con plugin PHPmailer como envias tu un mail?? Un ejemplo en un save? o en una funcion?? gracias. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email

Re: [symfony-users] redirect method covert to amp;

2010-01-07 Thread chrisyue
yes I've already know that, but I've also found that when I use a route name directly (put a '@' before the route name), sf will always throw error the route not found if the route has parameters. I tried it in sf 1.4. Eno wrote: On Wed, 6 Jan 2010, chrisyue wrote: in an action method if I

[symfony-users] Re: redirect method covert to amp;

2010-01-07 Thread ken
you need to explicitly call ini_set('arg_separator.output', ''); before ProjectConfigutation On Jan 8, 10:43 am, chrisyue blizzch...@gmail.com wrote: yes I've already know that, but I've also found that when I use a route name directly (put a '@' before the route name),  sf will always throw

Re: [symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread Eno
On Thu, 7 Jan 2010, wueb wrote: I know i should look better to OOP in PHP5, but unfortunally i don't have a lot of time to do it :( In fact, you probably should read the symfony docs too. -- -- You received this message because you are subscribed to the Google Groups symfony users

Re: [symfony-users] get id from new row

2010-01-07 Thread Alexandru-Emil Lupu
Pastebin your form. Obviously you do it wrong... I don't have an example atm. Alecs sent via htc magic On Jan 8, 2010 2:55 AM, Gabo gabopo...@gmail.com wrote: ERROR 500 | Internal Server Error | Doctrine_Validator_Exception Validation failed in class document_trace 1 field had validation

Re: [symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread Alexandru-Emil Lupu
You don't time to learn?! Sorry for asking ... what it does the difference between you and concurency. I could bet that you lost few minutes trying that construct problem. Few minutes a day would help you out. You are not doing this for me or comunity... but yourself. sent via htc magic On Jan

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

2010-01-07 Thread Nathan
Wouldn't it be a lot better if you pass the pc_id to the new form like this (in the controller): $eth = new Eth() $eth-pc_id = sfUser::getAttribute('pc'); $ethForm = new EthForm($eth); There should be a loose coupling between classes. This way it's a lot cleaner. As for the pc id storing in