Yii-App : Why are global functions not available to the console?
Main.php has an import for helpers
'import' => array(
'application.helpers.*',
I also noticed the web/index.php is importing the global.php directly but not importing in yiic.php
require(__DIR__ . '/../app/helpers/global.php');
Does import only import classes?