开发者

Are there specific parts of PHP I should learn to help me use CodeIgniter in the future?

I'd like开发者_StackOverflow中文版 to learn PHP with a view to using CodeIgniter to make a few apps. Does this alter what or how I should approach PHP to start with?

I'm a designer with good front-end skills. I used Coldfusion in University but want to build stuff in a language more widely supported (and respected?). CodeIgniter seems great but I'd like to know how good a grounding in PHP I'll need. Any tutorial/book suggestions much appreciated.


Here' s a post from Derek Allard about learning php with codeigniter (it's short, only a couple paragraphs):

http://www.derekallard.com/blog/post/learning-php-with-codeigniter/


yes there is one major thing you need to learn or understand first. It's the MVC model that codeigniter uses, it stands for Model, view & controller. Basicly you need to split your code into 3 layers, the model is to query the database, the controller is also called the business logic layer, you will need to check if a query can be executed or not and finally the view which is the presentation layer, what the user will see. For the rest general php knwoledge is required for codeigniter.

Here are some articles about MVC structure:

http://net.tutsplus.com/tutorials/other/mvc-for-noobs/

http://net.tutsplus.com/tutorials/php/hvmc-an-introduction-and-application/

and here is a list of 15 video tutorials about codeigniter written by authors of nettuts:

http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-profiling-benchmarking-hooks/ (this is the last tutorial of the list but it's the only one that links to all other tutorials)

EDIT: OOP (object oriënted programming) is also something you might want to have a look at. http://net.tutsplus.com/tutorials/php/oop-in-php/


My take: first learn PHP, then learn a framework like CI. Trust me, that is the correct order.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