Yii和淘汰赛在一起吗? [英] Yii and Knockout Together?
问题描述
我正在尝试确定要用于要构建的新Web应用程序的一组工具.
I am trying to decide on a set of tools to use for a new web app I am going to build.
我希望它真正具有交互性,并且可以使用Ajax进行工作(即不刷新页面等).它还将具有适用于iPhone等移动设备的UI
I want it to be really interactive and work using Ajax (i.e. no page refreshes etc). It will also have a UI for mobile devices like the iPhone
我想使用PHP,MySQL和JavaScript来实现它,主要是因为我所知道的并且我可以轻松地将它托管在某个地方
I want to implement it using PHP, MySQL and JavaScript, mainly because its what I know and I can easily host it somewhere
有人对我应该使用哪些工具有任何看法吗?
Does anyone have any views on what tools I should use?
此刻我在想: -适用于PHP-Yii -适用于Javascript-Knockout.js和jQuery -移动设备-jQuery移动设备
At the moment I am thinking: - for PHP - Yii - for Javascript - Knockout.js and jQuery - for Mobile - jQuery for mobile
我唯一关心的是同时使用Yii和Knockout,使用两个MVC框架是否有点过大?
My only concern is using Yii and Knockout together, is it a bit overkill with two MVC frameworks?
我还应该再看看HTML5吗?
Should I also be looking at HTML5 more?
推荐答案
淘汰赛是客户端,它是MVVM-模型-视图-视图-模型.您可以从Yii控制器通过AJAX json更新Knockout模型,而敲除将相应地更新用户界面.
Knockout is client side, and it is MVVM - Model-View-View-Model. You could update Knockout models via AJAX json from Yii controller, and knockout will update user interface accordingly.
这篇关于Yii和淘汰赛在一起吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!