[symfony-users] Re: Textarea value

2009-09-06 Thread Hellmich Dennis

I think you should call the render function and overgive the value as  
the second parameter. E.g.
  $w = new sfWidgetFormTextarea();
  echo $w->render('the_name', 'the_value_of_the_textarea');

The second parameter in the constructor you used just adds stupidly  
any html attributes you specify. So if you have an element called  
'value' in your array it adds a value-attribute.

Am 01.09.2009 um 13:09 schrieb Mark Smith:

>
> Hi,
>
> I am contructing a text area widget inside the configure method of my
> form like this:
>
> $this->setWidget("Notes", new sfWidgetFormTextarea(array(),array
> ('value'=>$this->entity->Notes)));
>
>
> In the template when I try to print out the widget like this:
>
> 
>
> The resulting html is:
>
> 
>
> For a textarea element the value goes between the opening and closing
> tags, not as an attribute like on input elements. The result for the
> user is the text area appears blank.
>
> Is this a bug in symfony? (I am currently on 1.2.0) Or is there
> another way I should be printing out this form field?
>
> 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-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: creating drop down in index template

2009-09-02 Thread Hellmich Dennis

Is this a question?


Am 02.09.2009 um 08:26 schrieb sunny:

>
> Creating a Drop-Down List Based on a Foreign Key Column in index
> template .
>
> >


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: global functions: where do I put it?

2009-09-01 Thread Hellmich Dennis

You could also try, to include this as a helper.


Am 01.09.2009 um 08:13 schrieb jarthel:

>
> I have an "email address" format checker that I found in the net. It's
> straight PHP with a function inside.
>
> I'm a bit unsure on where to put it. I thought of putting it somewhere
> in "project-here"/lib/vendor. Is it as simple as using require_once to
> include the files?
>
> Thank you
>
> >


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: save all values in lower case

2009-08-27 Thread Hellmich Dennis

You could do some data-preprocessing in the action or BETTER in the  
model. E.g. you could override the setXXX functions or the save method

See also
http://de.php.net/manual/en/function.strtolower.php



Am 27.08.2009 um 03:18 schrieb Germana Oliveira:

>
> I'm wondering how i can save all the values in the data base in lower
> case ??? can symfony do that for me??
>
> 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-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Web Debug toolbar disappeared

2009-08-23 Thread Hellmich Dennis
The usual debugging workflow would be, to deactivate all jQuery/Ajax  
plugins and start with minimal working example to identify the broken  
code.

Because the WebDebug Toolbar is usually at the end of the html-code,  
you could look, if the - and the -tag are closed  
regularly. Otherwise you would have an error in your php which doesn't  
throw a visible error message...


Cheers
Dennis

Am 23.08.2009 um 11:15 schrieb Tommaso D'Argenio:

