public function newPartialAction()
    {
        $postParams = $this->params()->fromPost();
        $parentName = $postParams['parent_name'];
        $childName  = $postParams['child_name'];
        $parent     = $postParams['parent'];

        $parent = $this->getService($parentName)->find($parent);
        $child  = $this->getService($childName)->getModel();

        $child->setParent($parent);

        $partial  = $this->dash($childName);
        $viewVars = array(lcfirst($this->camel($childName)) => $child);
        return $this->partialView($partial, $viewVars);
    }
public function newPartialAction()
    {
        $postParams = $this->params()->fromPost();
        $parentName = $postParams['parent_name'];
        $childName  = $postParams['child_name'];
        $parent     = $postParams['parent'];

        $parent = $this->getService($parentName)->find($parent);
        $child  = $this->getService($childName)->getModel();

        $child->setParent($parent);

        $partial  = $this->dash($childName);
        $viewVars = array(lcfirst($this->camel($childName)) => $child);
        return $this->partialView($partial, $viewVars);
    }
public function newPartialAction ( ) { $ postParams = $ this -> params ( ) -> fromPost ( ) ; $ parentName = $ postParams [ 'parent_name' ] ; $ childName = $ postParams [ 'child_name' ] ; $ parent = $ postParams [ 'parent' ] ; $ parent = $ this -> getService ( $ parentName ) -> find ( $ parent ) ; $ child = $ this -> getService ( $ childName ) -> getModel ( ) ; $ child -> setParent ( $ parent ) ; $ partial = $ this -> dash ( $ childName ) ; $ viewVars = array ( lcfirst ( $ this -> camel ( $ childName ) ) => $ child ) ; return $ this -> partialView ( $ partial , $ viewVars ) ; }
return the partial for a new record.
return the partial for a new record .