Please note that the forum isn't realy used anymore.

If you have questions, want support or just simply want to talk to us you can find us on slack.

 

Get object

Simple question but I can't find the answer...

Before Symfony you could get an object by spoon: $page = Spoon::get('page');

How can you do this in the current version of Fork?

What I need: I want to know in the file template_custom.php which extra blocks there are linked to the current loaded page.

Thx!

I think this will help :-)

$this->getContainer()->get(<name>);

Aha! Great! Note to myself: read everything of documentation! ;)

Comment

The forum is deprecated in favor of our Slack channel, which provides real-time support for your issues.

Join us on Slack here: https://fork-cms.herokuapp.com/