Two things. Do you have something similiar to <?php debug( $user ); ?> in the
view file being rendered? The second is to set your debug setting to 2 or 3
and look at the debug sql and objects. A lot of goodies in there.
[EMAIL PROTECTED] wrote:
>
>
> Trying to make an association with user and his adres, though after
> making the association and try to find all users with $this->User-
> findAll(), the page stays blank. Not a single line of output. My
> models are:
>
> Adres Model:
>
> <?php
> class Adres extends AppModel
> {
> var $name = 'Adres';
>
> var $hasMany = array( 'User' );
> }
> ?>
>
> User model:
>
> <?php
> class User extends AppModel
> {
> var $name = 'User';
>
> var $hasOne = array( 'Adres' );
>
> }
>
> ?>
>
> code fragment user_controller.php:
>
> $this->set("user", $this->User->findAll());
>
> I use all the Cake conventions, have in user table a field with
> adres_id.
>
> Whats giong wrong.
>
>
> >
>
>
--
View this message in context:
http://www.nabble.com/problem-with-associations-cakephp-1.2-tf3632542.html#a10153688
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---