Thursday, September 3, 2009

Change default labeling in views

Hello,

What does the double underscore represent in the following code from
the head of the index.ctp file for the users view?
<div class="users index">
<h2><?php __('Users');?></h2>

I can see the results in the rendered page, but the reason I ask is
that I would like to change this output without mucking up something
else unintentionally. I have setup my db with some tables using
abbreviated names, i.e., 'pops' rather than 'populations' for the
simple convenience of saving 7 keystrokes per instance in long lines
of code, or 'clons' rather than 'clones' which is a reserved word in
php.

TIA, McS

P.S. I've always chuckled at the ironic length of the word
'abbreviation', or 'shortening' for that matter.

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: