Welcome Guest, Not a member yet? Register   Sign In
Get started on Code Ignitor - Books, articles, sample projects?
#1

[eluser]jackdowsan[/eluser]
Hello Guys!
I am new to CI, I have worked on OOP php and php in general. I know about MVC, but I haven't used it in my work yet. I am hoping all that to come from CI. But I want to have resources for that, book, blogs, articles..anything. A sample project that I can follow along and learn out of. A real world project may be.

Also, I want to know if there are any constraints in going with CI, anything that can't be done by using CI, I want to know before hand.

Thanks all, I appreciate you helping me out on this.

Regards
Jack
#2

[eluser]Matt S.[/eluser]
The User Guide is probably the best resource you are going to find if wanting to learn how CI works. A copy of the user guide is included with every CodeIgniter installation. You can access it by visiting:

Quote:http://localhost.com/user_guide

or use the hosted version

http://ellislab.com/codeigniter/user-guide/

Keep in mind that you may have to navigate past the base directory if you have you installation stored somewhere else.

If you want some examples, nettuts+ has a good series called "CodeIgniter From Scratch" which takes you from installation to a full web app using CodeIgniter.

CodeIgniter From Scratch: Day 1
#3

[eluser]jackdowsan[/eluser]
Thanks a lot Matt S. for the fast reply.

Nettuts+ seems great source. One more thing though, Any shortcomings of CI I should know before I dive into it for a real project? Any glitch? Anything that doesn't work with CI?
#4

[eluser]Matt S.[/eluser]
Every framework is bound to have some sort of glitch, but I can't think of any major ones that CI has of as now. I do recommend however trying out CodeIgniter 2.0 since it's fixes a lot of minor bugs and adds new features. You can download a copy from [url="http://bitbucket.org/ellislab/codeigniter"]CodeIgniter's Bitbucket[/url] repository by clicking the "get source" menu on the top right.

Keep in mind that CI 2.0 is still in development, so you may need to visit the bitbucket repository to grab an update every once in a while (until it is officially released). I think it may be to your benefit to start using it now so you can get an upper-hand on what is to come.

If you do plan on using 2.0, pay attention to the Controller and Model class names that you are extending and also constructor names. For example in the current version, when extending the base classes you would do like so:

Code:
class Foo extends Controller {

     function Foo()
     {
          parent::Controller();
     }

}

// and for models...
class Foo extends Model {

     function Foo()
     {
          parent::Model();
     }

}

Since 2.0 is PHP5 only now, constructors will be named __construct() instead of after the class name. And base classes will be prepended with "CI_":

Code:
class Foo extends CI_Controller {

     function __construct()
     {
          parent::__construct();
     }

}

// and for models....
class Foo extends CI_Model {

     function __construct()
     {
          parent::__construct();
     }

}
#5

[eluser]pbreit[/eluser]
The CodeIgniter web site and docs are terrific. NetTuts also has a nice, multi-part intro to CI. You should be able to use CI for most web sites. You'll need to plug in an auth/user account library such as Ion Auth. Also, the lack of querystring support is an annoyance.
#6

[eluser]jackdowsan[/eluser]
Any resource location where people share user created library and helper files and functions?
#7

[eluser]bl00dshooter[/eluser]
[quote author="jackdowsan" date="1291043353"]Any resource location where people share user created library and helper files and functions?[/quote]

http://ellislab.com/forums/viewforum/58/
#8

[eluser]michalsn[/eluser]
Libraries, helpers, etc: http://codeigniterdirectory.com/ http://codeigniter-resources.com/ and Wiki

Full project built on CI: http://www.okadadesign.no/blog/codeignit...deigniter/




Theme © iAndrew 2016 - Forum software by © MyBB