This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->loadmodel('Area'); | |
$data = $this->Area->find('list'); // OR ALL TO GET ALL ATTRIBUTES | |
$this->set('areas', $data ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click', selector-to-your-element , function() { | |
//code here .... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In languages key value for example app_es.php | |
'yyyy-mm-dd' => 'dd/mm/yyyy', | |
'Y-m-d' => 'd/m/Y', | |
//In controller: | |
$date = DateTime::createFromFormat(Yii::t('app', 'Y-m-d') , $this->date); | |
$this->date = $date->format('Y-m-d'); |
NewerOlder