FAQ
Hi@all!

In my Cakephp 1.3 Webapp I try to get related Content for my Menu.
Inside the Menus Model I call the following function as i found in
http://book.cakephp.org/1.3/view/1047/Joining-tables. Puts me out all
data from someOther table, neither data from joining table. All sql
errors where fixed, i still do not recive any data from the joining
table, what I do not understand

Controller:
$output = $this->Menu->findInbox(1);

Model:
var $name = 'Menu';
var $useTable = 'someOther';

function findRelatedContent($user) {
$this->recursive = -1; .
$query = $this->find('all', $options['joins'] = array(
array(
'table' => 'Content',
'alias' => 'Pages',
'type' => 'LEFT',
'conditions' => array(
'Content.showing = 1'
)
)
)
);

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcake-php @
categoriesphp
postedJun 4, '12 at 5:51p
activeJun 4, '12 at 5:51p
posts1
users1
websitecakephp.org
irc#cakephp

1 user in discussion

Davido: 1 post

People

Translate

site design / logo © 2022 Grokbase