Skip to content

Instantly share code, notes, and snippets.

@ackintosh
Created April 29, 2013 07:45
Show Gist options
  • Save ackintosh/5480241 to your computer and use it in GitHub Desktop.
Save ackintosh/5480241 to your computer and use it in GitHub Desktop.
custom configuration file for FuelPHP
<?php
/* fuel/app/config/profile.php */
return array(
'name' => 'akihito',
'twitter' => 'NAKANO_Akihito',
);
<?php
Config::load('profile', true);
echo Config::get('profile.name');// akihito
echo Config::get('profile.twitter');// NAKANO_Akihito
Config::load('profile', 'my_profile');
echo Config::get('my_profile.name');// akihito
echo Config::get('my_profile.twitter');// NAKANO_Akihito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment