duanmaifu3428 2011-11-08 11:31
浏览 32
已采纳

带有Bootstrap的CakePHP(来自Twitter)

I am new to CakePHP and I want to know a way to use Boostrap from Twitter in layouts combined with cake.

My main concern is to make the Form Helper continues to function normally, because I think that it uses pre-configured CSS classes, and if I change the default css, I imagine that the Form Helper will stop to work as it should.

I read this tutorial but it doesn't seems to be complete.
Build a PHP application using CakePHP and (twitter) Bootstrap, Part 1

Has anyone done this?

Thank you! :D

  • 写回答

4条回答 默认 最新

  • dongxian2863 2013-05-25 22:24
    关注

    All current answers require changes to the view files.

    The following plugin will "Bootstrap-ify" your current views without any code/markup changes:

    https://github.com/slywalker/TwitterBootstrap

    All you need to do is alias the FormHelper and HtmlHelper so that all your existing calls to $this->Form & $this->Html will be handled by the plugin instead.

    Can't get easier than that :)

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

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?