FuelPHP Bin
<?php // First controller namespace Main; class Controller_Admin_Main_Settings extends \Controller_Admin { public function before() { parent::before(); \Lang::load('main', null, null, true); $theme = \Theme::instance(); $theme->set_partial('subnavigation', 'partials/subnavigation'); $theme->get_template() ->set('headline', __('settings')) ->set('slogan', __('settingslogan')) ->set('icon', 'icon-wrench'); } // In this controller I want to extend from the First controller to include all data from before() namespace Users; class Controller_Admin_Users_Settings extends \Main\Controller_Admin_Main_Settings { public function before() { parent::before(); }