I am new to cakephp and i have go through those tutorials.
May be I am too stubborn to the old php coding way so I face a problem
when I am making my own Function.
Say, I have my a "multiexplode" function that recursively explode a
string given an array of delimiators,
sth like:
class UtilComponent extends Object {
function multiexplode ($delimiters,$string){
..
$ary[$key] = multiexplode($delimiters, $val); // recursive
part
..
}
..
}
and I and call
$this->Util->multiexplode(...)
to trigger the function.
ps: Indeed I am not sure where to put this function at. So I ended up
wrapping this function with a component. (don't know if it is
appropriate)
And then it gives me
Call to undefined function multiexplode() ...
error.
So how do I call the function within the same class?
Can I make my own function and call it from another function within
the same component/ controller?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en