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.

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

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题