Have you looked at Set::extract?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 9 Nov 2011, at 10:59, Ernesto wrote:
Hi all
i have an array containing a series of set compatible paths
array(
[0] = Article.code,
[1] = {n}.Piece.code,
[2] = Note.{n}.text
)
hi jeremy. thanks for the response.
Set::extract extracts data from an arary.
i wan to extract Model and field from the Path itself
--
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
On Nov 9, 1:43 pm, Ernesto e.fanz...@gmail.com wrote:
hi jeremy. thanks for the response.
Set::extract extracts data from an arary.
i wan to extract Model and field from the Path itself
you mean extract a string and another string from a string? sounds
like you need: preg_match
AD
--