php - Trouble importing file with CakePHP -


i'm trying import phpquery 1 of controllers i'm getting errors. saved in vendors folder , plugins folder.

i've tried adding following itemscontroller , none have worked

include_once(__dir__.'/vendors/phpquery.php');   app::uses('phpquery', 'vendor');  app::import('phpquery', 'vendor'); 

all of result in either error of not finding method or

error: application trying load file phpquery plugin 

i tried placing in plugins folder , i'm having luck.

importing vendor files (especially if not stick regular conventions, one class per file), requires variants of 'normal' app::import()

this section in documentation describes variants: loading vendor files

i tested one, , worked without problems;

app::import('vendor', 'phpquery'); 

(loads 'app/vendor/phpquery.php')


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -