/**
  * Retrieves a component content
  *
  * @param  sfWebRequest  $request
  */
 public function executeGet(sfWebRequest $request)
 {
     $result = $error = '';
     if (!$request->hasParameter('name') || !$request->hasParameter('type')) {
         $error = 'Missing component name or type values, cannot create nor update component record';
     } else {
         try {
             $component = sfEditableComponentTable::getComponent($name = $request->getParameter('name'), $type = $request->getParameter('type'));
             $result = $component->getContent();
         } catch (Exception $e) {
             $this->logMessage(sprintf('{%s} %s', __CLASS__, $e->getMessage()), 'err');
             $error = sprintf('Unable to create nor retrieve component contents for "%s"', $name);
         }
     }
     return $this->renderResult($result, $error);
 }
 /**
  * Shows a component
  *
  */
 public function executeShow()
 {
     $this->componentCssClassName = sfConfig::get('app_sfDoctrineEditableComponentPlugin_component_css_class_name', 'sfEditableComponent');
     $this->component = sfEditableComponentTable::getComponent($this->name, $this->type);
 }