in index.ctp try to write
<?php
debug($books);
?>

or at least - print_r($books); - so we will know, is in fields - array

2010/3/11 Mónico Briseño <monico.bris...@gmail.com>:
> Paul, Structure of two tables
>
> CREATE TABLE `authors` (
>     `id` int( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
>     `name` varchar( 127 ) NOT NULL ,
>     `email` varchar( 127 ) NOT NULL ,
>     `website` varchar( 127 ) NOT NULL
>     );
>
>
> CREATE TABLE `books` (
>     `id` int( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
>     `isbn` varchar( 13 ) NOT NULL ,
>  `title` varchar( 64 ) NOT NULL ,
>     `description` text NOT NULL ,
>     `author_id` int( 11 ) NOT NULL
>     )
>
>
> How can I get the output  from echo debug($books)?
>
> TIA
>
> --
> M.S. Mónico Briseño Cortés
> Instructional Technologist  Univ. Houston
> Moodle Teacher Certificate
> NTCM member
>
> 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 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
>

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 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