[symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
How can you dump a variable in symphony? I usually use print_r or var_dump when I need to check the values/structure of a variable at some point during the execution, but it seems that symphony objects have some kind of circular references, because trying to use these functions produces the error:

Re: [symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
@Michal You can dump variable with var_dump(). The error appeared because you tried to dump a really large piece of data. Thank you, but that's not it. The error message /says/ that, but it can also be caused by a cyclic data structure. (A has a reference to B, and B has a reference to A).

Re: [symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
Wow, the feature list looks amazing... I'll take a look at it. Thanks!. On Mon, Jun 7, 2010 at 11:58 AM, Thomas Rabaix tho...@rabaix.net wrote: install xebug, var_dump is smarter On Mon, Jun 7, 2010 at 5:43 PM, Pietrino Atzeni pietrino.atz...@gmail.com wrote: Hi, if you need to dump an

[symfony-users] Selecting prod/dev connections from the command line.

2010-06-07 Thread Luis Alberto Zarrabeitia
How do I make tools like ./symfony guard:promote use the right DB connection configuration? I have a production and development DBs. When I'm accessing through the web server, symfony choses the right DB to use ('dev' in my dev environment, and prod in my production environment). However, when I'm

Re: [symfony-users] Selecting prod/dev connections from the command line.

2010-06-07 Thread Luis Alberto Zarrabeitia
On Mon, Jun 7, 2010 at 12:47 PM, Eno symb...@gmail.com wrote: On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote: How do I make tools like ./symfony guard:promote use the right DB connection configuration? Im not familiar with that CLI task, but does it take any additional parameters

Re: [symfony-users] Invitation to connect on LinkedIn

2010-03-25 Thread Luis Alberto Zarrabeitia
Gah, I'm so sorry. I didn't notice that linkedIn was sending this to all my contacts. I wonder how many more mailing lists this was sent to. I'm very disappointed... and very sorry. Luis. -- On Wed, Mar 24, 2010 at 11:02 PM, Luis Zarrabeitia zarrabei...@gmail.comwrote: LinkedIn Luis

[symfony-users] AjaxUpload, FormWidget and csrf token.

2010-03-24 Thread Luis Alberto Zarrabeitia
Hello. I'm trying to create a custom widget [1]. This widget is actually a mini-form with his own submit button, which posts to its own controller method. I configure it in the form::configure as: 'app_icon' = new WidgetFormInputAjaxUpload(array('post_url' =

[symfony-users] Re: AjaxUpload, FormWidget and csrf token.

2010-03-24 Thread Luis Alberto Zarrabeitia
(), ... ) That did the trick.. Luis. On Wed, Mar 24, 2010 at 12:52 PM, Luis Alberto Zarrabeitia zarrabei...@gmail.com wrote: Hello. I'm trying to create a custom widget [1]. This widget is actually a mini-form with his own submit button, which posts to its own controller method. I

Re: [symfony-users] Linking to the upload path from a template.

2010-03-15 Thread Luis Alberto Zarrabeitia
Thank you both. I hope that'll solve my problem. Luis. On Fri, Mar 12, 2010 at 1:48 PM, Gábor Fási maerl...@gmail.com wrote: public_path(), http://www.symfony-project.org/api/1_4/UrlHelper#method_public_path On Fri, Mar 12, 2010 at 16:58, Luis Alberto Zarrabeitia zarrabei...@gmail.com

Re: [symfony-users] Linking to the upload path from a template.

2010-03-12 Thread Luis Alberto Zarrabeitia
On Fri, Mar 12, 2010 at 2:00 AM, Gareth McCumskey gmccums...@gmail.com wrote: In your template: ?php echo image_tag($sf_config-get('sf_upload_dir').'/myImages/'.$image_name) ? The $sf_config variable is a copy of the sfConfig object used in the actions. Thank you, but I'm afraid that