CodeIgniter Forums
Just General Questions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Just General Questions (/thread-1404.html)



Just General Questions - fieldsg22 - 03-07-2015

Hello,

New to CodeIgniter, but have some PHP knowledge.

For sometime I have wanted to do some development of some small projects to have that 'accomplishment' in my life. I am now to that point to where I am ready to get off my butt, and do it. So, I have spent a few days looking over sites, and see that a few applications use CodeIgniter. So, here I am....

1) I want to develop as site very similar to clashcaller.com for the Android Game Clash of Clans (Not here to promote either). I just think that this would be a nice project to do, and want to do it. Is this up the alley of CodeIgniter, or something else?

2) Am I misunderstanding the concept of CodeIgniter? Is it to make it easier for PHP development, or add on to the project?

Thanks,
Gene


RE: Just General Questions - Muzikant - 03-08-2015

Hello. If you are new to CodeIgniter, it is no problem. I am new also. Problem could be, if you are not familiar with OOP (Object Oriented Programming) in PHP 5.3+. If you do not know what is the object or class, you should avoid any modern PHP framework.

But if you have no problems with OOP, the CodeIgniter framework is right for you. It is the best PHP framework for beginner programmers I think. Start with CodeIgniter 3 (almost finished) and read the documentation. There is everything you need for start. It could be thought, but when you learnt it, you will never want to be without it. Good luck. :-)


RE: Just General Questions - Urastor - 03-08-2015

CodeIgniter is "just" a framework, so it's helping you while programming your application. It offers a few standard functions, that makes your life soo much easier, when coding in PHP. Smile
I think it's absoluty worth trying out, since it gives you the opportunity to write clean code, after a nice pattern (MVC).
To answer your question, yes you can use CI for something like that, but you have to accept that CI won't give you everything, but still a lot.
And yes, CI is, just like most other frameworks, to make your PHP life easier. Angel
I personally think CI is good, because it's not as big and complex as some other frameworks, and you can make the best out of it, if you have a little bit of knowledge about CI (as well as of PHP).
A good starting point would be the documentation.

Go for it, it's not to hard if you understood the concept of CI!  Tongue


RE: Just General Questions - RobertSF - 03-08-2015

(03-07-2015, 09:22 AM)fieldsg22 Wrote: 1) I want to develop as site very similar to clashcaller.com . . . Is this up the alley of CodeIgniter, or something else?

Sure, Codeigniter is fine for a site like clashcaller.com. It's fine for even more complex sites.

Quote:2) Am I misunderstanding the concept of CodeIgniter? Is it to make it easier for PHP development, or add on to the project?

The purpose of Codeigniter is indeed to make PHP development easier. It gives you an organized way to do things. Someone else said that if you didn't know about OOP, that Codeigniter was not for you, but I have to disagree. The amount of OOP you need to know is not much and easy to learn.

I don't think Codeigniter would be very successful as an addon to another project, if you mean something like half Wordpress and half Codeigniter.

I think the basic thing about Codeigniter is this. It takes your URLs and what to execute. So if you have a URL like http://www.example.com/character/generate/knight, Codeigniter is going to look for for the file character.php in your controller directory, and execute the generate function in that file after passing it the argument "knight." Your generate function then builds a character of the Knight class. To do that without Codeigniter (or some framework) would take a lot of coding.