Ядро PHP: <?php class Application { public $config; function __construct($config) { $this->config = $config; } function loadController() { короче он запустит контролер } function loadView() { print_r($this->config); //[color=red]НЕТ $this->config[/color] } } ?> контролер PHP: <?php class index extends Application { function __construct() { } function main() { $this->loadView('view_blog'); } } ?> Вопрос почему..
у тебя в конструкторе класса index тоже должна передаваться переменная $config, иначе она будет NULL!
PHP: <? class index extends Application { function __construct($config) { parent::__construct($config); } } или вообще отказаться от переопределения конструктора в контроллере.