PECL Extension Solr PHP extension with Codeigniter 4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: PECL Extension Solr PHP extension with Codeigniter 4 (/showthread.php?tid=77576) |
PECL Extension Solr PHP extension with Codeigniter 4 - myo - 09-20-2020 Hi, I tried to use Solr PHP extension. I downloaded 7.4 Thread Safe (TS) x64 and placed php_solr.dll file in ext folder, added in php.ini & restarted server. Then I checked php info & found that solr & libxml extension is enabled. Quote:solr Solr Support enabled I also checked & found libcurl is also installed Code: C:\Users\myo>curl -V Then I added constants in config/constants and added following (taken from example 2) in Home controller: PHP Code: public function index() { But when I execute I get error: PHP Code: Error Class 'App\Controllers\SolrClient' not found Kindly advise how to resolve this issue? Regards RE: PECL Extension Solr PHP extension with Codeigniter 4 - paulbalandan - 09-20-2020 put a backward slash in front. \SolrClient \SolrInputDocument |