$user = $this->Session->read('Auth');
产生以下数组:
array(
'User' => array(
'id' => '2',
'email' => 'info@trinoweb.com',
'username' => 'trino',
'created' => '2012-10-11 12:41:52',
'modified' => '2012-10-11 12:41:52',
'last_online' => null,
'main_image' => null,
'address' => null
)
)
我希望它产生相同的东西,但所有的连接/关系......就像这样......
array(
'User' => array(
'password' => '*****',
'id' => '128',
'email' => '12312@asdas.com',
'username' => 'teresa',
'created' => '2012-10-11 12:41:52',
'modified' => '2012-10-11 12:41:52',
'last_online' => null,
'main_image' => null,
'address' => null
),
'Inbox' => array(),
'Sender' => array(),
'Upload' => array()
)
提前致谢。