Yii-App : Why Are Global Functions Not Available To The Console?

Yii-App : Why are global functions not available to the console?

Main.php has an import for helpers

    'import' => array(


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?

You can alter yiic.php to suit your needs and make config/main.php and config/console.php more similar. Console config is thin by default because most included staff is only web related, like widgets.