Rendering from a console command was kind of a pain, after figuring that out I realized that all of the urls in the views are incorrect…
code:
<?php echo Yii::app()->createAbsoluteUrl('/inspection/view', array('id'=>$inspection->id)); ?>
which generates:
http:///var/www/vhosts/thewebsite.com/httpdocs/protected/yiic?r=inspection/schedule&id=18846
What is the preferred method of rendering a view in a consolecommand? I’m about ready to just make a controller action and have cron call a url instead of a command.