Re: CONFIG question

2009-06-04 Thread John Andersen

I have tried exactly as you wrote, it works!
If you haven't done it, turn on debug, and in the controllers action,
write debug(Configure::read('Email')); and see what result you are
getting!
   John

On Jun 4, 1:10 pm, lakers fan  wrote:
> 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.
>
>  Configure::write(array( 'Email' => array(            'Subject' => array(      
>             'RegActivationMessage' => 'Activate your CueRoom Account'         
>    ),              'contactAddress' => '@zyz.net',              
> 'defaultFrom' => 'supp...@syx.com',             '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: martin.westin...@gmail.com
> > To: cake-php@googlegroups.com
>
> > How about:
>
> > Configure::write(array(
> >  'Email' => array(
> >   'Subject' => array(
> >    'RegActivationMessage' => 'Activate your CueRoom Account'
> >   ),
> >   'contactAddress' => 'x...@xyz.net',
> >   'defaultFrom' => 'supp...@xyz.com',
> >   '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  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' => x...@xyz.net',
> >>   'defaultFrom' => 'supp...@xyz.com',
> >>   '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...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: CONFIG question

2009-06-04 Thread lakers fan

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.

 array(   'Subject' => array( 
'RegActivationMessage' => 'Activate your CueRoom Account'   
),  'contactAddress' => 'x...@zyz.net', 
'defaultFrom' => 'supp...@syx.com', '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: martin.westin...@gmail.com
> To: cake-php@googlegroups.com
> 
> 
> How about:
> 
> Configure::write(array(
>  'Email' => array(
>   'Subject' => array(
>'RegActivationMessage' => 'Activate your CueRoom Account'
>   ),
>   'contactAddress' => 'x...@xyz.net',
>   'defaultFrom' => 'supp...@xyz.com',
>   '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  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' => x...@xyz.net',
>>   'defaultFrom' => 'supp...@xyz.com',
>>   '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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CONFIG question

2009-06-04 Thread Martin Westin

How about:

Configure::write(array(
 'Email' => array(
  'Subject' => array(
   'RegActivationMessage' => 'Activate your CueRoom Account'
  ),
  'contactAddress' => 'x...@xyz.net',
  'defaultFrom' => 'supp...@xyz.com',
  '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  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' => x...@xyz.net',
>   'defaultFrom' => 'supp...@xyz.com',
>   '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...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---