Created
August 27, 2017 09:32
-
-
Save ekandreas/948b31fe7055c189db5102238687ad60 to your computer and use it in GitHub Desktop.
Add blade controllers and views to a mother theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('bladerunner/controller/paths', function ($paths) { | |
$paths = get_template_directory() . '/controllers'; | |
return $paths; | |
}); | |
add_filter('bladerunner/template/bladepath', function($paths) { | |
$paths = get_template_directory() . '/views'; | |
return $paths; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment