WordPress Templates

If you need to use some WordPress standard templates in you theme, you can do it with Alter. Just use the template() method from the Response object.

Route::get('/search', function(){
  $this->template('search'); // Will require (not render) your_theme/search.php
});

Leave a comment

Your email address will not be published. Required fields are marked *