Thanks for your interesting Yum. Let me try to answer all your questions:
@enfield: In the original yii-user-management (<0. i had the tableNames configured in
the module configuration. I think this concept is outdated. The better way is to do it, to
leave the default names in the Yum-prefixed classes, and extend them to suit your project-specific
table name. A example:
```php
class User extends YumUser {
public function tableName() {
return 'my_prefixed_special_table_name_for_users';
}
}
```
@dbk138:
This is (almost) the same issue as i said to enfield. In the original yum i had a
"profile field group" feature and a "related table" column. Today i would do it
completely different. Create a class Profile that extends YumProfile, add a
ProfileController that extends the YumProfileController, copy the example views of
YumProfileController to the new ProfileController and add a CHtml::dropDownList()
add the appropriate place, where you want your dropdownlist to appear.
@both: This is a design specific question. Since yii in general encourages you to use
OOP, i decided to make it this way. This is a _little bit_ more complex for the
developer - but when you are using yii you most definitely _are_ a developer, and should
have some basic OOP skills.
Oh yes. I could write a exact, detailed tutorial/documentation how this works. I really should.
I have done this many times for my project, this knowledge and working code exampes should be
shared <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' />
@RossMcCaughrain
The same goes for all additional columns, relations, and whatever you have in your project.
Issue 1: see answer to the other guys. But i think there _is_ a generic solution in yii. Yii
is able to automatically prefix the tables you place in relation names, but i am not sure 100%
at the moment how that works.
Issue2: is the friendship module activated? If not, the link should not render. If yes, then it
is a bug or just a invalid link. I will look at that and fix it in the svn.
Issue3: Thanks for reporting, will fix that in svn
Issue4: I forgot to commit that file to svn, will fix that. Its an older "bug", i remember <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/wink.gif' class='bbc_emoticon' alt=';)' />
Issue5: the fresh_installation.sql is a "fallback" for people that dont want to use the Installation
Controller. I did not take care if it still is current, simply forgot that. So the new version will
go into svn.
Issue6: thanks, i will fix in svn
Issue7: No, there arent yet, but i think about doing a optinal checkbox in the install controller.
If checked, he will do the constraints. Or a migration script file that adds the constraints afterwards.
Why? when developing the constraints are disturbing. you only want them on the production server.
Now some general words:
the last months i developed this extension alone. Thats why it still has many small bugs/inconsistencies.
Everyone is invited to help! I can give you committ access to the google code svn. As you will see there
already are ~15 people inserted, but unfortunately they are all inactive at the time.
Also, if you want to write documentation or a tutorial on how things work: yum still lacks documentation.
It has many features, but not well documented yet.
thanks for your time
For the life of me I still cannot figure out how to properly add the drop down list. I got it working using a related table in the database, but I am sure I do not need to do that. Has anyone been able to figure out how to use the dropDownList properly? Also eventually I would like to make a dependend dropDownList but I am still stuck on the former!
I started to port Yii-user-management to mongoDb once in a while. But then i decided that this makes no sense,
since Yii2.0 will soon introduce a abstractian layer that makes the ORM workable with MongoDB, as well as relational Databases. This may be in the far future, but it will make all modules (almost) automatically
mongoDb-compatible. Almost because, of course, you have to design your models to have the schema in it, since
the db does not have it anymore. Details of all this will come when the time is near.
If you want to start porting to mongodb using the YiiMongoDbSuite - i can send you some files where i did that,
Thank you for the fast reply. It would be great help for me if you send those files to me. Please send the files to bbalasateesh@gmail.com. Do I need to change any code or settings for that code. Also, if possible please provide the installation details.
Hi and thanks for greate module. One thing I couldn’t make to work is translation. I added ‘language’ => ‘de’ to module configuration, but no translation took place. I’ve seen that in every folder, files names are different, for example in ‘pl’ folder there are only ‘user.php’ and ‘YumPasswordValidator.php’ and in ‘de’ folder there is more files like yum_user.php, yum_statistis.php and so on.
Did I miss something in configuration or there is other way to translate it, btw I tried all languages but no luck.
I’d report them as issues first on the google code site so they can be tracked appropriately…since it’s between releases, they may be byproducts of the ongoing development being done…
I was just going to post a note that I did get it installed… I made the novice mistake of copying the main package folder to the modules dir and naming it user - not good (wasted so much time).
For those novice out there the correct documentation for install instructions is in the /Unzip_Package_Folder/user/doc/ folder, not the web site various links which is a little vague. Also, and to be really clear, copy the various /Unzip_Package_Folder/folders to the protected/modules dir that you create.