PHPackages                             icybee/module-sites - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. icybee/module-sites

ActiveIcanboogie-module[Utility &amp; Helpers](/categories/utility)

icybee/module-sites
===================

Manages websites

v3.0.0(9y ago)01.6k1[1 issues](https://github.com/Icybee/module-sites/issues)BSD-3-ClausePHPPHP &gt;=5.5

Since Oct 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Icybee/module-sites)[ Packagist](https://packagist.org/packages/icybee/module-sites)[ RSS](/packages/icybee-module-sites/feed)WikiDiscussions 3.0 Synced 2mo ago

READMEChangelog (4)Dependencies (3)Versions (8)Used By (0)

Site [![Build Status](https://camo.githubusercontent.com/cdda8bca8e7813cfb68ba95127f88711fa5568ce4dab18aa6280c9ce18bd2972/68747470733a2f2f7472617669732d63692e6f72672f4963796265652f6d6f64756c652d73697465732e7376673f6272616e63683d322e30)](https://travis-ci.org/Icybee/module-sites)
=======================================================================================================================================================================================================================================================================================

[](#site-)

The Site module (`sites`) manages the websites served by [Icybee](http://icybee.org/).

Event hooks
-----------

[](#event-hooks)

### `ICanBoogie\Core::run`

[](#icanboogiecorerun)

Initializes the `site`, `locale` and `timezone` properties of the core object. If the website has a base path, the `contextualize()` and `decontextualize()` helpers of the [Routing](https://github.com/ICanBoogie/Routing)package are patched.

### `ICanBoogie\HTTP\RequestDispatcher::dispatch:before`

[](#icanboogiehttprequestdispatcherdispatchbefore)

Redirects the request to the first available website to the user if the request matches none.

Prototype methods
-----------------

[](#prototype-methods)

### `Icybee\Modules\Nodes\Node::get_site`

[](#icybeemodulesnodesnodeget_site)

Returns the website a node belongs to.

```
