Wiki

Articles tagged with "console", sorted by commentsX
Displaying 1-5 of 5 result(s).

Run Yiic directly from your app without a shell

Created about a year ago by jacmoeHow-tos5 comments – viewed 11,131 times – ( +15 )
Sometimes it would be nice if we could run yiic from an action, for example a migrate database button in our admin panel. Or because you are on a host which doesn't have shell access. Or maybe you are not allowed run popen or exec.

Autocomplete in console command

Created about a year ago by StammTutorials1 comment – viewed 5,283 times – ( +3 )
Missed of autocomplete in bash console commands yii make me sad.

Rendering a view file in a console application

Created about a year ago by TompiHow-tos1 comment – viewed 4,358 times – ( +2 )
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

How to customize error handling in console-mode applications

Created 2 years ago by Steve FriedlHow-tos1 comment – viewed 5,625 times – ( +3 )
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.

Cron Jobs in Yii

Created 15 days ago by aarondfrancisHow-tos1 comment – viewed 2,721 times – ( +2 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.