wow! never thought of something like that. I have replaced all relative paths with $html & $javascript helpers. It works now. Except sometimes favicon comes back again - and I don't know how to actually use any helper to have <link rel="shortcut icon" href="/*favicon*.ico" /> included.
Thanks alot Grant, anyhow, I was about to go ku-ku on this one. d On 9/20/07, Grant Cox <[EMAIL PROTECTED]> wrote: > > > Your action is creating a file for every request made to that action. > > 1.thtml -> because you requested /test/test/1 > css.thtml -> because your browser is requesting /test/test/css > (probably /test/test/css/cake.default.css or similar) > js.thtml -> because your browser is requesting /test/test/js > favicon.ico.thtml -> because your browser is requesting /test/test/ > favicon.ico > > I don't know why for some request you get the css and js, and some > just the favicon. Check the generated source, it should be pretty > obvious. However, the problem is just that I doubt any of these last > three are what you are expecting - the reason your browser is making > those requests is because you have relative links in your html > source. When your browser views a page at /test/test/1 , and this > links to "css/something.css", then the browser requests /test/test/css/ > something.css . > > So basically, just don't use relative links to your js / css / > favicon. > > > On Sep 20, 6:57 am, "Danijel Kurinčič" <[EMAIL PROTECTED]> > wrote: > > THIS CODE: > > > > class TestController extends AppController { > > var $name = 'Test'; > > > > function test($a=null, $b=null){ > > $path_to_rendered='C:\appname\app\views\novice/'.$a.'.thtml'; > > file_put_contents($path_to_rendered, 'test'); > > $this->render('test'); > > > > } > > > > } > > > > on the url 'http://localhost/appname/test/test/1/1' > > PRODUCES THREE FILES in the folder specified: > > - file 1.thtml > > - file css.thtml > > - and file js.thtml > > it on the other hand produces TWO files if I pass only ' > http://localhost/appname/test/test/1', > > named 1.thtml, and favicon.ico.thtml. > > > > Now someone tell me, this is not a "divine intervention". > > > > :( > > > > note that > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---