0

I'm using CakePHP 2.7 and want to use a Vendor class by stating
App::uses('TCPDF', 'tecnick.com/tcpdf');

Cake complains because it is trying to load a file from the tecnick plugin.
I actually am aiming for a vendor class in /vendor/tecnick.com/tcpdf.
The confusion is obviously caused by the dot in the vendor filepath.

How do I escape the dot in App::uses()?

Bart Gloudemans
  • 1,201
  • 12
  • 27

2 Answers2

0

You can try

App::uses('TCPDF', '.tecnick.com/tcpdf.php');

Or use

App::import('vendor', 'TCPDF', array('file' => 'tecnick.com/tcpdf.php'))

Diego Fu
  • 410
  • 2
  • 10
0

You need to use App::import, plugin should be in App/Vendor folder and full stop needs to be escaped:

App::import("Vendor", "tecnick\.com/tcpdf.php");