-1

I am using cakephp 2.9 version. I have created custom folder "test" out side controller directory with test.php file. I want to load component in cakephp. I have tried to load using but it's giving me errors.

use Cake\Core\App; App::uses('DataImport', 'Controller/Component');

Please suggest if anyone knows.

Thanks

Harshal K
  • 27
  • 1
  • 5

1 Answers1

-1

You are breaking the CakePHP MVC principals

I encourage you to take a look at that post

Community
  • 1
  • 1
beta-developper
  • 1,689
  • 1
  • 13
  • 24