Permalink
Browse files

Adding new callbacks - testing them out.

  • Loading branch information...
1 parent d8c6594 commit 3fe79564b5f4803b2df76ba104c919877066ecbb @markstory markstory committed Oct 2, 2011
Showing with 22 additions and 0 deletions.
  1. +22 −0 lib/Cake/View/Helper.php
@@ -754,6 +754,28 @@ public function afterLayout($layoutFile) {
}
/**
+ * Before render file callback. Called before any view fragment is rendered.
+ *
+ * Overridden in subclasses.
+ *
+ * @param string $viewFile The file about to be rendered.
+ * @return void
+ */
+ public function beforeRenderFile($viewfile) {
+ }
+
+/**
+ * After render file callback. Called before any view fragment is rendered.
+ *
+ * Overridden in subclasses.
+ *
+ * @param string $viewFile The file about to be rendered.
+ * @return void
+ */
+ public function afterRenderFile($viewfile) {
+ }
+
+/**
* Transforms a recordset from a hasAndBelongsToMany association to a list of selected
* options for a multiple select element
*

0 comments on commit 3fe7956

Please sign in to comment.