PHP code example of mhajiloo / cakephp-jalalidate

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

    

mhajiloo / cakephp-jalalidate example snippets



class TestController extends AppController {
    public $components = ['JalaliDate.Jalali'];
	public $helpers = ['JalaliDate.Jalali'];

    public function index() {
        $this->set('jalali_date', $this->Jalali->date('l j F Y')); 
    }
}

 echo $jalali_date; 

 echo $this->Jalali->date('l j F Y');