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 [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
-~----------~----~----~----~------~----~------~--~---