Controller extension

If you would like to implement seamless load in GreenLight, first you have to create a controller that extends Greenroom\GreenLight\Controllers\SeamlessController.

Make sure you add SeamlessController to the used namespaces:

use Greenroom\GreenLight\Controllers\SeamlessController as SeamlessController;

And then extend your controller with SeamlessController:

class NewsController extends SeamlessController
{
    ...
}