[eluser]Josh K[/eluser]
I'm sure this has been asked before, but how do I create new Objects and where do they go?
For example, I have a
Question class that I'm using to hold several variables. I want to make an array of
Question objects.
Standard PHP5 after loading (or defining an _autoload function):
Code:
$q[] = new Question("topic", "question", "author", "date");
$q[] = new Question("topic2", "question2", "author2", "date2");
// Etc...
How can I do this in CI, and where would I be placing the
Question.php object?