Tuesday, January 22, 2013

Vendor Help

I am trying to simply add a "dummy" class to get me started. Make sure I am actually doing it correct/ clearly something is wrong.

But the following below results in:

Fatal error: Class 'Dummy' not found in………..

 

Controller:

App::import('Dummy', 'Vendor', array('file' => 'dummy.php'));

 

public function index(){

            $dummy = new Dummy();

}

 

Vendors / dummy.php

<?php

            class Dummy{

}

 

Where I am going wrong?

Thanks,

 

Dave

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate