Theme functions
All theme specific functions (if you need any) go to CustomHelper. If your theme alias is my_theme, your CustomHelper should be placed in app/views/themed/my_theme/helpers/custom.php.
<?php
class CustomHelper extends Helper {
public function myCustomMethod() {
// code here
}
}
?>
CustomHelper is automatically loaded, so you can use it like this your views (.ctp files):
$this->Custom->myCustomMethod();
