重複の可能性:
php =&の参照代入演算子
ブログを作りたいのですが、これはコントローラーファイルですが、この行がわかりません
$this->$model =& new $model;
この行は何ですか?
protected $_model;
protected $_controller;
protected $_action;
protected $_template;
function __construct($model, $controller, $action) {
$this->_controller = $controller;
$this->_action = $action;
$this->_model = $model;
$this->$model =& new $model;
$this->_template =& new Template($controller,$action);
}
function set($name,$value) {
$this->_template->set($name,$value);
}
function __destruct() {
$this->_template->render();
}
}