02-17-2015, 11:57 AM
Hey there! New to CodeIgniter and trying my best to keep this project streamlined and within the "best practices" parameters as much as possible.
My question: Is is ok to have variables in a model class that are not in the database? I Category and Page model classes, and in my controller I'd like to create an array of Page objects in the Category class to use in the View.
Thanks!
My question: Is is ok to have variables in a model class that are not in the database? I Category and Page model classes, and in my controller I'd like to create an array of Page objects in the Category class to use in the View.
Thanks!