Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Integreriting solarium in cakephp2.4

    • 0
    • 0
    • 0
    • 4
    • 0
    • 0
    • 0
    • 565
    Answer it

    I have problem with start Solarium Client, I downloaded it by Composer. I install it in Vendor When i want getting document from solr i have to creet a Client instance

    $client = new Solarium\Client($config); I Get this ERROR Error:

    Class 'Solarium' not found File: D:\wamp\www\DcSearch\app\Controller\UsersController.php I dont know what I miss:

    App::uses('HttpSocket', 'Network/Http'); App::import('Vendor','autoload',array('file'=>'solarium/vendor/autoload.php'));

        class UsersController extends AppController {
        public function find() {
                $config = array(
                 "endpoint" => array("localhost" => array("host"=>"",
                 "port"=>"8983", "path"=>"/solr", "core"=>"demo",)
                ) );
                $client = new Solarium/Client($config);

 4 Answer(s)

  • i have this Error Class 'Solarium\Client' not found where i use include_once("/app/Vendor/solarium/vendor/autoload.php"

    include_once() [function.include]: Failed opening '/app/Vendor/solarium/vendor/autoload.php' for inclusion (include_path='D:\wamp\www\aclbake\lib;.;C:\php\pear') [APP\Controller\UsersController.php, line 46]

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: