Brain-WP / Cortex

Routing system for WordPress
MIT License
347 stars 20 forks source link

Cortex is not booted #7

Closed kapooostin closed 8 years ago

kapooostin commented 8 years ago

The hook brain_loaded is never fired, if I use init I get Domain Exception. It is thrown when a Brain module was not booted if I understand correctly.

I have Brain\Cortex::boot() in my theme's functions.php file. Is it too late to boot it?

gmazzap commented 8 years ago

Are you using a Composer full-stack installation? (the whole website installed via Composer, including WP core)

kapooostin commented 8 years ago

Yes, I use Bedrock.

gmazzap commented 8 years ago

That's a know issue with Cortex and full stack Composer installs. It is planned to be fixed, but not found the time yet.

That's one of the reasons no stable branch of Cortex has been released.

More details and a solution here https://github.com/Giuseppe-Mazzapica/Cortex/issues/4#issuecomment-65920146

kapooostin commented 8 years ago

Yep, it works, thank you! It works also if I put it in my theme, so I do not have to add an extra plugin.

kapooostin commented 8 years ago

Should I close this issue or you'll need it as a reminder?

gmazzap commented 8 years ago

Let's keep it open for now, with the hope that this will make the release of v1.0 faster ;)