summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/Login.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/Login.php')
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/Login.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/Login.php b/demos/time-tracker/protected/pages/TimeTracker/Login.php
index aa12e716..d8c5182f 100644
--- a/demos/time-tracker/protected/pages/TimeTracker/Login.php
+++ b/demos/time-tracker/protected/pages/TimeTracker/Login.php
@@ -1,4 +1,7 @@
<?php
+
+Prado::using('Application.App_Data.ezpdo.Models.*');
+
/**
* Login Page class file.
*
@@ -23,6 +26,19 @@
*/
class Login extends TPage
{
+
+ function onLoad($param)
+ {
+ //$category = new TimeEntryCategory();
+ $ezpdo = $this->Application->Modules['ezpdo']->getConnection();
+ //$cats = $ezpdo->find('from TimeEntryCategory');
+ $category = $ezpdo->create('TimeEntryCategory');
+ //$category->Name = "Category 1";
+ //$category->Abbreviation = "CAT1";
+ var_dump($category);
+ //$ezpdo->commit($category);
+ }
+
/**
* Validates the username and password.
* @param TControl custom validator that created the event.