Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Object class was not whitelisted?
  • As mentioned in the title, I have following error:
    Fuel\Core\Fuel_Exception [ Error ]: Object class was not whitelisted in security.whitelisted_classes and could not be converted to string.

    This is the code I use:
    public function action_index()
        {
      $characters = Model_Character::find()->where('is_public', '=', 1)->order_by('character_name', 'asc');
      
            $this->template->title = 'Characters';
            $this->template->content = View::factory('characters/index')
       ->set('characters', $characters);
        }
    
  • nvm had to add the '->get()' to the end of the query

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion