Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

mhajiloo/cakephp-jalalidate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP - Jalali Date

CakePHP Jalali Date Plugin.

#Installing via Composer

$ composer require mhajiloo/cakephp-jalalidate:"^1.0.0"

#Example In Controller:

<?php
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')); 
    }
}
?>

In View:

<?php echo $jalali_date; ?>
<?php echo $this->Jalali->date('l j F Y'); ?>