Browse Source

Adding CertificateController and CourseHomeController (not used yet) + adding comments

Julio Montoya 12 years ago
parent
commit
8cd8f8145c

+ 1 - 1
certificates/index.php

@@ -7,7 +7,7 @@
 
 /**
  * Initialization
- * @todo replace me with a controller
+ * @todo replace me with a controller!
  */
 
 $language_file= array('admin', 'gradebook', 'document');

+ 1 - 0
sincro/index.php

@@ -8,6 +8,7 @@
  */
 /**
  * Initialization
+ * @todo replace this folder with a controller
  */
 $language_file = 'admin';
 $cidReset = true;

+ 21 - 0
src/ChamiloLMS/Controller/CertificateController.php

@@ -0,0 +1,21 @@
+<?php
+
+namespace ChamiloLMS\Controller;
+
+use Silex\Application;
+use Symfony\Component\HttpFoundation\Response;
+
+/**
+ * Class LearnpathController
+ * @package ChamiloLMS\Controller
+ */
+class CertificateController
+{
+    public function indexAction()
+    {
+        /*$certificate = new Certificate($_GET['id']);
+
+        //Show certificate HTML
+        $certificate->show();*/
+    }
+}

+ 21 - 0
src/ChamiloLMS/Controller/CourseHomeController.php

@@ -0,0 +1,21 @@
+<?php
+
+namespace ChamiloLMS\Controller;
+
+use Silex\Application;
+use Symfony\Component\HttpFoundation\Response;
+
+/**
+ * Class LearnpathController
+ * @package ChamiloLMS\Controller
+ */
+class CourseHomeController
+{
+    public function indexAction()
+    {
+        /*$certificate = new Certificate($_GET['id']);
+
+        //Show certificate HTML
+        $certificate->show();*/
+    }
+}