但它会给回报从标签相同的数据[1]仅.. 我想从标签数据[1]选项卡[0]明显如何从两个不同的表蛋糕PHP获取数据
$ db = ConnectionManager :: getDataSource('default');
$ tab = $ db-> listSources();
echo '<br>';
$this->Form->useTable=$tab[1];
print_r($this->Form->find(`all'));
echo '<br>';
$this->Form->use Table=$tab[0];
print_r($this->Form->find('all'));
你有一个空间不应该在那里:'$ this-> Form-> use Table = $ tab [0];'。除非你的问题只是一个错字,那么我很惊讶,不会导致错误。 – 2013-03-14 09:15:02