Skip to content

Instantly share code, notes, and snippets.

@joshtronic
Created October 3, 2010 20:46
Show Gist options
  • Save joshtronic/608919 to your computer and use it in GitHub Desktop.
Save joshtronic/608919 to your computer and use it in GitHub Desktop.
PICKLES Private Module Function
<?php
class search extends Module
{
public function __default()
{
// Pulls all the active cities
$city = new City('list', array('fields' => 'slug, name', 'conditions' => array('active' => '1')));
$cities = array_merge(array(null => 'select your city'), $city->records);
return array('cities' => $cities);
}
private function someSecretFunction()
{
// I won't run unless I'm called!
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment