Hi,
I am using this <?=$this->Text->truncate($data['object']['TEXT'], 150,
array('ending' => '...', 'exact' => false))?>
to return text passages and I want to cut them after a word.
Somethings it works fine, somethimes not:
Example endings:
The common courtyard leads to the main entrance of th...
The entrance area leads into the living an...
The apartment is on the first floor an...
and has a living-dining area on two levels, as well...
Strange or?
Whats wrong with my use of it?
--
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