AD7six:

Thanks for pointing out the debug.

Here is what is coming up:

Array
(
    [0] => Array
        (
            [Post] => Array
                (
                    [title] => This is the first Post
                    [tag] => architect, costs
                    [created] => 2009-02-05 10:58:11
                )

            [0] => Array
                (
                    [body] => here
                )

            [User] => Array
                (
                    [username] =>
                )

        )

    [1] => Array
        (
            [Post] => Array
                (
                    [title] => This is the second post
                    [tag] => subcontractor
                    [created] => 2009-02-04 10:58:38
                )

            [0] => Array
                (
                    [body] => this
                )

            [User] => Array
                (
                    [username] =>
                )

        )

)


Why would it come up as 0 and not under Post?

gkc


On Feb 5, 12:31 pm, AD7six <andydawso...@gmail.com> wrote:
> On Feb 5, 7:24 pm, gkc <gerardkco...@gmail.com> wrote:
>
> > Siegfried:
>
> > I was using 1.2.0.7962 but I just downloaded the latest version.
>
> > I dont think its a problem with the query itself because I dont get
> > any SQL error messages.  I think it is how its being reference in the
> > view.  How would you reference the return p10 in your view?  I keep
> > getting Undefined index:  body when using $post['Post']['body'].
>
> > Thanks for the help!
>
> How aboug debug ($post); die; and looking?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to