dousuie2222 2009-09-18 08:03
浏览 29

在MVC中创建网站,并且没有任何框架,但在Simple PHP中,结构会是什么?

I want to create a web site in MVC architecture, with out using any frameworks. What would be the Files/Folder structure (Module/Views/Models).

EDIT: I know the Zend, CakePHP. but my Question is how can we structure in Simple PHP. I dont want to use any of the frameworks, because i need the maximum performance/speed. I heard that frameworks are slower comparied to simple PHP web applications , That is why i selected simple PHP.

EDIT 2: I want every single webpage to be called via index.php,

  • 写回答

7条回答 默认 最新

  • douju2014 2009-09-18 08:31
    关注

    I really like the symfony tree structure http://andreiabohner.files.wordpress.com/2007/03/cheatsheetsymfony001_enus.pdf

    Regarding your edit, I suggest symfony directory structure (or a subset of it, as you need), not to use symfony.

    Regarding the frameworks performances, it depends. Good frameworks know their issues, and use caching, and other optimization techniques; using a lightweight http server, instead of apache, may be another isuue. But everything depends on your particular needs.

    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献