脚本宝典收集整理的这篇文章主要介绍了Zend Framework教程之模型Model用法简单实例,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
本文实例讲述了Zend Framework教程之模型Model用法。分享给大家供大家参考,具体如下:
附一个简单粗俗的例子。只是大概说明了用法:如果要深究,可以自己跟踪源码了解。
model_demo1
│ .PRoject │ .buildpath │ .zfproject.XMl │ ├─.settings │ org.eclipse.PHP.core.prefs │ .jsdtscoPE │ org.eclipse.wst.jsdt.ui.superType.name │ org.eclipse.wst.jsdt.ui.superType.container │ ├─application │ │ Bootstrap.PHP │ │ │ ├─configs │ │ application.ini │ │ │ ├─controllers │ │ IndexController.PHP │ │ ErrorController.PHP │ │ │ ├─models │ │ test.PHP │ │ ModelTest.PHP │ │ │ └─views │ ├─scripts │ │ ├─index │ │ │ index.phtML │ │ │ │ │ └─error │ │ error.phtml │ │ │ └─helpers ├─docs │ README.txt │ ├─library │ ├─app │ │ Test.PHP │ │ │ ├─myApp │ │ Test.PHP │ │ │ ├─Zend │ │ Test.PHP │ │ │ ├─AppTest │ │ Test.PHP │ │ │ └─Apptest2 │ Test.PHP │ ├─public │ index.PHP │ .htaccess │ └─tests │ PHPunIT.xml │ bootstrap.PHP │ ├─application │ └─controllers │ IndexControllerTest.PHP │ └─library
/model_demo1/application/configs/application.ini
PHPSettings.display_startup_errors = 1 PHPSettings.display_errors = 1 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.PHP" bootstrap.class = "Bootstrap" appnamespace = "Application" autoloadernamespaces.app = "App_" autoloadernamespaces.my = "MyApp_" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 1 [staging : production] [testing : production] PHPSettings.display_startup_errors = 1 PHPSettings.display_errors = 1 [development : production] PHPSettings.display_startup_errors = 1 PHPSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1以上是脚本宝典为你收集整理的Zend Framework教程之模型Model用法简单实例全部内容,希望文章能够帮你解决Zend Framework教程之模型Model用法简单实例所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。