Call to undefined method app\packs\controller\Index::error()