summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/TWsatScaffolding.php
diff options
context:
space:
mode:
authorDaniel <darthdaniel85@gmail.com>2014-10-24 13:11:17 -0500
committerDaniel <darthdaniel85@gmail.com>2014-10-24 13:11:17 -0500
commita7d2609ab842b9002c6225fb54462d416e0b9673 (patch)
tree4ae7d06a8587dcc77a3f665bd70670e3484e4c1b /framework/Wsat/pages/TWsatScaffolding.php
parenta31c1f2ff0f4c996e0b90b1743b775af4cf58e6a (diff)
Scaffolding 12%
Diffstat (limited to 'framework/Wsat/pages/TWsatScaffolding.php')
-rw-r--r--framework/Wsat/pages/TWsatScaffolding.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php
index 9bbeec3a..2dc7d288 100644
--- a/framework/Wsat/pages/TWsatScaffolding.php
+++ b/framework/Wsat/pages/TWsatScaffolding.php
@@ -39,10 +39,21 @@ class TWsatScaffolding extends TPage
{
if ($this->IsValid)
{
- $scf_generator = new TWsatScaffoldingGenerator();
- // echo $this->cb_student->Text;
- // $scf_generator->renderAllTablesInformation();
+ try
+ {
+ $scf_generator = new TWsatScaffoldingGenerator();
+ $scf_generator->setOpFile($this->output_folder->Text);
+ $scf_generator->generate();
+ $this->feedback_panel->CssClass = "green_panel";
+ $this->generation_msg->Text = "The code has been generated successfully.";
+ } catch (Exception $ex)
+ {
+ $this->feedback_panel->CssClass = "red_panel";
+ $this->generation_msg->Text = $ex->getMessage();
+ }
+ $this->feedback_panel->Visible = true;
}
- }
+ // $scf_generator->renderAllTablesInformation();
+ }
} \ No newline at end of file