Welcome Guest, Not a member yet? Register   Sign In
Can't autoload file in Packages
#1

Hi.
This is the my config
application/config/autoload.php
PHP Code:
$autoload['packages'] = array(APPPATH.'third_party/my_package'); 

in application/third_party/core/config/autoload.php
i config:
PHP Code:
require_once(APPPATH.'third_party/my_package/libraries/my_lib.php'); 

My file exitst but can't loaded file my_lib.php

pls help me.
(sr my eng)
Reply
#2

Help me
Reply
#3

Just put the library name in the autoload you do not need the full path to it.

PHP Code:
$autoload['packages'] = array('my_package'); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB