Welcome Guest, Not a member yet? Register   Sign In
Dynamic Content in CI
#10

[eluser]stuffradio[/eluser]
Some things I notice in your model is this

Code:
$this->load->database();

You don't need that because in your autoload I assume you have database in the autoload file.
This is what I have

Code:
$autoload['libraries'] = array('database', 'session', 'security');

Security is a custom library I made.

Also, in your controller... aren't you mixing PHP 4 with 5?

And another thing, you don't put parent::Controller() in your index function, that does the same thing as the __construct function in the Test function.


Messages In This Thread
Dynamic Content in CI - by El Forum - 12-09-2009, 08:36 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 08:45 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 11:18 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 11:29 AM
Dynamic Content in CI - by El Forum - 12-09-2009, 12:22 PM
Dynamic Content in CI - by El Forum - 12-09-2009, 01:11 PM
Dynamic Content in CI - by El Forum - 12-09-2009, 01:16 PM
Dynamic Content in CI - by El Forum - 12-11-2009, 03:30 AM
Dynamic Content in CI - by El Forum - 12-11-2009, 04:40 AM
Dynamic Content in CI - by El Forum - 12-11-2009, 01:11 PM
Dynamic Content in CI - by El Forum - 12-12-2009, 05:15 AM
Dynamic Content in CI - by El Forum - 12-20-2009, 11:20 PM
Dynamic Content in CI - by El Forum - 12-21-2009, 08:38 AM
Dynamic Content in CI - by El Forum - 12-21-2009, 09:31 AM
Dynamic Content in CI - by El Forum - 12-21-2009, 06:02 PM
Dynamic Content in CI - by El Forum - 12-21-2009, 06:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB