logo
down
shadow

Fatfree Framework error 404 on every route


Fatfree Framework error 404 on every route

By : user2949263
Date : November 16 2020, 06:23 AM
will be helpful for those in need Turns out I had to autoload in another way,
insted of AUTOLOAD=public/pages/ on config.ini, I had to use $lod->set('AUTOLOAD','public/pages/'); after the require_once and before the routes.
code :


Share : facebook icon twitter icon
.htaccess multiple php handlers based on URL - fatfree framework multiple route files

.htaccess multiple php handlers based on URL - fatfree framework multiple route files


By : Swarnalekha Khandker
Date : March 29 2020, 07:55 AM
I wish this help you I'm a bit of a noob when it comes to htaccess files, so I need some assistance. I'm using PHP's fatfree framework (f3), and have modified its htaccess file to suit my needs, until now. , This should take care of #3:
code :
RewriteCond $1 !^(api|auth)
RewriteRule ^(.*)$ /index.php/$1 [L]
How do I pass arguments in a route when defined in ini files in fatfree framework?

How do I pass arguments in a route when defined in ini files in fatfree framework?


By : twyfdsf
Date : March 29 2020, 07:55 AM
wish helps you In your .ini file, you can pass all the arguments of the route() method, separated by commas:
code :
GET /foo=class->method //ttl=0, kbps=0
GET /foo=class->method,86400 //ttl=86400, kbps=0
GET /foo=class->method,0,56 //ttl=0, kbps=56
GET /foo/@arg1/@arg2=myClass->myMethod
class myClass {
  function myMethod($f3,$params) {
    echo $params['arg1'];
    echo $params['arg2'];
  }
}
[globals]
CACHE=TRUE
fatfree framework cant route post with token

fatfree framework cant route post with token


By : user2701678
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further you must define GET route instead of POST if you need to access in browser without POST data too. Here is the example.
code :
$f3->route('GET|POST /brew/@count',
    function($f3) {
        echo $f3->get('PARAMS.count').' bottles of beer on the wall.';
    }
);
f3/Fatfree framework - Error on route second param

f3/Fatfree framework - Error on route second param


By : lucian howard
Date : March 29 2020, 07:55 AM
will be helpful for those in need The answer to your question is probably on user's guide page:
code :
$f3->route( 
    array(
        'GET /index.php/@ctrl/@test', 
        'GET /index.php/@ctrl'
    ),
    function($f3) { 
        ... 
    });
How to pass arguments on Main Route in FatFree Framework

How to pass arguments on Main Route in FatFree Framework


By : Sunny Chowdhury
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Assuming you have a landing page at mysite.org, you are most likely going to have a route that serves it similar to below;
code :
GET /=MainController->render
`<li><a href="{{ @BASE . '/main/cat2/subcat0'}}"><i class=""></i> SecondCategory</a></li>`

`<li><a href="{{ @BASE . '/main/cat2/subcat1'}}"><i class=""></i> Subcategory-1</a></li>`
GET /main/cat@cat_id/subcat@subcat_id=MainController->displaylink
$cat_id = $f3->get('PARAMS.cat_id')
$subcat_id = $f3->get('PARAMS.subcat_id')
Related Posts Related Posts :
  • New to PHP, trying to extract information from another website
  • JavaScript AmChart to Image for Email
  • Is javascript validation enough to keep my forms secure?
  • Regex extract variables from [shortcode]
  • Download a .mp3 link and save it to computer with PHP
  • Error with the ereg_replace
  • Getting the fields attached to a bundle of an entity in Drupal
  • Php how to check multiple times (within `foreach`) if values from array exists in mysql?
  • MySQL and PHP parsing strange string
  • Pull specific data from multidimensional associative array
  • How to get the original URI extension using PHP Tonic?
  • Upload videos and images from Android to PHP server?
  • Unset a multidimensional array with another multidimensional array with values than key
  • Calling a user e-mail to add to a mailto link PHP
  • Why is override_function coming back as an undefined function
  • PHP mySQLi_fetch_all: iterate through each row
  • Using pow in php
  • What's wrong with my PHP Script? T_String issue
  • how to call a function of another file without including that file
  • is_rgb function in php
  • transform the numbers to letters using php
  • How to catch an exception from another class method PHP
  • PHP exec is blocked by ISP
  • PHP4 to PHP5 migration character encoding. latin1 vs utf8
  • Begin Transaction not defined
  • How much harm can a user do with xss on a page unique to them?
  • How to import data from a php file to javascript variable
  • PHP and Javascript - log complete workflow
  • When I echo !!! 0 it gives me a strange result
  • jquery ajax post dies after submit
  • How to upload file with curl on sftp server
  • Advanced search using a text input to search through only one category
  • Why do I get "Non-static method App\Models\Category::products() should not be called statically" in laravel
  • Stop notices from undefined indexes in arrays
  • PHP Excel Error when entering SUM function to a cell
  • laravel 4 eloquent eager load relation count
  • click submit in html and run php code
  • Extremely frustrating behavior with Internet Explorer, Bootstrap and Respond.js
  • Vkontakte vtag issues
  • Divide the number to a correct decimal
  • mysqli_insert_query not working
  • How to make a sitemap using zend framework 1
  • Laravel: array to Model with relationship tree
  • $_SERVER['DOCUMENT_ROOT'] vs $path = $_SERVER['DOCUMENT_ROOT']
  • What is the best way to store multiple checkbox values in the database and work with it later on
  • Why does foreach copy the array when we did not modify it in the loop?
  • Receive Jquery/Ajax Post Request in PHP
  • How to better use the if(!empty()){ //codes} statement
  • PHP error mysql_close() boolean given
  • Move an image file from one server to another using PHP
  • PHP: Encoding non ISO-8859-1 charactrers into utf8
  • Handling MySQL errors in PHP
  • Object orientated mysql num_rows query in one line
  • Remove not closed html elements from end of text
  • Generate random ENUM value [PHP, MySQL]
  • Deleting data from table using jQuery and SQL
  • How to make sure the constructor is executed when I'm trying to reach a static property?
  • Trying to understand arrow next to PHP function
  • Form using external php file to show "Sucess"
  • WooCommerce - new shipping method - how to query individual product weights
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org