Посаны помогите плес, в чем дело не могу разобраться..
Есть два файла, лежат в одном неймспейсе, в одноименной папке (namespace App\core\system\core;)
В одном вызов метода
class CI_Lang {
/**
* List of translations
*
* @var array
*/
@var array
*/
public $language = array();
/**
* List of loaded language files
*
* @var array
*/
@var array
*/
public $is_loaded = array();
/**
* Class constructor
*
* @return void
*/
@return @return void
*/
public function __construct()
{
log_message('info', 'Language Class Initialized');
}
В другом собсна сама функция
if ( ! function_exists('log_message'))
{
/**
* Error Logging Interface
*
* We use this as a simple mechanism to access the logging
* class and send messages to be logged.
*
* @param string the error level: 'error', 'debug' or 'info'
* @param string the error message
* @return void
*/
@param @param string the error level: 'error', 'debug' or 'info'
*
@param @param string the error message
*
@return @return void
*/
function log_message($level, $message)
{
static $_log;
if ($_log === NULL)
{
// references cannot be directly assigned to static variables, so we use an array
$_log[0] =& load_class('Log', 'core');
}
$_log[0]->write_log($level, $message);
}
}
Но не пашет
Call to undefined function App\core\system\core\log_message()