Ok so I'm not quite sure whats going on and normally I would just dig
around until I found an answer on some site somewhere, but my brain is
tired so I think I'll just try asking. Feel free not to answer :P

Anyway to the problem,

I'm trying to render an element within a view with this code:
  <?php echo $this->renderElement('post_comments', $this-
>requestAction('/comments/getComments/'  . $post['Post']['id'])); ?>

And my comments controller action looks like this:
           function getComments($postId)
          {
                  $this->set('comments', $this->Comment-
>findByPostId($postId));
          }

My element then makes use of the $comments variable.

The warning messages I get are as follows:
  Warning: array_merge_recursive() [function.array-merge-recursive]:
Argument #1 is not an array in    /home/brady/www/bblog/cake/libs/view/
view.php on line 376

Warning: array_merge() [function.array-merge]: Argument #2 is not an
array in /home/brady/www/bblog/cake/libs/view/view.php on line 377

Warning: extract() [function.extract]: First argument should be an
array in /home/brady/www/bblog/cake/libs/view/view.php on line 596

Thanks!

p.s. I just started to play with cakePHP yesterday.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to