For the performance part of it. I think you could easily check if the
js/css files md5 hash has changed and if not use a cached version.
That way you wouldn't need to go through the dispatcher. However this
only works if the same js/css include outputs the same js/css
with no dynamic data
$this-log pasting ClassName::function() is a good idea
--~--~-~--~~~---~--~~
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,
Fase is a minimalist VC (View+Controller, no Model as so far) framework
. Roughly it does what Cake does (url passed do dispatcher, parsed into
class+method+params, run and returned).
It's quite simple -- 32 files in 8 directories, including a few CSS', 3
charset translation tables (Polish, but
For those of you who don't know, Michal Tatarynowicz (aka Pies) is the
original author of CakePHP.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
On 6/6/06, Michal Tatarynowicz [EMAIL PROTECTED] wrote:
...- All CSS and JS files are parsed with PHP by default. This not onlyallows for portable web apps, but also allows for include()'s in CSSand JS (which they sadly lack) and constants in CSS ( .Foo { color:
#5870a2 } can become .Foo { color:
Yeah, that struck me as very clever also. The thing is, even with
caching, running everything including static requests through the
Dispatcher, as fast as it is, is still a little expensive.
I'm thinking of trying a bootstrap-based proof-of-concept if no one
beats me to it.
If you want to, you can use Fase just for Javascript and CSS. Put
Fase's files in Cake's /app/webroot/fase and point the browser at it.
Assuming that your Cake app lives in www.site.com/foobar/ , this link:
link rel=Stylesheet type=text/css href=/foobar/fase/css/default
media=screen /
...is
On my application, I have made a few links to the controller
categories instead of doing categories/index.
Cake calls by default the index method, so I get the page I wanted.
But the links to images in my css and js files are broken.
I know I could handle this with routes but I like such
I might have :)
At http://sputnik.pl/dev/labs/wd/ I've put up a small fragment of an
application I am rather sure I'll forget about sooner than later, that
uses a file-based cache for HTML. I've used .htaccess to make Apache
check for the cached file without starting-up the PHP runtime:
I guess it could help, but if you've used Fase for that reason only,
the cost would probably be greater than the benefit. Fase is a
framework in itself and I recommend trying it out. But it's not at all
documented and the learning curve can be a bit steep for someone
without a lot of experience
10 matches
Mail list logo