Wiki

Articles tagged with "console"X
Displaying 1-6 of 6 result(s).

How to implement cron in Yii 2

Created 3 months ago by hemcHow-tos7 comments – viewed 3,401 times – ( +6 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Cron Jobs in Yii

Created about a year ago by aarondfrancisHow-tos1 comment – viewed 12,131 times – ( +4 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Rendering a view file in a console application

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

Autocomplete in console command

Created 2 years ago by StammTutorials1 comment – viewed 6,878 times – ( +3 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.

Run Yiic directly from your app without a shell

Created 2 years ago by jacmoeHow-tos5 comments – viewed 19,721 times – ( +17 ) – version 1.1
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.

How to customize error handling in console-mode applications

Created 3 years ago by Steve FriedlHow-tos1 comment – viewed 8,259 times – ( +3 ) – version 1.1
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.