So I created Hello World application following this tutorial:
https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path
My bootstrap.php contains the same code that is given in the official documentation's Hello World extension.
I run my composer update and stuff, then enabled the extension from Admin Dashboard. As soon as I enabled it I started getting this error:
RuntimeException
Failed to start the session because headers have already been sent by "/srv/users/serverpilot/apps/myapplication/public/workbench/flarum-ext-yogi/bootstrap.php" at line 4.
Here's my callstack information:
http://i.imgur.com/myayCyt.png
How can I fix this? What is the problem?