Ejemplo n.º 1
0
 /**
  * setTitle
  *
  * @param string $title
  *
  * @return  static
  */
 public function setTitle($title = null)
 {
     $layout = $this->getLayout();
     if ($layout != 'user' && !$title) {
         $langPrefix = WarderHelper::getPackage()->get('admin.language.prefix', 'warder.');
         if ($layout == 'edit') {
             $layout = 'profile.edit';
         }
         $title = Translator::translate($langPrefix . $layout . '.title');
     }
     return parent::setTitle($title);
 }
Ejemplo n.º 2
0
 /**
  * setTitle
  *
  * @param string $title
  *
  * @return  static
  */
 public function setTitle($title = null)
 {
     return parent::setTitle($title);
 }
Ejemplo n.º 3
0
 /**
  * setTitle
  *
  * @param string $title
  *
  * @return  static
  */
 public function setTitle($title = 'Dashboard')
 {
     return parent::setTitle($title);
 }
Ejemplo n.º 4
0
 /**
  * setTitle
  *
  * @param string $title
  *
  * @return  static
  */
 public function setTitle($title = 'Edit Post')
 {
     return parent::setTitle($title);
 }