Tuesday, May 29, 2018

html5 - Integrating Boilerplate and Bootstrap with CodeIgniter or Yii



I've always been a PHP programmer, but until now without any framework. Now I've a nice project to start and I'd like to introduce some PHP framework: Yii or CodeIgniter.



I don't know yet which one is best for me. I'd like to integrate this project with these 'tools':




  • JQuery

  • HTML5 Boilerplate


  • Twitter Bootstrap

  • CSS SASS



Do you know which framework is more easy to integrate with these tools? And, do you know where I can find a good tutorial for this integration?



Thx


Answer



CodeIgniter and Yii are server-side frameworks. The libraries in question (with the exception of SASS), live on the client-side. Whether you choose CodeIgniter or Yii, the basic integration will be the same. Because I'm a CodeIgniter developer, I can give you one-half of the story:




I urge you to read everything under the Introduction section of the documentation and take a few days to fly through the tutorials and set your brain straight on MVC. Only then, check out a previous answer of mine that explains how to create modular layouts. Once you're comfortable with this, including jQuery and Bootstrap into your project is trivial.



As for Boilerplate - please pick and choose the sections that are relevant to your project and plug-them-into the right 'view' as per linked answer. There are some parts of Boilerplate that will step on Bootstrap's toes (specifically CSS resets, be careful).



Paul Irish gave an excellent talk on HTML5 Boilerplate last year. The Boilerplate itself has probably been updated significantly, but it should get you started.



CodeIgniter has unparalleled documentation and a fantastic community. If you choose this route - welcome!


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...