Skip to content
This repository
Browse code

Adding new callbacks - testing them out.

  • Loading branch information...
commit 3fe79564b5f4803b2df76ba104c919877066ecbb 1 parent d8c6594
Mark Story authored October 01, 2011

Showing 1 changed file with 22 additions and 0 deletions. Show diff stats Hide diff stats

  1. 22  lib/Cake/View/Helper.php
22  lib/Cake/View/Helper.php
@@ -754,6 +754,28 @@ public function afterLayout($layoutFile) {
754 754
 	}
755 755
 
756 756
 /**
  757
+ * Before render file callback. Called before any view fragment is rendered.
  758
+ *
  759
+ * Overridden in subclasses.
  760
+ *
  761
+ * @param string $viewFile The file about to be rendered.
  762
+ * @return void
  763
+ */
  764
+	public function beforeRenderFile($viewfile) {
  765
+	}
  766
+
  767
+/**
  768
+ * After render file callback. Called before any view fragment is rendered.
  769
+ *
  770
+ * Overridden in subclasses.
  771
+ *
  772
+ * @param string $viewFile The file about to be rendered.
  773
+ * @return void
  774
+ */
  775
+	public function afterRenderFile($viewfile) {
  776
+	}
  777
+
  778
+/**
757 779
  * Transforms a recordset from a hasAndBelongsToMany association to a list of selected
758 780
  * options for a multiple select element
759 781
  *

0 notes on commit 3fe7956

Please sign in to comment.
Something went wrong with that request. Please try again.