Skip to content

Instantly share code, notes, and snippets.

@fritz0705
Created February 26, 2010 20:41
Show Gist options
  • Save fritz0705/316133 to your computer and use it in GitHub Desktop.
Save fritz0705/316133 to your computer and use it in GitHub Desktop.
diff --git a/class/Controller.php b/class/Controller.php
index 86d7624..2ac69e3 100755
--- a/class/Controller.php
+++ b/class/Controller.php
@@ -66,5 +66,14 @@ abstract class Controller {
* the main Controller View
*/
public abstract function index();
+
+ /**
+ * a method by the controller --Fritz
+ *
+ * @author Fritz Grimpen <fgrimpen@t-online.de>
+ */
+ public function render($view = null) {
+ $this->smarty->display($this, $view);
+ }
}
-?>
\ No newline at end of file
+?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment