I'm developing a custom extension that should work also in Control Panel. In an EE MSM environment I need to know which site is selected (site_id). Is there any variabile?
I can't find anything in EE Development Doc.
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityI'm developing a custom extension that should work also in Control Panel. In an EE MSM environment I need to know which site is selected (site_id). Is there any variabile?
I can't find anything in EE Development Doc.
$this->EE->config->item('site_id');
Or
config_item('site_id');
system/expressionengine/config/config.php
for config items. It's also in the CI docs. Here's how a CI Reactor Engineer uses it. pretty cool.
– notacouch
Apr 3 '13 at 19:20