plugins - Unable to load "sfFacebookConnectHelper.php" helper -


im trying build fb application demo sffacebookconnectplugin this tutorial , have trivial problem, still cannot fix (iam symfony novice using 1.4). have installed plugins terminal commands:

  • sfdoctrineguardplugin
  • sffacebookconnectplugin

i have them activated in:

class projectconfiguration extends sfprojectconfiguration {   public function setup()   {       if (function_exists('date_default_timezone_set')) {         date_default_timezone_set(@date_default_timezone_get());       }     $this->enableplugins('sfdoctrineplugin');     $this->enableplugins('sfbehatplugin');     $this->enableplugins('sfdoctrineguardplugin');     $this->enableplugins('sffacebookconnectplugin');   } } 

but when iam using in layout:

<?php use_helper('sffacebookconnect')?> 

im getting error:

unable load "sffacebookconnecthelper.php" helper in: sf_root_dir/apps/frontend/modules/main/lib/helper, sf_root_dir/apps/frontend/lib/helper, sf_root_dir/lib/helper, sf_symfony_lib_dir/helper. 

while helper present in /home/palmic/www/behattest/plugins/lib/helper/sffacebookconnecthelper.php

how tell symfony load there?

thanx!

as temporary fix (until developers wrote plugin move helper), can create own sffacebookconnecthelper file in sf_root_dir/lib/helper contains following code:

<?php require_once dirname(__file__) . '/../../plugins/sffacebookconnectplugin/lib/sffacebookconnecthelper.php'; 

that path might wrong, point wherever helper is.

then can still use <?php use_helper('sffacebookconnect')?> in code, , when real helper gets moved correct folder, delete file.

also, small tip. instead of calling $this->enableplugins() repeatedly in projectconfiguration file, can this:

$this->enableplugins(array(   'sfdoctrineplugin',   'sfbehatplugin',   'sfdoctrineguardplugin',   'sffacebookconnectplugin' )); 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -