Thursday, September 30, 2010

Include a PHP file in symfony

Sometimes you might want to include a file from an external library in symfony.

Copy the according library (third_party_lib) in symfony_project_folder/lib. To include a file from this folder in another php file do:

include_once sfConfig::get('sf_lib_dir')."/third_party_lib/File.php";

0 comments:

Post a Comment