21 if(isset($_POST[
"cacheTypes"]))
22 $caches=$_POST[
"cacheTypes"];
26 foreach ($caches as $cache){
27 if($cache==
'models' || $cache==
'controllers'){
35 echo $this->jquery->compile($this->view);
39 if(isset($_POST[
"toDelete"])){
40 $toDelete=$_POST[
"toDelete"];
41 $type=\strtolower($_POST[
"type"]);
42 if($type==
'models' || $type==
'controllers'){
45 if(\file_exists($toDelete))
53 if(isset($_POST[
"type"])){
55 $toDelete=\strtolower($_POST[
"type"]);
56 if($toDelete==
'models' || $toDelete==
'controllers'){
67 $type=\strtolower($_POST[
"type"]);$filename=$_POST[
"filename"];$key=$_POST[
"key"];
68 if($type==
'models' || $type==
'controllers'){
71 if(\file_exists($filename)){
72 $content=\file_get_contents($filename);
75 $modal=$this->jquery->semantic()->htmlModal(
"file",$type.
" : ".\basename($filename));
76 $frm=
new HtmlForm(
"frmShowFileContent");
77 $frm->addTextarea(
"file-content", null,$content,
"",10);
78 $modal->setContent($frm);
79 $modal->addAction(
"Close");
80 $this->jquery->exec(
"$('#file').modal('show');",
true);
82 echo $this->jquery->compile($this->view);
87 if(isset($_POST[
"type"])){
static isPost()
Returns true if the request is sent by the POST method.
static getCacheDirectory()
static initFromFiles($folder, $type, $keyFunction=null)
static initCache(&$config, $type="all", $silent=false)