Welcome Guest, Not a member yet? Register   Sign In
What are some prior knowledge required to get started in CodeIgniter?
#6

[eluser]xwero[/eluser]
Great you are willing to create something from the bottom up. From scratch would mean you create your own framework but CI is easy enough to understand after a while working with it to make your own modifications.

Bramme and Randy mentioned OOP but there isn't that much OOP in the CI, there are even developers that complain there is too little OOP in the framework. Basically objects are a way to pseudo namespace functions and variables.
considered bad = no OO
Code:
global $var;

function a()
{
   $var = 'a';
  
}

function b()
{
   $var = 'b';
}

function show()
{
   return $var;
}
considered good = OO
Code:
class myclass
{
var $var; // for php5 only apps use public, protected or private

function a()
{
   $var = 'a';
  
}

function b()
{
   $var = 'b';
}

function show()
{
   return $var;
}

}
As you can see it isn't a big change, but one that makes your code easier to maintain and debug.


The best advise i can give you is read the user guide, dive in, look at the helpers or contributions on the wiki or forum if you think you are reinventing the wheel and pick the easiest thing to work with for you. And don't be afraid to ask questions but i guess that is not really a problem Wink


Messages In This Thread
What are some prior knowledge required to get started in CodeIgniter? - by El Forum - 06-20-2008, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB