How can I use a subfolder for a component template file and the class file in sage 10?
From the blade docs, I found that I can call a component within a subfolder with a dot notation. So something like
For a component template in
The component is correctly called this way, but I can’t figure out how to make the class model in
View/Components/Subfolder/TestComponent.php connect to the component template.
All variables not directly passed to the component via attributes are
undefined. I’m probably messing something with the class name when moving the file, but maybe someone has done something similar already and knows how it works?
An easy way to reproduce this is to move the example
Alert component and class file into a subfolder, and the
types variable that is only defined in the Alert class will be undefined in the component.