public function prepare($id)
    {
        // Prepare singularity only if
        // we are on the valid screen.
        if ($this->isValidScreen()) {
            // Get model metadata values.
            $collection = $this->getModel()->getMeta($id);

            // Set model metadata as singularity values.
            $this->setValue($collection->toArray());

            // Get singularity fields and boost
            // its schema with meta values.
            $this->getFields()->boostSchemaWithValues($this->getValue());

            // Dispach singularity to the view.
            $this->manager->dispatch();
        }
    }
public function prepare($id)
    {
        // Prepare singularity only if
        // we are on the valid screen.
        if ($this->isValidScreen()) {
            // Get model metadata values.
            $collection = $this->getModel()->getMeta($id);

            // Set model metadata as singularity values.
            $this->setValue($collection->toArray());

            // Get singularity fields and boost
            // its schema with meta values.
            $this->getFields()->boostSchemaWithValues($this->getValue());

            // Dispach singularity to the view.
            $this->manager->dispatch();
        }
    }
public function prepare ( $ id ) { // Prepare singularity only if // we are on the valid screen. if ( $ this -> isValidScreen ( ) ) { // Get model metadata values. $ collection = $ this -> getModel ( ) -> getMeta ( $ id ) ; // Set model metadata as singularity values. $ this -> setValue ( $ collection -> toArray ( ) ) ; // Get singularity fields and boost // its schema with meta values. $ this -> getFields ( ) -> boostSchemaWithValues ( $ this -> getValue ( ) ) ; // Dispach singularity to the view. $ this -> manager -> dispatch ( ) ; } }
Prepare singularity values
and dispatch to the view.

@param int $id

@return void
Prepare singularity values and dispatch to the view .