public function action_index()
{
$data['messages'] = Model_Message::find('all');
$this->template->title = "Messages";
$this->template->content = ViewModel::forge('message/index', $data);
}
This returns an error:
ErrorException [ Error ]: Method name must be a string COREPATH/classes/viewmodel.php @ line 240
Warning!
ErrorException [ Warning ]: Missing argument 2 for Fuel\Core\ViewModel::set(), called in C:\wamp\www\fuelphp-v1\fuel\app\classes\controller\message.php on line 9 and defined
COREPATH/classes/viewmodel.php @ line 171:
170: */
171: public function set($key, $value, $filter = null)
172: {
Notice!
ErrorException [ Notice ]: Undefined variable: value
COREPATH/classes/viewmodel.php @ line 174:
173: is_null($filter) and $filter = $this->_auto_filter;
174: $this->_view->set($key, $value, $filter);
175:
It looks like you're new here. If you want to get involved, click one of these buttons!