.. _Tsfe-cObjGetSingle: ============================================== Tsfe::cObjGetSingle() ============================================== \\nn\\t3::Tsfe()->cObjGetSingle(``$type = '', $conf = []``); ---------------------------------------------- Render a TypoScript object. Earlier: ``$GLOBALS['TSFE']->cObj->cObjGetSingle()`` .. code-block:: php \nn\t3::Tsfe()->cObjGetSingle('IMG_RESOURCE', ['file'=>'image.jpg', 'file.'=>['maxWidth'=>200]] ) Source Code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: php public function cObjGetSingle( $type = '', $conf = [] ) { try { $content = $this->cObj()->cObjGetSingle( $type, $conf ); return $content; } catch (\Error $e) { return 'ERROR: ' . $e->getMessage(); } }