src/Ffcms/Apps/Api/Ckeditor/Editor.php
public function before()
    {
        parent::before();
        // check if user have permission to access there
        if (!App::$User->isAuth() || !App::$User->identity()->role->can('global/file'))
            throw new NativeException('Permission denied');

        App::$Translate->append(__DIR__ . '/Translation/' . App::$Request->getLanguage() . '.php');
    }
public function before()
    {
        parent::before();
        // check if user have permission to access there
        if (!App::$User->isAuth() || !App::$User->identity()->role->can('global/file'))
            throw new NativeException('Permission denied');

        App::$Translate->append(__DIR__ . '/Translation/' . App::$Request->getLanguage() . '.php');
    }
public function before ( ) { parent :: before ( ) ; // check if user have permission to access there if ( ! App :: $ User -> isAuth ( ) || ! App :: $ User -> identity ( ) -> role -> can ( 'global/file' ) ) throw new NativeException ( 'Permission denied' ) ; App :: $ Translate -> append ( __DIR__ . '/Translation/' . App :: $ Request -> getLanguage ( ) . '.php' ) ; }
Append translation file ;)
@throws NativeException
Append translation file ; )