Archive for February 26th, 2010

To create a helper which name consists of more than one word use the following naming convention:
12345678910111213# Helper name: MyHelper

# File name
app/views/helpers/my_helper.php

# Class name (Camel Case)
class MyHelper extends AppHelper

# In Controller (Camel Case)
var $helpers = array(’MyHelper’);

# In View (Camel Back):
$myHelper->method();


top