Re: extracting Model and Field from a Set compatible path

2011-11-09 Thread Jeremy Burns | Class Outfit
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
 )
 
 is there any built-in function that extracts the Model and the field those 
 paths are referencing?
 
 -- 
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php

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


Re: extracting Model and Field from a Set compatible path

2011-11-09 Thread Ernesto
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 others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: extracting Model and Field from a Set compatible path

2011-11-09 Thread AD7six


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

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