hello  feelexit
Are you calling your function like this?

function checktags() {
        return 'Bravo!';
}

function add() {
  $retVal = $this->checktags();
}

> -----Messaggio originale-----
> Da: [email protected] 
> [mailto:[EMAIL PROTECTED] Per conto di feelexit
> Inviato: lunedì 26 marzo 2007 10.46
> A: Cake PHP
> Cc: [EMAIL PROTECTED]
> Oggetto: where to put my functions ?
> 
> 
> in the posts_controller.php file,  I have a function called  funcation
> add() to add new posts.  inside add function, i want to call 
> another function checktags(), where do i write this function. 
>  I place it in the posts_controllers.php file, and get this 
> error  message.
> 
> Fatal error: Call to undefined function checktag() in 
> D:\AppServ\www 
> \blog\resourceforge\app\controllers\posts_controller.php on line 35
> 
> btw, what does components (the one inside controller folder) do?
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to