Jump to content

Codeigniter


longki

Recommended Posts

Hello Everyone.. i want to ask many things about codeigniter.. I hope some of you can help me, because even google can't.

 

i start with one question.

 

1. I have downloaded codeigniter from ellislab (CMIIW), and i found that the class Controller is written like this : "CI_Controller".. While in my textbook, the class Controller is written "Controller".. that's why, i can't use code from my book.. because, every time i replace the "CI_Controller" with "Controller", the code will not running properly.. :-( I need some help about codeigniter.

Link to comment
Share on other sites

Which book are you talking about?

 

And no, CI_Controller can't simply be replaced. Where are you trying to use "Controller"? Have you tried using "CI_Controller", in instances where you would use "Controller" based on your book?

 

...one thing to note though... The future of CodeIgniter is a bit up in the air at the moment (see http://ellislab.com/blog/entry/ellislab-seeking-new-owner-for-codeigniter). Much of the community has switched over to Laravel (http://laravel.com/), so if you are considering learning a PHP framework, that's the one I'd suggest. The learning curve is a little steeper, but give you shorter, better, more manageable code. For some tutorial options (there are a lot of resources out there!), check out:

 

-- Online documentation: http://laravel.com/docs

-- Video tutorials (free): http://hub.tutsplus.com/search?utf8=%E2%9C%93&search%5Bkeywords%5D=laravel&button=

-- More video tutorials (free:) http://code.tutsplus.com/tutorials/laravel-4-mastery--net-31233

-- Video tutorials ($9/month): https://laracasts.com/

-- Book ($29, you might be able to find places to download it online?) https://leanpub.com/codebright

  • Upvote 1
Link to comment
Share on other sites

Which book are you talking about?

 

And no, CI_Controller can't simply be replaced. Where are you trying to use "Controller"? Have you tried using "CI_Controller", in instances where you would use "Controller" based on your book?

 

...one thing to note though... The future of CodeIgniter is a bit up in the air at the moment (see http://ellislab.com/blog/entry/ellislab-seeking-new-owner-for-codeigniter). Much of the community has switched over to Laravel (http://laravel.com/), so if you are considering learning a PHP framework, that's the one I'd suggest. The learning curve is a little steeper, but give you shorter, better, more manageable code. For some tutorial options (there are a lot of resources out there!), check out:

 

-- Online documentation: http://laravel.com/docs

-- Video tutorials (free): http://hub.tutsplus.com/search?utf8=%E2%9C%93&search%5Bkeywords%5D=laravel&button=

-- More video tutorials (free:) http://code.tutsplus.com/tutorials/laravel-4-mastery--net-31233

-- Video tutorials ($9/month): https://laracasts.com/

-- Book ($29, you might be able to find places to download it online?) https://leanpub.com/codebright

 

Thanks for the answer.. i've bought some books in local bookstore.. i was trying to use Controller in some Controller class.. But, i think i would not be longer to learn Codeigniter.. as you said earlier, i think i have to switch over to Laravel..

Link to comment
Share on other sites

I think Laravel is the better long term option, especially if you ever try to get a job based on your programming skills. Overall, my impression is that while CodeIgniter is a little easier to learn, learning Laravel will help teach you modern web development practices (working from the command line, using Composer, etc.) If you have questions about getting it set up (it's a little tricky, at least for the first install), feel free to post, and I'll see if I can help.

 

I've personally been reading through the Code Bright book that I've linked to above, and it's a good place to start if you'd prefer a book over video tutorials. I'm not all the way through it yet, but it's written in an interesting way, and seems to cover a lot of what you'll need to get started.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...