Hello, below my codes:
protected/components/controller.php
<?php
class Controller extends CController {
public $foo = null;
public function init() {
$this->foo = 'bar';
}
}
protected/components/bar.php
<?php
class Bar extends CApplicationComponent {
public function init() {
echo($this->foo);
}
What I want? Want to get property from base controller to use inside my components…
Sorry for my poor English, I`m braziliam.