If a controller is going to do a simple action and then send a flash,
does there need to be a view?

I'm creating a login/logout script, and the logout action just removes
the logged in key from the session and flashes the user to the home
page, yet when it gets back to the home page, it can't initialize the
home controller. It gives the 'Fatal: Unable to load controller' error,
but the home page works other times.

I think it might be because I didn't create a view for the logout
action, but I'm not sure.

I've only been messing with cake for about a week now, and this is the
first project I'm trying to do that doesn't mirror the tut's, so I'm
still getting used the in's and out's of cake. Would having the link in
the flash end in '/' cause a problem,

 i.e. $this->flash('You are now logged out. Click here to return to the
home page.', '/newsblogs/index/');

I've tried it with and without the ending '/', but with the same
results.

As a side note,  I randomly get the 'Fatal: Unable to load controller'
error, mainly on my 'index' page, and I just have to refresh the page
and it works. What would be the reason for that as well? Is it a bug in
cake?

Let me know if you want to see some code.


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

Reply via email to