Fixed a bug when generating with the ZendModels Module.

Created some blank required directories and files.
Esse commit está contido em:
felipenmoura
2010-02-20 01:16:44 +00:00
commit 371848cb97
+7 -3
Ver Arquivo
@@ -472,7 +472,7 @@
$def= (substr($cur->defaultValue, 0, 5)=='Exec:')? '': preg_replace('/^\'|\'$/', '', $cur->defaultValue);
$value = $edit ? "<?php echo \$this->".$name."['".$cur->name."']; ?>" : $def;
$label = isset($cur->comment) ? $cur->comment : $this->prepareLabelName($cur->name);
$textarea = $cur->type == 'text' ? true : false;
$textarea = ($cur->type == 'text' || $cur->size > 200) ? true : false;
if($cur->type== 'time')
{
$dateInputs[]= $cur->name;
@@ -496,7 +496,7 @@
{
if($textarea){
$content.= $this->setTabText(3)."<textarea name='".$cur->name."'";
$content.= " id='".$cur->name."'>".$value."</textarea> \n";
$content.= " id='".$cur->name."' style='width:360px; height:210px;'>".$value."</textarea> \n";
}else{
$content.= $this->setTabText(3)."<input name='".$cur->name."' value='".$value."'";
if($cur->size > 0)
@@ -727,14 +727,18 @@
$referenceds = $this->getReferences($tableObject);
$folder = $this->prepareFolderName($name);
$this->fw->mkDir('project_name/application/views/scripts/'.$folder);
$this->fw->mkDir('project_name/application/views/scripts/'.strtolower($folder));
//Add
$this->fw->mkFile('project_name/application/views/scripts/'.strtolower($folder).'/add.phtml','');
$this->fw->mkFile('project_name/application/views/scripts/'.$folder.'/add.phtml','');
//Edit
$this->fw->mkFile('project_name/application/views/scripts/'.strtolower($folder).'/edit.phtml','');
$this->fw->mkFile('project_name/application/views/scripts/'.$folder.'/edit.phtml','');
//List
$this->fw->mkFile('project_name/application/views/scripts/'.strtolower($folder).'/list.phtml','');
$this->fw->mkFile('project_name/application/views/scripts/'.$folder.'/list.phtml','');
//bodyAdd.phtml
@@ -861,4 +865,4 @@
$this->knowledge= $project->knowledge;
}
}
?>
?>