Skip to content

Instantly share code, notes, and snippets.

@eyedol
Created October 22, 2010 18:10
Show Gist options
  • Save eyedol/641068 to your computer and use it in GitHub Desktop.
Save eyedol/641068 to your computer and use it in GitHub Desktop.
if (Kohana::find_file('libraries/api',
Kohana::config('config.extension_prefix').$library_file_name)) // Library file exists
{
include Kohana::find_file('libraries/api', Kohana::config('config.extension_prefix').$library_file_name);
print_r(die($library_file_name));
// Create instance of the implementing library/class
$api_object = new $library_file_name(&$this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment