I want to include normal php script that I have made before for another project in DefaultController.
public function indexAction()
{
include('./GenFunctions.php');
then I put GenFunctinos.php in the same directory as DefaultController, but it shows 'failed to open stream'
How can I include this script?
I understood this is the illegular way to include in the perspective of symfony2.
But I want to do this to reuse the script. please help me.
__DIR__ . '/GenFunctions.php'or/path/to/GenFunctions.php