douduiyun6125 2013-01-09 06:51
浏览 59
已采纳

如何将twitter bootstrap html css与codeigniter集成[关闭]

Hello there thanks in advance! I've done a front-end template using twitter bootstrap. Now I want to use it for one of my learning project "Mini Job Portal". FYI I'm new in CI and I've basic understanding on php. Now can u guys please tell me how can I integrate my coded html, css, js with CI project, also plz tell me what would be the folder structure and how to linked it up. It would be good if you provide a tutorial link. Thanks!

  • 写回答

1条回答 默认 最新

  • dongposhi8677 2013-01-09 07:59
    关注

    The last time I used CodeIgniter the main locations for these types of files were as follows:

    CSS and JS would have their own folders in the main public directory (where the main index.php file for CodeIgniter lives).

    HTML is a little different due to the MVC framework. You basically setup views and then render them from the controller. Usually it's easiest to create a head.php view file which contains all the links to scripts, css, site header, main menu, etc and then include that in all your page views (as these elements are unlikely to change all that often).

    Of course the setup I've suggested will depend on the design of your website.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

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