PHP code example of bomi / mvcat

1. Go to this page and download the library: Download bomi/mvcat 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/ */

    

bomi / mvcat example snippets


use bomi\mvcat\service\Mvcat;
 implementation to find a language

Mvcat::build("manifest.json") 
	->language($language)
	->execute(function(int $code, Exception $exception = null){
		if ($code !== 200) {
			echo $exception->getMessage();
		}
	});

echo ${View::VIEW_RENDER};

echo $this->view("users/form.inc", $params, "main");

echo $this->view("users/form.inc", $params);

$this->getRequestContext()->getMethod(); // POST, GET, PUT, DELETE, OPTIONS
$this->getRequestContext()->getPostData; // post data
$this->getRequestContext()->getGetData;  // get data