Using yii db config elsewhere

Can I use yii database configuration on scripts that does not belong to the actual yii application? I would like to use it for my cron jobs.

Why not do your cronjobs with CConsoleApplication? Then you can almost do everything that you can do in CWebApplication.

It’s very easy to create maintenance scripts that you can run from cron. See this section from the guide:

Thx for the advice. I’ll look into it