Posts

Showing posts with the label solr

Php Slim with SolrClient

Php Slim with SolrClient I am trying query on my solr server from php slim code but i have problem to use SolrClient. I download solr.so in my php.ini. When i run normal php code, it works correct, However when I run slim code with SolrClient class, it says "Class 'blablaSolrClient' not found". I know solr.so is module for pure php but I want to know if it is possible to run it with slim? Thx in advance 1 Answer 1 You have two options to use the global namespace for the SolrClient class. $client = new SolrClient($options); use SolrClient; $client = new SolrClient($options); thanks man first solution works. You saved my day – erdemhayir Jul 4 at 12:22 Then can you please accept my answer? ...