Posts

Showing posts with the label Fat-Free Framework

Fat-Free Framework - Blank Page Error

Was trying getting started with Fat-Free just now, but found that the page wasn't loading at all, or more accurately, a blank page was shown. I added a dummy echo before the template echo, echo "Hello World!"; echo Template::serve('welcome.htm'); and found that the echo is printed, but not everything else in the welcome.htm After debugging, I found out that its caused by {{ Web::minify('ui/',array('style.css'),FALSE) }} The page displays correctly, without css style, after removing that line, and clear the cache . To solve this, its relatively easy. Just need to enable php_sockets in you PHP extension . Then clear the  /cache folder . Hope that save the your time for some of you out there as well! :)

Fat-Free Framework

There are many frameworks out there that help to speed up web development. However, many frameworks has grown too complex and fat because there are too many unused classes and functions in it. Heres a good write-up on the comparison between various PHP framework, and the memory that they used. http://www.laurencegellert.com/2011/06/memory-usage-in-php-frameworks/ Came across this particular framework, called Fat-Free Framework . http://fatfree.sourceforge.net It is interesting because its designed ground up for PHP5.3,  in-built ORM DB support, (i.e. SQL) in-built NoSQL support, (i.e. MongoDB ) super small footprint,  Will do a write-up again after hands-on with this new framework.