Skip to content

5. Outlets

Lucas F. Lu edited this page Jan 30, 2020 · 2 revisions

What the heck are outlets?

Outlets are sort of like interfaces. They allow whomever implements them to attach some features to the outlet placeholders within the system.

Centralized control panel page is an outlet. It lets people dynamically add new features into that page. For example, you can have a user feature for the site and create an outlet then attach to the control panel. The user related management is thereafter appeared as part of the control panel. It's that magical 😃

Aside from the outlets already built into the system, you can create your own outlet place holders and choose where to put them. Anyone who binds to that outlet will get picked up and rendered at the place you insert your outlet placeholder.

There are currently 2 outlets built into the framework. They are Fe_FrameOutlet and Fe_FrameProfileOutlet.

  • Fe_FrameOutlet is used to bind any features into the control panel.
  • Fe_FrameProfileOutlet is used to bind any features into the user profile page.

The remaining chapter will show you how to create an outlet, attach it to the outlet placeholder and how to create an outlet placeholder yourself.