ds122455
2010-11-10 06:49 阅读 56

像asp.net一样编写PHP - 有可能吗?

While I know PHP extremely well, I was wondering if there is any frameworks / GUI's out there that allow you to develop PHP in the manor that you can develop ASP.net sites? Most important features would be the separation of behind the scene's coding from the actual web view itself. This means each page has it's own class generated behind the scenes and can auto detect when certain buttons are clicked. It would be ideal for all this to be handled by the framework so I don't have to do it all.

Things like textbox1.text would be amazing, but I have no expectations of that. Getting from the $_POST is ok.

Other key features I'd like is the ability to create classes with namespaces and #regions so i can easily access / see only what I want at a specific time. A Data Access Layer object like .net would also be amazing so my SQL could stay clear and in an object form.

Again I am being very optimistic in asking if anyone knows of a setup like this, but figure it's worth asking as I have to develop a rather large PHP project and development time decreases 10 fold due to the usability of even Netbeans compared to ASP.net / Visual Studio.

I appreciate any input

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    dongxian3574 dongxian3574 2010-11-10 07:03

    The closest PHP framework I have seen is Prado.

    PRADO is a component-based and event-driven framework for rapid Web programming in PHP 5. PRADO reconceptualizes Web application development in terms of components, events and properties instead of procedures, URLs and query parameters.

    I haven't looked at it in years though and the old site says they have a new framework, but I'm not sure if it uses the same style.

    点赞 评论 复制链接分享
  • dongpeixiong5943 dongpeixiong5943 2010-11-10 07:00

    What you're looking for is a PHP framework with an MVC architecture. There are a lot of those out there, so take your pick. It won't work exactly like .NET since it's a different technology, but you should definitely use a properly structured framework for any serious project.

    点赞 评论 复制链接分享

相关推荐