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

Friday, December 31, 2021

[FIXED] CodeIgniter 4 Vendor not detected when calling

 December 31, 2021     codeigniter, codeigniter-4, visual-studio-code     No comments   

Issue

image show that it cannot find it

I don't know what I've been doing, maybe I accidentally change the CI4 configuration.

So, I'm installing "hermawan/codeigniter4-datatables" with Composer and it successfully installed. Then, when i call it inside Controller, it seems like ci4 can't find it. I'm using VS-Code, so when I type use Hermawan\DataTables\DataTable, I cannot ctrl + left click.

When I use another project (past), its normal. But in this project is not.


Solution

Check whether you've imported the library or autoloaded the library.

use \Hermawan\DataTables\DataTable;

as well this need php-sql-parser


If above all done n still running errors, use

composer dump-autoload


Answered By - Abdulla Nilam
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

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