function __myd($domain, $msg, $return = false) {
$str = __d($domain, $msg, true);
$var = array('translation' => $str, 'md5'=> md5($str));
$count = count(Configure::read('var')) + 1;
Configure::write("speaklike.$count", $var);
return __d($domain, $msg, $return);
}
and:
function getVarD(){
return Configure::read('var');
}
--
View this message in context: http://cakephp.1045679.n5.nabble.com/How-can-I-override-the-method-d-tp4918678p4936936.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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment