error - Class property pagevariables_model does not exist

edited December 2013 in Modules
I'm doing var_dump($this->fuel->pagevariables_model->list_items()) in views/home to take a look at it's contents, and getting the error "Uncaught exception 'Exception' with message 'Class property pagevariables_model does not exist' in [~]/fuel/modules/fuel/libraries/Fuel.php:197"

Do I need to do an include first?

I've been on this page:
http://docs.getfuelcms.com/libraries/fuel_pagevariables_model

Comments

  • edited 7:24PM
    The correct syntax would be $this->fuel_pagevariables_model->list_items() and yes, it would need to be loaded first like other models:
    $this->load->module_model(FUEL_FOLDER, 'fuel_pagevariables_model');
Sign In or Register to comment.