hi
i have some vendor files
1.app/vendors/p/p.php //class file
2.app/vendors/p/pc.php //config for class
3.app/vendors/p/pk.php key for class
i have insert "p" in my controller:
App::import('Vendor','p/p');
and i am create some object from this class
$cart= new pcct($somedata);
now my problem:
in class pcct i have some function like this:
function s($value){
include 'pc.php';
1: $k=file_get_contents($k_file_name);
}
when i am call controller i see this error:
line 1: faild to open stream: no such file or directory.
Note: in pc.php i have some value for file name for pass to this function
and all file are in same place.
in pc.php i have : $k_file_name='pk.php';
how can i config $k_file_name path for this function to access that file
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php