Plugin to access configuration arrays in controllers.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config/autoload
module/Application
LICENSE
README.md

README.md

ZF3 - Controller Plugin for Configuration Array Access

Plugin to access configuration arrays in controllers.

Simply use a controller plugin to access configuration arrays by using one line of code in the controller action modules:

public function indexAction()
{
   return new ViewModel([
      'itemsPerPage' => $this->application()->getSettings()->pagination->itemsPerPage
   ]);
}