on-internet
← Community

CodeIgniter: error loading custom library

Stack Overflow ·

I created a custom Library in CodeIgniter, and positioned it in application/libraries/VarMatrixSpecanimal.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class VarMatrixSpecanimal { protected $variabiliMatrix; public function __construct() { $variabiliMatrix['cat']['no']=1; $variabiliMatrix['dog']['a']=2; $variabiliMatrix['bird']['b']=3; } public function get_matrix() { return $this->variabiliMatrix; } } ?> Then in one controller (application/controllers/certificate.php) method I added these two lines of code: public function save1() { //..... some more code before $t

Comments

Sign in or sign up to comment and upvote.

No comments yet.