Welcome Guest, Not a member yet? Register   Sign In
Absolute "noob" questions
#4

[eluser]Pascal Kriete[/eluser]
Hey callumd,

I'll move from the bottom up. Yes, constructors are automatically called if you don't define your own - it's a personal choice to put the 'emtpy' ones in.

CodeIgniter operates on one 'super-object'. Controllers extend this super object so you don't run into scoping issues.
Since inheritance in PHP 4 is essentially broken, a different base object is used for PHP 5. So if you open up system/codeigniter/base#.php, you will find your elusive CI_Base class.

Of course an application is more than just controllers. Libraries and helpers are used for shared code. CodeIgniter loads libraries as singletons (one instance) and then creates a class variable reference to that object, so you end up with $this->library_name . The loader is referenced with $load, so $this->load->view() calls the view function of the class in system/loader.php .

To get access to the current super-object in a library you can use the get_instance() function.

htaccess is not available on all server configurations, and it can be a pain to make it work if your host has imposed funny restrictions. Search the forums, you will find a lot of threads on this - many with very useful information.

Hope that covers most of it.
Welcome to CodeIgniter.


Messages In This Thread
Absolute "noob" questions - by El Forum - 10-28-2008, 09:49 AM
Absolute "noob" questions - by El Forum - 10-28-2008, 10:04 AM
Absolute "noob" questions - by El Forum - 10-28-2008, 10:20 AM
Absolute "noob" questions - by El Forum - 10-28-2008, 10:33 AM
Absolute "noob" questions - by El Forum - 10-28-2008, 10:52 AM
Absolute "noob" questions - by El Forum - 10-28-2008, 11:07 AM
Absolute "noob" questions - by El Forum - 10-28-2008, 12:31 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 12:37 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 01:19 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 03:24 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 03:27 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 03:35 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 03:36 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 03:45 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 03:47 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 04:11 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 04:24 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 04:32 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 04:37 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 04:46 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 04:49 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 04:58 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 05:03 PM
Absolute "noob" questions - by El Forum - 10-28-2008, 05:54 PM
Absolute "noob" questions - by El Forum - 10-31-2008, 11:28 PM
Absolute "noob" questions - by El Forum - 10-31-2008, 11:34 PM
Absolute "noob" questions - by El Forum - 10-31-2008, 11:37 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 12:10 AM
Absolute "noob" questions - by El Forum - 11-01-2008, 12:25 AM
Absolute "noob" questions - by El Forum - 11-01-2008, 12:21 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 12:27 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 12:29 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 12:29 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 12:31 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 05:34 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 06:51 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 06:56 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 06:57 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 07:04 PM
Absolute "noob" questions - by El Forum - 11-01-2008, 07:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB