dtvdz911959 2013-01-19 03:38
浏览 35
已采纳

使用Laravel捆绑包和CodeIgniter

I want to use Laravel Bootstrapper bundle http://bundles.laravel.com/bundle/bootstrapper with my CodeIgniter application.

How can i utilize autoloader functionality to use Bootstrapper bundle code in CodeIgniter in native PHP 5 fashion.

Button::make('Abc')->with_icon('ok');

Do you suggest to convert Bootstrapper bundle in CodeIgniter library or we can use it as it is.

I am using bootstrap for creating views, thus already including bootstrap specific css, js & images.

Please help, so that the bundle can be used with CodeIgniter

  • 写回答

1条回答 默认 最新

  • doupa1883 2013-01-19 07:52
    关注

    Why? It's not designed to work with CI, you'll probably have to mess about alot to get it working. See one of the many versions available for CI here https://github.com/vesparny/codeigniter-html5boilerplate-twitter-bootstrap.

    Further more, I dont see any great advantage of having a bootstrap CI integration, if you do then go for it but I just use my own customised bootstrap and load it in as normal in template/view files. Works just fine and keeps all those UI/view bits and pieces separate for designers/Front-end coders who panic at the sight of php.

    All this work trying to keep design, function and layout separate and people go to great effort to ruin it with something like this.

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部