コード例 #1
0
    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);	
    }
コード例 #2
0
 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);
 }