示例#1
0
 /**
  * Set the content for a block. This will overwrite any
  * existing content.
  *
  * @param string $name Name of the block
  * @param mixed $value The content for the block.
  * @return void
  * @see ViewBlock::set()
  */
 public function assign($name, $value)
 {
     $this->Blocks->set($name, $value);
 }