AuthItemController.php has undefined variables: ‘active’ & ‘message’ (near 147).
Though ‘message’ is defined since beta 5, variable with the same name is still not passed to renderPartial() in TaskToRole.php, roleToUser.php, operationToTask.php.
Seems to me, that’s a high time to think about UI translations.
Currently ‘sourceLanguage’=>‘ru’ or ‘el_gr’ or something else gives us nothing but built-in English UI.
Nevertheless see russian messages in attachment (based on ‘el_gr’ messages file from 1.00).
Frontpage wanted with manage and list links.
I think, the idea to address authitems by names in db tables is not as good as it seems, personally I’d rather like to have ‘id’ primary key and ‘name’ unique key in items table. In that way we can make item renaming easier and even save some hdd space .
Besides ‘alias’ field could be useful. That’s when we scan through the authitems list we see ‘alias’ (meaningful user friendly name, probably in native language) and ‘name’ (the name we use in script, probably in English).
I’ll try the russian translation. The greek translation doesn’t work for you?
2.Yes, that’s true
3.That’s the way Yii authManager handles the auth items. I think renaming works ok as it is now, about the alias i’ll try to add a column and hope I wont break anything in AuthManager’s code
True, but I guess you wouldn’t be able to provide names for the application source language if you did that (because no translation will be done if source language == requested language). But you could use translations for the item description.
Alias column, as I see it, just can’t brake anything in AuthManager, if only we use it in srbac’s administration UI solely for user convinience.
Translations for authItems names which are given by user, do you mean?
Hm, really it’s not the case to use translation module for dynamic data.
This morning I was blessed with yet another crazy idea:
If srbac has an option to create authItems automatically from existing application controllers, it would be helpful. E.g. we say to srbac: create authItems for actions in controller ‘Article’, it creates operations from given actions (‘Create Article’, ‘Edit Article’ etc.) and a task (‘Manage Article’), then automatically assigns these operations to this task. That’s the basic idea. If we step even further srbac could form accessRules() function for a given controller.
While creating a user, i need to assign the role for this user, right from the user creation _form. I tried to populate a dropdownlist with AuthItem values, using AuthItem::model()->findAll($criteria), but did not manage to get it working. How can i access this model from the srbac module?