Skip to content

Instantly share code, notes, and snippets.

@junichi11
Created July 29, 2011 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junichi11/1112999 to your computer and use it in GitHub Desktop.
Save junichi11/1112999 to your computer and use it in GitHub Desktop.
CakePHP Helper template
<?php
/**
* CakePHP Helper
* @author ${user}
*/
class ${name}Helper extends AppHelper {
//===============================================
// property
//===============================================
public $helpers = array();
public $settings = null;
public $view = null;
//===============================================
// constructor
//===============================================
function __construct($settings) {
$this->settings = $settings;
$this->view = ClassRegistry::getObject('view');
}
//===============================================
// callback method
//===============================================
function beforeRender() {
}
function afterRender() {
}
function beforeLayout() {
}
function afterLayout() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment