Not everything has to be OOP. Im still confused at what your trying to
achieve.

On Feb 10, 11:39 pm, Martin Westin <martin.westin...@gmail.com> wrote:
> I can not imagine why you would use a localized variable variable.
> Anyway...
>
> $temp_var = __('String',true);
> echo "{${$temp_var}}";
>
> On Feb 11, 8:14 am, Mukhamad Ikhsan <ikhsan.o...@gmail.com> wrote:
>
> > global function like __() is break the OOP concept, in some cases i need the
> > function bind to an object
>
> > case:
> > echo "{${$someobject->__('String')}}" // This will work
> > echo "{${__('String')}} // this will not work because curly syntax after ${
> > is looking the variable object not a function, even in php manual this
> > should work but i have tried and it's not worked
>
> > but because __() is a global function, i don't know how to bind that
> > function into a variable/object
>
> > --
> > Mukhamad Ikhsan
> > Y!id:ikhsan_only

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to