2

I am new to CakePHP, but I've started using CakePHP 2.0. Unfortunately my host has PHP 5.2.6 and CakePHP 2 won't run. I want to add a Facebook plugin to my CakePHP 1.3 application. I downloaded the plugin into the app\plugins\facebook folder and copied facebook.php from app\plugins\facebook\config\facebook.php to app\config\facebook.php

class AppController extends AppController { 
    var $helpers    = array('Facebook.Facebook');     
}

It is reporting missing facebook helper app\views\helpers\facebook.php

<?php CakePlugin::load('Facebook'); ?> //in bootstrap.php is giving an error

Is there anything I would have done in bootstrap.php to cause this and how might I fix it?

4

1 に答える 1

-1

app/Config/bootstrap.php でプラグインを有効にします。また、appID と AppSecret を追加する必要があります。

詳細については、次のリンクで構成を確認できます

https://github.com/Pollenizer/CakePHP-Facebook-Plugin

それがうまくいくことを願っています。

于 2013-05-09T07:44:09.523 に答える