> Hi,
>
> yes of course I'm calling frontend_dev.php, works fine though if I  
> call backend_dev.php
>
> It must be after I've enabled Ajax or installed few JQUERY  
> plugin ... but don't know where to look at
> to enable it again. :(
>
> thanks
> cheers
>
> 2009/8/22 Hellmich Dennis 
> Stupid question:
>   are you calling frontend_dev.php and not frontend.php?
>
> Best,
> Dennis
>
> Am 22.08.2009 um 16:01 schrieb Tommaso D'Argenio:
>
>> Hi Alexandre,
>>
>> I had the same thought but couldn't fine any of those commands in  
>> any of the files, have scanned the whole
>> directory for it.
>>
>> the settings.yml is this:
>> prod:
>>   .settings:
>> no_script_name: on
>> logging_enabled:off
>> web_debug:  on
>>
>> dev:
>>   .settings:
>> error_reporting:
>> web_debug:  on
>> cache:  off
>> no_script_name: off
>> etag:   off
>> compressed: off
>>
>> test:
>>   .settings:
>> error_reporting:> E_NOTICE)."" ?>
>> cache:  off
>> web_debug:  off
>> no_script_name: off
>> etag:   off
>> all:
>>   .actions:
>> error_404_module:   main   # To be called when a 404 error  
>> is raised
>> error_404_action:   error404  # Or when the requested URL  
>> doesn't match any route
>>
>> login_module:   sfGuardAuth   # To be called when a non- 
>> authenticated user
>> login_action:   signin # Tries to access a secure  
>> page
>>
>> secure_module:  sfGuardAuth   # To be called when a  
>> user doesn't have
>> secure_action:  secure# The credentials required  
>> for an action
>>   .settings:
>>  compressed: on
>> cache:  on
>>  etag:   off
>>  rich_text_js_dir:   js/tiny_mce
>>  enabled_modules:[default, sfGuardAuth]
>>
>> I can't see any error in it ...
>>
>> any thoughts/idea is much appreciated.
>>
>> cheers
>> T.
>>
>>
>> 2009/8/22 Alexandre SALOME 
>> Check in your actions and templates for something like  
>> sfConfig::set('sf_web_debug', false);
>>
>> Grep "sf_web_debug" over your project.
>>
>> And double check your settings.yml. Copy it here if you can't find  
>> sfConfig::set('sf_web_debug in any file of project.
>>
>>
>>
>> 2009/8/22 Tommaso D'Argenio 
>>
>> Hi All,
>>
>> I've a problem, after a while my debug toolbar disappeared from the  
>> frontend .. while it is still working fine in the backend. I  
>> suspect this is because
>> I'm making massive use of Ajax in the frontend which somehow have  
>> completely wiped out the toolbar .. I can't even find the code if I  
>> look at the
>> source HTML generated...
>>
>> the web_debug option in settings.yml is turned on for the dev  
>> environment and the same is for the backend. But it works only in  
>> the latest and not
>> in the first.
>>
>> How I can solve this?
>>
>> thanks
>> cheers
>> T.
>>
>>
>>
>>
>>
>> -- 
>> Alexandre Salomé -- alexandre.sal...@gmail.com
>>
>>
>>
>>
>>
>>
>
>
>
>
>
> >


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



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

2009-08-22 Thread Hellmich Dennis
You could read the modification time in the file information of the  
cached file.
See http://de2.php.net/manual/en/function.stat.php

Best
Dennis


Am 13.08.2009 um 00:35 schrieb 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 Rauni Santos
> nra...@gmail.com
> +55 41 85020985
>
> >


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Web Debug toolbar disappeared

2009-08-22 Thread Hellmich Dennis
Stupid question:
   are you calling frontend_dev.php and not frontend.php?

Best,
Dennis

Am 22.08.2009 um 16:01 schrieb Tommaso D'Argenio:

> Hi Alexandre,
>
> I had the same thought but couldn't fine any of those commands in  
> any of the files, have scanned the whole
> directory for it.
>
> the settings.yml is this:
> prod:
>   .settings:
> no_script_name: on
> logging_enabled:off
> web_debug:  on
>
> dev:
>   .settings:
> error_reporting:
> web_debug:  on
> cache:  off
> no_script_name: off
> etag:   off
> compressed: off
>
> test:
>   .settings:
> error_reporting: E_NOTICE)."" ?>
> cache:  off
> web_debug:  off
> no_script_name: off
> etag:   off
> all:
>   .actions:
> error_404_module:   main   # To be called when a 404 error  
> is raised
> error_404_action:   error404  # Or when the requested URL  
> doesn't match any route
>
> login_module:   sfGuardAuth   # To be called when a non- 
> authenticated user
> login_action:   signin # Tries to access a secure page
>
> secure_module:  sfGuardAuth   # To be called when a user  
> doesn't have
> secure_action:  secure# The credentials required for  
> an action
>   .settings:
>  compressed: on
> cache:  on
>  etag:   off
>  rich_text_js_dir:   js/tiny_mce
>  enabled_modules:[default, sfGuardAuth]
>
> I can't see any error in it ...
>
> any thoughts/idea is much appreciated.
>
> cheers
> T.
>
>
> 2009/8/22 Alexandre SALOME 
> Check in your actions and templates for something like  
> sfConfig::set('sf_web_debug', false);
>
> Grep "sf_web_debug" over your project.
>
> And double check your settings.yml. Copy it here if you can't find  
> sfConfig::set('sf_web_debug in any file of project.
>
>
>
> 2009/8/22 Tommaso D'Argenio 
>
> Hi All,
>
> I've a problem, after a while my debug toolbar disappeared from the  
> frontend .. while it is still working fine in the backend. I suspect  
> this is because
> I'm making massive use of Ajax in the frontend which somehow have  
> completely wiped out the toolbar .. I can't even find the code if I  
> look at the
> source HTML generated...
>
> the web_debug option in settings.yml is turned on for the dev  
> environment and the same is for the backend. But it works only in  
> the latest and not
> in the first.
>
> How I can solve this?
>
> thanks
> cheers
> T.
>
>
>
>
>
> -- 
> Alexandre Salomé -- alexandre.sal...@gmail.com
>
>
>
>
> >


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---