framework
framework copied to clipboard
What different of other frameworks?
Hello.
I'm finding some PHP7 frameworks and see some benchmark pages. This framework looks like so fast. amazing. but I don't know other features...
So what key points of this framework? now I'm planning use to lumen because I'll make not too big product.
Hi, Thanks for your interest!
Ice really is quite different compared to the other frameworks; it isn’t just another package that you download, rather it’s a PHP module written in C like Phalcon, so you need to download a binary package for your platform or compile it from source code. It's similar to Phalcon #62, but more light. The advantage is speed, the downside is that not everything is documented, but you have the api.
I encourage you to try it ;)
Thank you reply!
Now I trying ice and read the doc, but routing doesn't work. (always show index page on hello). I using h2o and rewrite is working on lumen. I'll use this framework if it's work cause so fast and easy to write. So what can i do this problem? or ice isn't work on h2o?
You need to add rewrite rule (mruby? https://github.com/h2o/h2o/issues/740):
Example for nginx:
rewrite ^/(.*)$ /index.php?_url=/$1;
For apache:
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
or set base uri /index.php?_url=/
in the App/Bootstrap.php
, but it's not pretty (hello/index.php?_url=/user
)
$di->set('url', function () {
$url = new \Ice\Mvc\Url();
$url->setBaseUri('/index.php?_url=/');
return $url;
});
I challenged on h2o, but doesn't work it... Base url setting is worked. but yes, it is not pretty. So i will use with nginx. thanks for helping :)