5dCMS的底层MVC框架myMVC近期做了重大改进。
1M层支持oracle,在代码级上与mysql完全兼容。( 罗 万 叶)
演示:
echo "<br><b>演示从表中读取演示从表中取指定位置的数据列表 limit</b><br>";
//实例化一个表对象
$student=new TStudent();
//指定要获取数据的起始位置与数量
//$student->orderby('hometown desc');
$student->limit(3,4);
//获取数据
$student->select();
while ($student->fetch()) {
echo $student->name." ";
echo $student->class." ";
echo $student->gender." ";
echo "<br>";
}
2进一步完善了路由与分发,支持对目录的自动定义。addModulDirectory()。( 钟 罗)
演示:
$router->addModuleDirectory('application');
3进一步完善了对默认模块,控制器,动作的支持。( 罗 钟)
演示:
http://localhost
http://localhost/default
http://localhost/default/index
http://localhost/default/index/index
将产生同样的请求
4进一步完善了对request对象的操作。(罗 钟)
$name=$this->_request->getParam('name');
5实现了对oracle模自动生成。( 万)
参见 php成都胜利完成5dCMS教学框架与myMVC教学框架

