ekandreas / bladerunner

WordPress plugin for Laravel Blade templating DEPRECATED
http://bladerunner.elseif.se
12 stars 1 forks source link

specify view for particular page #62

Closed stevenmunro closed 7 years ago

stevenmunro commented 7 years ago

In WordPress, you could specify in the page edit screen which page template to use. How would I go about having this option with this plugin?

ekandreas commented 7 years ago

Put @controller in the view code and you get some debug info with template hierarchy.

19 sep. 2017 kl. 01:08 skrev stevenmunro notifications@github.com:

In WordPress, you could specify in the page edit screen which page template to use. How would I go about having this option with this plugin?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

stevenmunro commented 7 years ago

@controller

I did this and I got

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Bladerunner\ControllerDebug' not found in /app/public/wp-content/uploads/.cache/fd8b028a44580e18f43362604ca43a0e64f8420e.php on line 13

stevenmunro commented 7 years ago

I don't know what it is specifically, but I disabled PHP-Composer on my WordPress installation, and used the plugin at http://bladerunner.elseif.se/app/uploads/bladerunner.zip instead. That made the error go away.

ekandreas commented 7 years ago

The @controller directive came in v1.7 with the controller functions. Perhaps an old Bladerunner version via composer?