Questions tagged [fat-free-framework]

Fat-Free Framework is a powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

Condensed in a single ~50KB file, F3 (as we fondly call it) gives you solid foundation, a mature code base, and a no-nonsense approach to writing Web applications. Under the hood is an easy-to-use web development tool kit, a high-performance URL routing and cache engine, built-in code highlighting, and support for multilingual applications. It's lightweight, easy-to-use, and fast. Most of all, it doesn't get in your way.

F3 supports both SQL and NoSQL databases off-the-shelf: MySQL, SQLite, MSSQL/Sybase, PostgreSQL, DB2, and MongoDB. It also comes with powerful object-relational mappers for data abstraction and modeling that are just as lightweight as the framework. No configuration needed.

Changelog

License: GPLv3

Links & References:

424 questions
8
votes
3 answers

Notice: Unknown: file created in the system's temporary directory in Unknown on line 0

I'm simply using a html form to upload a file. But I'm getting below error: Notice: Unknown: file created in the system's temporary directory in Unknown on line 0 Here's my HTML:
Azima
  • 3,415
  • 5
  • 27
  • 58
8
votes
2 answers

Class 'MongoDB' not found in fatfree (f3)

Iv recently been trying to upload my php application from xampp which i have installed on my home machine to a server. Now the code works perfectly on xampp at home and the mongodb driver works as expected, however after migrating it to the LAMP…
D3181
  • 1,917
  • 4
  • 14
  • 35
7
votes
3 answers

PHP code in FatFree template

I am trying to work with FatFree framework and trying to use the template engine. I render the template with the following code - echo Template::serve('template.php'); The problem which I'm facing is that, inside the template.php file the F3 tags…
Siddharth
  • 4,549
  • 9
  • 41
  • 68
7
votes
8 answers

Simple problem with mod_rewrite in the Fat Free Framework

I am trying to setup and learn the Fat Free Framework for PHP. http://fatfree.sourceforge.net/ It's is fairly simple to setup and I am running it on my machine using MAMP. I was able to get the 'hello world' example running just fin: require_once…
ian
  • 10,075
  • 23
  • 66
  • 95
7
votes
1 answer

Fat-Free-Framework global variables and functions

I'm new to fat free framework and i'm a little bit confused about the global variables. $f3->route('GET /@page','display'); function display($f3) { echo 'I cannot object to an object' . $f3->get('PARAMS.page'); …
Liz
  • 169
  • 3
  • 10
7
votes
1 answer

Fat Free Framework (F3): custom 404 page (and others errors)

How I can handle my 404 custom page (and possibly other errors)? I just tried in routing part to add GET /@codes /WebController->error Where my Class WebController handles error, and for 404 i solved (partially). In effect it works for…
sineverba
  • 4,473
  • 6
  • 27
  • 52
6
votes
4 answers

chmod() operation not permitted - FatFree framework

I have been developing an app in FatFree framework and now I am trying to deploy it on a server. Everything seems to be fine when I am running it on localhost. However, when I have deployed it on the server and trying to access it, it gives me a…
Siddharth
  • 4,549
  • 9
  • 41
  • 68
6
votes
3 answers

Implementing namespaces in fatfree framework

I am trying to use namespaces in fatfree framework, but somehow its not able to find the class following is my setup routes.ini [routes] GET /=Src\Controllers\Index->index index.php namespace Src\Controllers; class Index { function index($f3)…
Ketan Mujumdar
  • 113
  • 2
  • 9
6
votes
1 answer

Getting data values from form in Fat-Free framework

I'm migrating from codeigniter to Fat-Free (F3) and trying to get my head around the quirks. Regarding the following form:
user2984700
  • 73
  • 1
  • 9
5
votes
4 answers

Getting latest inserted auto-incremented record id using fat-free-framework

I need to get the id(AUTO-INCREMENTED) of latest inserted record in a table. I am using fat-free-framework. I tried to get the latest id by using $id = mysql_insert_id(); but it gave me this error Access denied for user 'root'@'localhost' (using…
Umair
  • 301
  • 4
  • 19
4
votes
1 answer

Unit Testing with Fat-Free-Framework

Is there a way to use PHPUnit where I have a test folder with indexTest.php inside that tests routes in my index.php file? The fat-free guide gives snippets of code for mocking route requests and POSTS. I have only managed to get such a test to…
itskrude
  • 65
  • 5
4
votes
1 answer

Using HTML in Fat-Free-Framework .ini files

I use Fat Free Framework with a .ini file languages dictionary. Now some languages require a different layout or HTML in a translation. If I use HTML in my .ini file, Fat Free simply (and logically) prints the HTML code instead of the parsed…
4
votes
1 answer

Can you use global variable from config file in index.php - Fat Free Framework?

I would like to set a global variable called CONTROLLERPATH in my config.ini file and then use that variable in my index.php file to route the GET requests to the correct controller in my directory structure. I am doing the following and F3 cannot…
whistler
  • 826
  • 2
  • 13
  • 30
4
votes
1 answer

F3 changes relative URi of css files

I am a newb experimenting with F3. My sample app is basically working but references to css files get changed and result in not being found. It looks like a .htaccess problem but I can't seem to fix it. My css files are specified as
meljturner
  • 155
  • 9
4
votes
4 answers

Creating an HTML form depending on database fields

I am trying to create a program that will read the structure of a database table and generate a simple HTML registration form depending on it. Like if the table looks like this: TBLUSERS - Name (varchar) - Age (int) - Birthday (date) Then it would…
user2176205
  • 51
  • 1
  • 3
1
2 3
28 29