You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get this helper working. I followed the installation instructions but I can't figure out how to use it in my templates. Please could you add instructions for this?
I tried the following:
Loaded the plugin to my AppView.php (none of these worked):
Tried to use it in the Template:
I tried statically with:
use ADmad\Tree\View\Helper as Tree;
Tree::generate($myArrayOfData);
I tried dynamically with:
$this->Tree->generate($myArrayOfData);
Looking at the unit test I was confused... seems to be wrapping a view in Test, rather than loading it as a helper and also adding it as a behaviour to the model... I thought it was a view helper?
The text was updated successfully, but these errors were encountered:
Hi ADmad,
I'm trying to get this helper working. I followed the installation instructions but I can't figure out how to use it in my templates. Please could you add instructions for this?
I tried the following:
I tried statically with:
I tried dynamically with:
Looking at the unit test I was confused... seems to be wrapping a view in Test, rather than loading it as a helper and also adding it as a behaviour to the model... I thought it was a view helper?
The text was updated successfully, but these errors were encountered: