基于 C 的 PHP 框架,Yod Framework v1.3.3 發布
Yod是一個C語言編寫的PHP框架,Yod同時支持單入口和多入口模式,應用靈活,形式自由。
hello.php is the application hello entry
<?php //set_time_limit(0); error_reporting(E_ALL); date_default_timezone_set('Asia/Shanghai');defined('YOD_RUNPATH') or define('YOD_RUNPATH', dirname(FILE) . '/app');
class HelloController extends Yod_Controller { public function indexAction() { $this->assign('content', Yod::model('Hello')->content()); $this->display('/index/index'); }
public function errorAction() { echo '<pre>'; print_r($this); }
}
class HelloModel extends Yod_Model { public function content() { return 'Hello World!'; } }</pre>
version 1.3.3:
- 廢除 Yod_Model 類中的 findAll 方法
- 廢除 Yod_Model 類中的 config、import、plugin、model 和 dbmodel 方法
- 廢除 Yod_Controller 類中的 config、import、plugin、model 和 dbmodel 方法
- 修正了 yod_application_autoload 中使用PHP命名空間的一個BUG
- 修改了常量 YOD_EXTPATH 的默認值
- 修改 Yod_Application 中的 autoload、plugin 和 import 方法
- 修正了 yod_init_compile_file 中的一個BUG (支持 zend_exception_error 異常處理)
項目地址:https://github.com/zmrnet/yodphp</span>本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!