douwen5741 2009-01-28 07:20
浏览 7
已采纳

MVC与不同的演示文稿

I have a controller build for a web application with a web presentation. But now I need to create a iphone (mobile phone) version of this application.

Basically this is a blog application with comments. In the regular version comments are loaded at the same time as the entry. But on the mobile application I want to comments to be load on request. How do you achieve that.

  • 1 controller 2 views : 2 different action (one for each view). But I can have a lot of actino that will be similar but not exactly. And routing will be an issue
  • 2 controller 1 view per controller : 1 manage the regular version the other manage the mobile version.

I open to other ideas. BTW I use Zend Framework.

  • 写回答

3条回答 默认 最新

  • doudeng2057 2009-01-29 01:13
    关注

    You should define a ContextSwitch action helper. You'd also need a way to recognize requests made from iPhone platforms.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行