Re: Controllers without Views

2008-04-20 Thread Wizardry
ThX!! On Apr 19, 2:10 pm, Krommenaas <[EMAIL PROTECTED]> wrote: > On Apr 19, 6:53 pm, Wizardry <[EMAIL PROTECTED]> wrote: > > > @ 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

Re: Controllers without Views

2008-04-19 Thread Krommenaas
On Apr 19, 6:53 pm, Wizardry <[EMAIL PROTECTED]> wrote: > @ 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'? hello"; exit; } } browsin

Re: Controllers without Views

2008-04-19 Thread schneimi
Try $this->autoRender = false; in your controller to not render any view. On 19 Apr., 18:53, Wizardry <[EMAIL PROTECTED]> wrote: > @ 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 loo

Re: Controllers without Views

2008-04-19 Thread Wizardry
@ 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"

Re: Controllers without Views

2008-04-19 Thread Wizardry
Thanks Fred, I these are good suggestions for testing out too.. On Apr 19, 12:28 am, Fred Hirsch <[EMAIL PROTECTED]> wrote: > This is just opinion (I am not a core developer), please take it with a > grain of salt: > > The framework includes the view functionality, testing it as a benchmark >

Re: Controllers without Views

2008-04-19 Thread Krommenaas
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

Re: Controllers without Views

2008-04-18 Thread Fred Hirsch
This is just opinion (I am not a core developer), please take it with a grain of salt: The framework includes the view functionality, testing it as a benchmark without the view is not a valid test (in my opinion). The only thing you are testing by doing this within a controller is to test the

Re: Controllers without Views

2008-04-18 Thread Sourabh Sharma
yeah you can create a controller without any view, you can easy put the view in the controller also. But that is the bad practice and then what is the benifit of MVC structure. We can do anything of own with cakePHP but if we follow the instruction of structure then performance of our application

Controllers without Views

2008-04-18 Thread Wizardry
Is it possible to have a controller that prints a simple 'Hello World' without having an underlying index view? In case anyone is wondering why would I want such a thing, well I wanted to test the performance of the CakePHP framework and wished to know the differences in response time for the con