I need to put all msgs who use the function  __d() in array to use in the
botton of the page.

So i create my own function:

function __myd($domain, $msg, $return = false) { 
         $var[] =__d($domain, $msg, true); 
        return __d($domain, $msg, $return = false); 
} 

and:

function getVarD(){
         return $var;
}

In the view page have some:
echo __myd(...);

and in the botton of the page I put:
print_r(getVarD());  // but this return empty... and I need to return all
msgs who I called using the funciton __myd().

How can I do this?

Thanks

--
View this message in context: 
http://cakephp.1045679.n5.nabble.com/How-can-I-override-the-method-d-tp4918678p4930552.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to