What would be the effect of compact() in a situation like that? I
admit it's not a function I really have in my arsenal but I read the
php manual page and when I output the result of compact($my_array) I
got nothing. When I had a few variables assigned I got an array built
from my variables eg:
$x = 'x'; $y = 'y';
print_r(compact($x,$y));
got me something like
Array
(
[x] => x
[y] => y
)
Adding an array to the list in compact() doesn't change the result.
Am I missing something?
Don
On May 12, 4:39 am, LipeDjow <[email protected]> wrote:
> @dreamingmind
> I think compact() is ok, it should work as well.
>
> @tesla
> I don't know if it's the problem, but try setting another name to the
> variable instead of $data.
>
> hth,
> LipeDjow
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php