Re: Error when use $html->image and __()

2007-10-15 Thread william

Yeah! I had removed Zend optimizer and restart apache, It works.
Thanks.

On Oct 15, 4:10 pm, Claudia <[EMAIL PROTECTED]> wrote:
> Have a look 
> here:http://groups.google.com/group/cake-php/browse_thread/thread/eda86379...
>
> In short: the translation function __ makes use of debug_backtrace
> which sometimes causes Apache to die (especially if you have Zend
> optimizer running).
> Either use __d as translation function or first create the translation
> string and then use the result in the html->image call.
>
> Claudia
>
> On Oct 15, 9:41 am, william <[EMAIL PROTECTED]> wrote:
>
> > Hello all,
> > When I run these code in cake\libs\view\templates\layouts\default.ctp
> > image('cake.power.png',
> > array('alt'=>__("test",true), 'border'=>"0"));?>
>
> > It made apache died.
>
> > Why I get this fatal error? What is going on?
>
> > Thank you for your help and time!
>
> > William


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Error when use $html->image and __()

2007-10-15 Thread Claudia

Have a look here:
http://groups.google.com/group/cake-php/browse_thread/thread/eda86379e16f165e/cea227d8a8602c7c

In short: the translation function __ makes use of debug_backtrace
which sometimes causes Apache to die (especially if you have Zend
optimizer running).
Either use __d as translation function or first create the translation
string and then use the result in the html->image call.

Claudia

On Oct 15, 9:41 am, william <[EMAIL PROTECTED]> wrote:
> Hello all,
> When I run these code in cake\libs\view\templates\layouts\default.ctp
> image('cake.power.png',
> array('alt'=>__("test",true), 'border'=>"0"));?>
>
> It made apache died.
>
> Why I get this fatal error? What is going on?
>
> Thank you for your help and time!
>
> William


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Error when use $html->image and __()

2007-10-15 Thread william

Hello all,
When I run these code in cake\libs\view\templates\layouts\default.ctp
image('cake.power.png',
array('alt'=>__("test",true), 'border'=>"0"));?>

It made apache died.

Why I get this fatal error? What is going on?


Thank you for your help and time!

William


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---