Hi all, does someone has a simple page controller extension laying around? Mine doesn't seem to work and I can't figure out why.
<?php
class PageExtension_Controller extends Extension {
public function init() {
parent::init();
// Google maps API
Requirements::javascript('https://maps.googleapis.com/maps/api/js?key=xxxxxx');
}
}
// config.yml
Page_Controller:
extensions:
- PageExtension_Controller
The JS file in the extension init method is simply not loaded. Am I missing something here?