$temp_var = __('String', true);
$temp_var is not a function just a returned value, if a i calling many
function __() with different value it can't be implemented like thisi created javascript helper that intensively using string manipulation so curly string syntax is making easier and make a cleaner code. so now i'm facing a problem when combining curly syntax and __() function that was a global function. On Thu, Feb 11, 2010 at 3:18 PM, Miles J <[email protected]> wrote: > Not everything has to be OOP. Im still confused at what your trying to > achieve. > > On Feb 10, 11:39 pm, Martin Westin <[email protected]> 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 <[email protected]> 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- Mukhamad Ikhsan Y!id:ikhsan_only http://www.diodachi.com 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 [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
