【发布时间】:2009-11-09 17:32:04
【问题描述】:
好的,我有这个控制器:
class ExampleController extends AppController {
var $name = 'Example';
public function test_me () {
$this->Example->Create();
$this->Example->set( 'variable_from_db_1' => 'random_value_1',
'variable_from_db_2' => 'random_value_2' );
//here, how can i access to variable_from_db_1 and 2 in $this->Example?
//???? i've tried $this->data and $this->Example->data but nothing to do
}
}
你有什么提示吗?
【问题讨论】:
标签: cakephp variables model controller