I am working on creating an extension for Bolt Cms.
In essence I am wanting to read the URL and reroute based on whatever the outcome is.
My Output is
NO You Are Here
Any help is GREATLY appreciated
namespace Bolt\Extension\local\johnm\test;
use Bolt\BaseExtension;
class Extension extends BaseExtension
{
public function initialize()
{
$config = $this->app['config']->get('/editcontent/{contenttypeslug}/{id}', function () {
echo "QWERTY";
exit;
});
$config = $this->app['controllers_factory']->get('/overview/{contenttypeslug}', function () {
echo "QWERTY";
exit;
});
$config = $this->app['controllers_factory']->match('/content/{action}/{contenttypeslug}/{id}', function () {
echo "QWERTY";
exit;
});
echo "No You Are HERE";
exit;
}
}