htmlburger / wpemerge

A modern, MVC-powered WordPress as a CMS workflow. 🚀
https://wpemerge.com/
GNU General Public License v2.0
453 stars 38 forks source link

Wrong template names are not providing good error message #1

Closed emohamed closed 6 years ago

emohamed commented 6 years ago
Router::get( '/', function() {
    return cf_template( 'templates/no-such-file.php' );
} );

produces error:

 Warning: include(): Filename cannot be empty in /path/to/framework/src/Templating/Php.php on line 18

I'd expect an exception instead.

atanas-dev commented 6 years ago

Fixed in 012a2628ae170c754441029505f9ac7da0cc20d0