Addition:

You can, however, do this:

$textarea_settings = sfConfig::get("app_textarea");
$cols = $textarea_settings["cols"];

Hope that helps,
Daniel


On May 1, 10:44 am, fredlab <frederic.beauf...@free.fr> wrote:
> Hey,
>
> I am developing a task that gets data from app.yml of my general
> config directory (the one under my project root directory).
>
> My problem is that if my app.yml file is :
>
> app:
>   textarea:
>     col: 40
>
> then when if do :
>
> if (sfconfig:get('app_textarea_col')
> {
>   .... do this
>
> }
>
> then it does not do what is under the brackets.
>
> When I change my file to :
>
> app:
>    textarea_col: 40
>
> then the condition works and it does what is under brackets.
>
> Does anyone have an idea how I can correct that. The second way of
> creating my app.yml file is not what I want has it makes my file
> difficult to read.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to