Answer the question
In order to leave comments, you need to log in
How to display a variable from the parent (Kohana) in a child controller?
There is a Common controller
abstract class Controller_Common extends Controller_Template {
class Controller_Products extends Controller_Common {
Answer the question
In order to leave comments, you need to log in
And what are the difficulties?
abstract class Controller_Common extends Controller_Template {
protected $_xxx = 'ololo';
}
class Controller_Products extends Controller_Common {
public function __construct() {
die('унаследованная переменная: ' . $this->_xxx);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question