All pastes #73003 Raw Edit

Miscellany

public php v1 · immutable
#73003 ·published 2006-06-27 09:43 UTC
rendered paste body
<?phpclass VenuesController extends AppController {    var $name = 'Venues';    var $components = array('Menu','Pages');    var $uses = array('Word', 'Region', 'Venue');    // removed AD7six var $recursive = 2;        function index()    {        $this->pageTitle .= ' &raquo; Venues';                // pagination        $this->Pages->init($this->Venue);        $this->Pages->itemsPerPage = 10;        $this->Pages->currentPage = isset($this->params['pass'][0]) ? $this->params['pass'][0] : 0;        $this->Pages->relativePath = '/venues/';        $this->set('Pages',$this->Pages);                // display the defined resultset// Added AD7six$this->Word->recursive = 2;// End AD7six        $this->set('data',$this->Word->findAll(array('Word.preferred' => 1, 'Word.tour_id' => 0), null, 'Word.word asc', $this->Pages->itemsPerPage, $this->Pages->currentPage));    }}?>