i have place all files in this directory
C:\wamp\www\cak2\app\plugins\facebook
and one file is copy and place config and set api key and other information
C:\wamp\www\cak2\app\config\facebook.php
Now i have create a controller
<?php
class UsersController extends AppController {
var $name ='Users';
var $helpers = array ('Session','Html','Form','Facebook.Facebook');
var $components = array('Auth');
function login() {
}
}
?>
But Missing Helper File
Error: The helper file app\views\helpers\facebook.php can not be found or does not exist.
Error: Create the class below in file: app\views\helpers\facebook.php
<?php
class FacebookHelper extends AppHelper {
}
?>
This error is there
if i right this line in bootstrap.php
CakePlugin::load('Facebook');
then this error is come Fatal error: Class 'CakePlugin' not found in C:\wamp\www\cak2\app\config\bootstrap.php on line 51
I am using 1.3 cakephp please suggest me where i am worg
Hi webtechnick
Hope you are doing well
I have problem using your plugin
i have place all files in this directory C:\wamp\www\cak2\app\plugins\facebook
and one file is copy and place config and set api key and other information
C:\wamp\www\cak2\app\config\facebook.php
Now i have create a controller
<?php class UsersController extends AppController {
var $name ='Users'; var $helpers = array ('Session','Html','Form','Facebook.Facebook'); var $components = array('Auth');
function login() {
}
}
?>
But Missing Helper File
Error: The helper file app\views\helpers\facebook.php can not be found or does not exist. Error: Create the class below in file: app\views\helpers\facebook.php <?php class FacebookHelper extends AppHelper {
} ?>
This error is there if i right this line in bootstrap.php
CakePlugin::load('Facebook');
then this error is come Fatal error: Class 'CakePlugin' not found in C:\wamp\www\cak2\app\config\bootstrap.php on line 51
I am using 1.3 cakephp please suggest me where i am worg