To specify, here is the error:

Fatal error: Class 'CommandParser' not found in /home/dave/www/
goontastic/app/controllers/channels_controller.php on line 61

So it's not seeing the 'class' but I am including it in the components
array. This for 1.2 RC3.

On Oct 15, 3:04 pm, Chez17 <[EMAIL PROTECTED]> wrote:
> I am having some issues getting what you said to work. It must be a
> syntactical problem, I can't get something like
> CommandParser::processCommand() to return anything.
>
> Here is the code:
>
> /controllers/components/command_parser.php
>
> <?
> class CommandParserComponent extends Object {
>
>     function processCommand($command)
>     {
>         return $command; //just to test if it's working
>     }}
>
> ?>
>
> /controllers/channels_controller.php
>
> var $components = array('RequestHandler','CommandParser');
> ...
> function command()
>     {
>         $command = str_replace(array("\r", "\n", "\t", "/"), '', 
> $this->data['Comment']['comment']);
>
>         $result = CommandParser::processCommand($command);
>
>         $this->set('command', $result);
>         $this->render('view');
>     }
>
> This is just to test if it's working, and I can't get anything to
> print when command is called. I am almost positive I have followed
> what you suggested correctly, can't seem to figure this out. As
> always, any help is appreciated.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to