I need to customize the function in basics.php
function __($singular, $return = false) {
if (!$singular) {
return;
}
if (!class_exists('I18n')) {
App::import('Core', 'i18n');
}
if ($return === false) {
echo I18n::translate($singular);
} else {
return I18n::translate($singular);
}
}
So instead of modifying cake files..I want to override it in my custom
functions..But where do i place my override function??
On Apr 29, 12:27 pm, Miles J <[email protected]> wrote:
> You can not overwrite it unless you edit the core files, which
> shouldnt be done.
>
> Why do you need to change it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---