Last active
August 29, 2015 14:17
-
-
Save eklect/2bb13b707c8895cc7afb to your computer and use it in GitHub Desktop.
c5 → Event Functions in Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Use this function inside your controller to have it fire when you load the block. | |
//You can call any method inside the class, including action methods | |
public function on_start(){} | |
//This function fires when the view is rendered | |
//Use this function when you want to pass controller variables to the view | |
public function view(){} | |
//Use this method to fire on edit.php rendering for the block. You can set variables for the edit.php here as well | |
public function edit(){} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment