phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Semantic.php
Go to the documentation of this file.
1<?php
2
3namespace Ajax;
4
12
15
16 private $language;
17
18 public function __construct($autoCompile=true) {
19 parent::__construct($autoCompile);
20 }
21
22
23 public function setLanguage($language){
24 if($language!==$this->language){
25 $file=\realpath(dirname(__FILE__)."/semantic/components/validation/languages/".$language.".js");
26 if(\file_exists($file)){
27 $script=\file_get_contents($file);
28 $this->js->exec($script,true);
29 $this->language=$language;
30 }
31 }
32 }
33}
setLanguage($language)
Definition Semantic.php:23
__construct($autoCompile=true)
Definition Semantic.php:18
BaseGui Phalcon library.
Definition BaseGui.php:18