Skip to content

majiidd/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'); ?>

About

CakePHP JalaliDate Plugin

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%