php Fat Free, how to use captcha plugin

1.1k Views Asked by At

I can't use the Captcha plugin provided by Fat Free

Please help me

F3::route ( 'GET /captcha',captcha);

function captcha(){
    F3::captcha(100,100,8);
}
3

There are 3 best solutions below

1
On
1
On

It should be:

F3::route ( 'GET /captcha','captcha');

0
On

Let F3 know where your fonts folder is

I have following in my index.php file

define('ROOT',realpath(__dir__.'/../').'/');

F3::set('FONTS',ROOT.'fonts/');