PHP code example of folded / action
1. Go to this page and download the library: Download folded/action library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
folded / action example snippets
use function Folded\setActionFolderPath;
setActionFolderPath(__DIR__ . "/actions");
use function Folded\callAction;
callAction("home/index");
use function Folded\callAction;
callAction("home.index");
use function Folded\callAction;
callAction("home.index", [
"name" => "John",
]);
echo "Welcome, $name";