I wrote a simple Truncate View Helper if you need truncations in the
view script:
http://www.zfhelpers.com/doku.php?id=repository:truncate
It doesn't do words but it will add an HTML ellipsis character and
truncate output to the desired length.
On Oct 28, 2008, at 4:39 PM, Bradley Holt
There is a filter in Zym called Zym_Filter_SentenceLength that makes sure a
string/sentence is not longer than $maxLength characters. Use it or modify
it however you like:
http://code.google.com/p/zym/source/browse/trunk/library/Zym/Filter/SentenceLength.php
robinsk
On Wed, Oct 29, 2008 at 5:10
especially when scooting from project to project then back again.
Does any one else out there share my pain? Have any work arounds / ideas?
-Original Message-
From: Bradley Holt [mailto:[EMAIL PROTECTED]
Sent: 28 October 2008 16:30
To: Zend Framework General
Subject: [fw-general] Truncate String
To: Zend Framework General
Subject: [fw-general] Truncate String
Is there a simple way in ZF to truncate a string? I searched and didn't
find any talk of a ZF specific component for this. I also looked at the
list of standard filter classes and didn't see anything there either. I
-- Bradley Holt [EMAIL PROTECTED] wrote
(on Tuesday, 28 October 2008, 12:29 PM -0400):
Is there a simple way in ZF to truncate a string? I searched and didn't find
any talk of a ZF specific component for this. I also looked at the list of
standard filter classes and didn't see anything there
Matthew,
On Tue, Oct 28, 2008 at 1:12 PM, Matthew Weier O'Phinney
[EMAIL PROTECTED]wrote:
-- Bradley Holt [EMAIL PROTECTED] wrote
(on Tuesday, 28 October 2008, 12:29 PM -0400):
Is there a simple way in ZF to truncate a string? I searched and didn't
find
any talk of a ZF specific component
-- Bradley Holt [EMAIL PROTECTED] wrote
(on Tuesday, 28 October 2008, 02:28 PM -0400):
On Tue, Oct 28, 2008 at 1:12 PM, Matthew Weier O'Phinney [EMAIL PROTECTED]
wrote:
-- Bradley Holt [EMAIL PROTECTED] wrote
(on Tuesday, 28 October 2008, 12:29 PM -0400):
Is there a simple way
Matthew,
On Tue, Oct 28, 2008 at 3:27 PM, Matthew Weier O'Phinney
[EMAIL PROTECTED]wrote:
-- Bradley Holt [EMAIL PROTECTED] wrote
(on Tuesday, 28 October 2008, 02:28 PM -0400):
On Tue, Oct 28, 2008 at 1:12 PM, Matthew Weier O'Phinney
[EMAIL PROTECTED]
wrote:
-- Bradley Holt