summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon2011-03-15 18:06:03 +0100
committerSimon2011-03-15 18:06:03 +0100
commit792dff604a81be59880a8d13e687d8b596ed1f25 (patch)
treec24d9d8fee8889e98f01ed06e48e997bcc2de1f0
parentlayout updated (diff)
downloadpbs2-792dff604a81be59880a8d13e687d8b596ed1f25.tar.gz
pbs2-792dff604a81be59880a8d13e687d8b596ed1f25.tar.xz
pbs2-792dff604a81be59880a8d13e687d8b596ed1f25.zip
eigene klassen angelegt
-rw-r--r--application/Bootstrap.php2
-rw-r--r--application/modules/dev/controllers/IndexController.php6
-rw-r--r--library/Pbs/PbsSession.php14
-rw-r--r--public/media/js/jquery.min.js (renamed from public/media/js/jquery-1.5.1.min.js)0
4 files changed, 20 insertions, 2 deletions
diff --git a/application/Bootstrap.php b/application/Bootstrap.php
index fe469ce..db7b4e0 100644
--- a/application/Bootstrap.php
+++ b/application/Bootstrap.php
@@ -51,7 +51,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
}
protected function _initPlugins()
{
- $this->bootstrap('autoloaders');
+ $this->bootstrap('autoloaders');
$this->bootstrap('frontController');
$plugin = new Pbs_Controller_Plugin_Modularlayout();
$this->frontController->registerPlugin($plugin);
diff --git a/application/modules/dev/controllers/IndexController.php b/application/modules/dev/controllers/IndexController.php
index 4c9385c..ce74bc2 100644
--- a/application/modules/dev/controllers/IndexController.php
+++ b/application/modules/dev/controllers/IndexController.php
@@ -11,9 +11,13 @@ class dev_IndexController extends Zend_Controller_Action
public function indexAction()
{
// action body
+ $n = new Pbs_PbsSession();
+ $session = new Application_Model_Session();
+ $session->setID('1');
+ $n->createsession($session);
+
}
-
}
diff --git a/library/Pbs/PbsSession.php b/library/Pbs/PbsSession.php
new file mode 100644
index 0000000..1e7bf46
--- /dev/null
+++ b/library/Pbs/PbsSession.php
@@ -0,0 +1,14 @@
+<?php
+
+class Pbs_PbsSession{
+
+ public function testfunction()
+ {
+ print_a("das ist ein Test");
+ }
+ public function createsession(Application_Model_Session $session){
+ print_a($session);
+ }
+}
+
+?>
diff --git a/public/media/js/jquery-1.5.1.min.js b/public/media/js/jquery.min.js
index 6437874..6437874 100644
--- a/public/media/js/jquery-1.5.1.min.js
+++ b/public/media/js/jquery.min.js