初始提交
This commit is contained in:
33
fastphp/base/Controller.php
Normal file
33
fastphp/base/Controller.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace fastphp\base;
|
||||
|
||||
/**
|
||||
* 控制器基类
|
||||
* Class Controller
|
||||
* @package fastphp\base
|
||||
*/
|
||||
class Controller
|
||||
{
|
||||
protected $_controller;
|
||||
protected $_action;
|
||||
// protected $_view;
|
||||
|
||||
//初始化属性,实例化对应模型
|
||||
public function __construct($controller,$action)
|
||||
{
|
||||
$this->_controller = $controller;
|
||||
$this->_action = $action;
|
||||
// $this->_view = new View($controller,$action);
|
||||
}
|
||||
|
||||
// //分配变量
|
||||
// public function assign($name,$value){
|
||||
// $this->_view->assign($name,$value);
|
||||
// }
|
||||
//
|
||||
// //渲染视图
|
||||
// public function render(){
|
||||
// $this->_view->render();
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user