Why if I change to $html->link to <a href =''>xxx</a>, there will be no this error? Did that mean we couldn't use html helper in shell script?
On Sat, Jun 13, 2009 at 2:01 PM, AD7six <[email protected]> wrote: > > > > On Jun 13, 5:19 am, joshua <[email protected]> wrote: > > Hi Cakes, > > Is there anybody come across this problem? When I try to run cron job in > > cake console, it print out this error. > > > > PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php > on > > line 178 > > > > If I change to $html->link to <a href =''>xxx</a>, there will be no this > > error. > > > > My Shell Scripts like this: > > [code] > > class AbcShell extends Shell { > > var $uses = array('modelA' ); > > var $helpers = array('Html','Javascript'); > > > > function main(){ > > //.... > > } > > > > [/code] > > > > Is there anything I missed? Thanks in advance for your reply. > > The router isn't needed for shell access, so most likely that's the > reason it's not loaded. > > AD > > > -- Thanks Joshua --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
