After a bit of usage, I've realized that the order of parameters is a bit inconsistent. When creating a a ResourceViewModel, it is:
return new ResourceViewModel(['user' => $user], ['template' => 'user']);
However the resourceRender helper work like this:
$this->renderResource('templateName', ['user' => $user]);
I'm considering changing that for 0.5 to keep the same order. What do you think @grizzm0 ?
After a bit of usage, I've realized that the order of parameters is a bit inconsistent. When creating a a ResourceViewModel, it is:
return new ResourceViewModel(['user' => $user], ['template' => 'user']);
However the resourceRender helper work like this:
$this->renderResource('templateName', ['user' => $user]);
I'm considering changing that for 0.5 to keep the same order. What do you think @grizzm0 ?