Wiki

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

How to implement cron in Yii 2

Created 2 years ago by hemcHow-tos10 comments – viewed 43,103 times – ( +10 ) – 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

Run Yiic directly from your app without a shell

Created 5 years ago by jacmoeHow-tos6 comments – viewed 32,888 times – ( +18 ) – 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.

Autocomplete in console command

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

Rendering a view file in a console application

Created 5 years ago by TompiHow-tos1 comment – viewed 11,517 times – ( +4 / -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.

Console Based CAuthManager Helper

Created about a year ago by bluyellHow-tos1 comment – viewed 4,563 times – ( +1 ) – version 1.1
This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.

How to customize error handling in console-mode applications

Created 5 years ago by Steve FriedlHow-tos1 comment – viewed 11,608 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.

Cron Jobs in Yii

Created 3 years ago by aarondfrancisHow-tos1 comment – viewed 21,116 times – ( +4 ) – version 1.1
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Interactive mode command-line command for Yii1

Created 15 days ago by TrejderHow-tos0 comments – viewed 1,174 times – version 1.1
For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.