public function read($url) { // get the page record (also within this record contains the library used, which is important) // TODO: make read conditions?? $record = Block::find('first', array('conditions' => array('url' => $url))); // Return an array. No rendering. return array('record' => $record); }
public function read($url) { $record = Block::find('first', array('conditions' => array('url' => $url, 'options.is_menu' => true))); // Return an array. No rendering. return array('record' => $record); }