Aimeos\ShopBundle\Controller\JqadmController::saveAction PHP 메소드

saveAction() 공개 메소드

Saves a new resource object
public saveAction ( Request $request, string $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
$resource string Resource location, e.g. "product"
$site string Unique site code
리턴 Symfony\Component\HttpFoundation\Response Generated output
    public function saveAction(Request $request, $resource, $site = 'default')
    {
        $cntl = $this->createClient($request, $site, $resource);
        return $this->getHtml($cntl->save() ?: $cntl->search());
    }