Frontend\Core\Engine\Language::getAction PHP 메소드

getAction() 공개 정적인 메소드

Get an action from the language-file
사용 중단:
public static getAction ( string $key, boolean $fallback = true ) : string
$key string The key to get.
$fallback boolean Should we provide a fallback in English?
리턴 string
    public static function getAction($key, $fallback = true)
    {
        trigger_error('Frontend\\Core\\Engine\\Language is deprecated.
             It has been moved to Frontend\\Core\\Language\\Language', E_USER_DEPRECATED);
        return parent::getAction($key, $fallback);
    }

Usage Example

예제 #1
0
 /**
  * Load the form
  */
 private function loadForm()
 {
     // create form
     $this->frm = new FrontendForm('own_question', '#' . FL::getAction('OwnQuestion'));
     $this->frm->addText('name')->setAttributes(array('required' => null));
     $this->frm->addText('email')->setAttributes(array('required' => null, 'type' => 'email'));
     $this->frm->addTextarea('message')->setAttributes(array('required' => null));
 }
All Usage Examples Of Frontend\Core\Engine\Language::getAction