@ Krommenaas: I tried using echo directly, but it pops up an error saying missing index view. could you pls post a code snippet on how your controller would look if you were to simply echo 'Hello'?
On Apr 19, 10:30 am, Krommenaas <[EMAIL PROTECTED]> wrote: > Hi, > > Yes you can simply use "echo" inside your controller action, and end > it with "exit". I do this for example in data maintenance actions (for > site admins only). > > This is actually one of the reasons why I abandoned Ruby on Rails for > Cake; I once asked on a Rails forum why the Ruby equivalent of "echo" > wasn't working inside a controller action, and was told that they had > deliberately disabled it to force you to follow the Rails method. > > (to the other repliers) Imo a framework is a toolbox and you should > just use the tools you want and not be forced to use the whole > package. For example, I recently got frustrated with making select > queries with CakePHP's find methods - for complex queries they're just > a hindrance imo - and decided to make all my select queries with SQL > statements again. I also use my own authing and pagination. Still, I > love many of CakePHP's other features and the fact that it doesn't > force me to use everything is imo its best feature. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
