AndyB
Well-known member
What is the proper way to call a function?
The above code produces the following error message:
PHP:
<?php
namespace Andy\Methods\Pub\Controller;
use XF\Pub\Controller\AbstractController;
class Methods extends AbstractController
{
public function actionIndex()
{
$filesArray = scanAllDir();
}
function scanAllDir()
{
echo 'hello';
exit();
}
}
The above code produces the following error message: