First off, love the library. Seems to be MUCH faster than Matchbox. So far I’m thrilled to have made the switch. However, I’m running into a problem trying to load language files.
I have a core_module in ‘application/core_modules/pages’. The language file is located in /application/core_modules/pages/language/english/pages_lang.php’.
In my CMS, I’m using the language files to load the names and descriptions of all of the modules so that I can handle enabling/disabling them. Here’s the call in my modules model:
public function get()
{
// Get list of directories
$map = scandir(APPPATH.'modules/');
// Build our modules list
$modules = array();
foreach ($map as $key => $file_name)
{
if ($file_name != '.' && $file_name != '..' && is_dir(APPPATH.'modules/'.$file_name))
{
$this->load->language($file_name);
$modules[] = $file_name;
}
}
return $modules;
}
Whenever it runs, it spits out the following error:
Unable to load the requested language file: language/english/welcome_lang.php
Anyone have any ideas what I’m doing wrong, here?
Thanks!