Yes, it is true.

On Sun, Jun 14, 2009 at 1:09 AM, Walther <waltherl...@gmail.com> wrote:

>
> Well, if you use <a href =''>xxx</a> then it's not using the router is
> it?
>
> Why would you want to be outputting links in a shell script anyway?
>
> On Jun 13, 10:57 am, joshua <josh...@gmail.com> wrote:
> > 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 <andydawso...@gmail.com> wrote:
> >
> > > On Jun 13, 5:19 am, joshua <josh...@gmail.com> 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
> >
>


-- 
Thanks
Joshua

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to