Ok, thx all, I understand now that other things are also relevant to
check when dealing with sessions. Later this day I'll try to check all
my images. I just tried a small test with 2 new actions that only
respectively set a session_VAR + redirect, and die/print_r the
Session. This seems to work, so the problem has to be somewhere else.
I do think that this is kind of a strange behaviour, certainly not
intuitive. No View related stuff should screw up my Controller's
behaviour, agree? That's part of the whole point using a MVC for
starters... Hey, but I still love Cake, only wondering wether this
could be considered a bug?

On Jun 24, 3:20 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> If you refer to a file that does not exist in your webroot, then cake
> assumes it is a controller action and runs it through the dispatcher.
> So requesting /img/image_that_exists.jpg will return "/app/webroot/img/
> image_that_exists.jpg", whereas requesting /img/nonexistant_image.jpg
> will attempt to run the ImgController::nonexistant_image action (and
> will give a "Missing controller" error if your DEBUG > 1, 404
> otherwise).
>
> In both of your cases, the problem will be a relative image path being
> used.  So if you are in the /users/index action and have an image link
> to "img/something.jpg", the browser will see this as /users/index/img/
> something.jpg - and this will run through your /users/index action
> again.
>
> The solution - don't use relative images, and try to always use the
> Html Helper.  With the favicon - check in your layout as sometimes
> there is a favicon link in the <head> tags, and for some reason this
> will currently have a relative path (it shouldn't).
>
> And finally, BoSc, I didn't reply to your original query because it
> was too verbose, and in the 30 seconds I gave it I couldn't understand
> your problem.  Your reply to John was much more succinct :P


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