Oh sorry. i didnt copy the entire code.. But I m not getting any parse error.. 
just that these variables are not working..Here is the full file.

<?php
Configure::write(array( 'Email' => array(               'Subject' => array(     
                'RegActivationMessage' => 'Activate your CueRoom Account'       
        ),              'contactAddress' => '[email protected]',             
'defaultFrom' => '[email protected]',             'defaultLayout' => 'default',   
        'defaultSendAs' => 'text',              'defaultDelivery' => 'smtp',    
        'defaultSmtpOptions' => array(                  'port'=>'25',           
        'timeout'=>'30',                        'host' => 'localhost',          
        'username'=>'xyz',                      'password'=>'xyz'               
)       )       ));

?>

Thanks,Bharani

> Date: Thu, 4 Jun 2009 01:50:56 -0700
> Subject: Re: CONFIG question
> From: [email protected]
> To: [email protected]
> 
> 
> How about:
> 
> Configure::write(array(
>  'Email' => array(
>   'Subject' => array(
>    'RegActivationMessage' => 'Activate your CueRoom Account'
>   ),
>   'contactAddress' => '[email protected]',
>   'defaultFrom' => '[email protected]',
>   'defaultLayout' => 'default',
>   'defaultSendAs' => 'text'
> )));
> 
> 
> And your config.php does not look like that, right?
> You do have the php tags there?
> 
> 
> On Jun 4, 10:27 am, lakers fan <[email protected]> wrote:
>> Hello,
>>
>>       I have some variables defined in config.php under /cake/app/config. I 
>> have also included require_once('config.php'); in bootstrap.php. But the 
>> variables that I defined is not working in my user controller.. The 
>> following returns an empty string..
>>
>> Configure::read('Email.defaultSendAs').
>>
>> my config.php looks like this
>>
>> Configure::write(array(
>>  'Email' => array(
>>   'Subject' => array(
>>    'RegActivationMessage' => 'Activate your CueRoom Account'
>>   ),
>>   'contactAddress' => [email protected]',
>>   'defaultFrom' => '[email protected]',
>>   'defaultLayout' => 'default',
>>   'defaultSendAs' => 'text'
>>
>> )
>>
>> Thanks,
>>
>> Bharani
>>
>> _________________________________________________________________
>> Insert movie times and more without leaving 
>> HotmailĀ®.http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM...
> > 

_________________________________________________________________
Insert movie times and more without leaving HotmailĀ®. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to