PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, February 15, 2022

[FIXED] Kint and Codeigniter MAMP vs LAMP

 February 15, 2022     codeigniter, lamp, mamp, php     No comments   

Issue

I'm currently developing a site on my mac using MAMP. I recently included the kint library and everything seems to be working fine.

The other day I copied the files over to my linux machine and the site is working fine, however, I get the message Unable to load the requested class: kint whenever I get to a page where kint has been loaded - this does not happen with on my mac and I haven't changed any other files.

So far I've tried loading'Kint/kint' (as one thred suggested) and I've also tried autoloading the file, but neither work, meanwhile everything is still fine on my mac???

If anyone could shed some light on this, thank you!


Solution

Thank you to @IsuthanBala.

The answer was to use the format 'Directory/Class' but making sure that the capitalisation was accurate as well (something I had not initially checked).

e.g.

$this->load->library('Kint/kint');



Answered By - Rwd
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing