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
{{ message }}
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
Activity
darrenjacoby commentedon Sep 10, 2017
I will see what we can do here and let you know.
zacksmash commentedon Oct 4, 2017
Bump on this. Ran into the same issue.
sulfo commentedon Oct 10, 2017
Aaaaand the same here.
darrenjacoby commentedon Oct 10, 2017
Just a note that I am looking into this.
garethpbk commentedon Oct 13, 2017
Same problem here, I'm using the Single.php controller for now. Thanks for looking into it!
webstractions commentedon Nov 11, 2017
How about something like this?
Add $template property to Sober\Controller\Controller
controller.php loader() function
Now you can over-ride the template name inside of your controllers.
zacksmash commentedon Nov 11, 2017
That looks great! Nice solution!
darrenjacoby commentedon Nov 11, 2017
Earlier versions of Controller had the option to specify the template. I think that is the best solution for underscores. I'll add this to dev-master.
Thanks @webstractions
webstractions commentedon Nov 11, 2017
@darrenjacoby You're welcome.
alwaysblank commentedon Nov 22, 2017
@webstractions's solution works great! Had to make one tweak to get it there, though:
Without that, I got errors about trying to call a method on a string. Works like a charm now, though! Thanks!
webstractions commentedon Nov 23, 2017
@alwaysblank Looks good! Updated loader() code above to match.
darrenjacoby commentedon Dec 29, 2017
I'll be adding this to dev-master soon.