»
S
I
D
E
B
A
R
«
Cakephp: how to access to model “variables” (mapped from db) from the controller after a set?
November 9th, 2009 by wood

Ok i have this controller:

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

}

}

Do you have some hints for me?


Leave a Reply

»  Substance: PHP Frameworks   »  SiteMap