Yes, You can use folders within the “views” folder.
For access such blades, you have to use
For SAGE9,
» @include(‘single.single-news’)
Or
» \App\template(‘single.single-news’)
Hi PrecisionCoder13
Sorry, but you misunderstood me.
I know that it is possible to include partials and other blade-files within any folder with @include.
But my question was to add folders within the folder “views” that should be understood by wordpress routing rules. I mean, a file named single-news.blade.php means that I want to see a aingle page from the posttype “news”.
If I put that file into a folder inside the folder “views” wordpress routing rules cannot find the file.
But maybe there is a way to do that with some Sage trick.
Thanks anyway for your answer
OK, so Sage has no function for this? My wish was to change somewhere that the wp resources could be loaded from “resources/views/#/” and not from “resources/views/”. But maybe that is not possible in any way. Hmmm… I have to find some another solution for this. Becuse my problem is not to @include in different ways. That will not solve my problem. My problem is to let Wordpress understand to find files in folders with the folder “views”.
Thanks anyway