Hi David,
I tried out several variations of
$uninflectedPlural = array('.*ive');
But I either get error messages or nothing happens
Nothing happens: '.*ive'
Errors with:
'/.*ive/i' gives preg_match() [function.preg-match]: Unknown modifier '.'
'/.*ive/gives preg_match()
Works for me. In /app/config/inflections.php:
$uninflectedPlural = array('.*ive');
Then:
debug(Inflector::pluralize('Uebsmwinklusive'));
Uebsmwinklusive
Do not enter RegEx slashes '/.*/', that screws it up.
BTW, looking at your original problem again, you might rather want to
use the
David
C. Zentgraf
Gesendet: Donnerstag, 30. Oktober 2008 10:10
An: cake-php@googlegroups.com
Betreff: Re: AW: Turn off inflections
Works for me. In /app/config/inflections.php:
$uninflectedPlural = array('.*ive');
Then:
debug(Inflector::pluralize('Uebsmwinklusive'));
Uebsmwinklusive
Do
@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von
Liebermann, Anja Carolin
Gesendet: Donnerstag, 30. Oktober 2008 13:55
An: cake-php@googlegroups.com
Betreff: AW: AW: Turn off inflections
Hi David,
The test works for me, too.
However in my application I still get Uebsmwinklusife and of course all