-
Integreriting solarium in cakephp2.4
almost 9 years ago
-
almost 9 years ago
I resolve the prb step one I update my composer.json in Vendor/solarium
{
"require": { "solarium/solarium": "3.*" }, "autoload": { "psr-0": { "Solarium\\": "library/" } } }
step 2 I use
App::import('Vendor','autoload',array('file'=>'solarium/vendor/autoload.php'));
-
almost 9 years ago
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]
-
-
almost 9 years ago
i followed this link until i have this ERROR where Iam stack now..
http://findnerd.com/account/#url=/list/view/Solr-integration-in-CakePHP-with-solarium-client/1946/
-
-
almost 9 years ago
Include autoload.php using:
include_once("/app/Vendor/solarium/vendor/autoload.php");
You can also get code sample from:
http://findnerd.com/account/#url=/list/view/Solr-integration-in-CakePHP-with-solarium-client/1946/
Find attached SolrController.php file in above link.
-
4 Answer(s)