You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
419 B

package controller;
/**
* Base Cagette.net Controller
* @author fbarbut
*/
class Controller extends sugoi.BaseController
{
var t: sugoi.i18n.GetText;
public function new()
{
super();
//gettext translator
this.t = sugoi.i18n.Locale.texts;
}
public function checkIsLogged(){
if(app.user==null) {
throw new tink.core.Error(t._("You should be logged in to perform this action."));
}
}
}