kmddm
(Firstrow)
1
Hi all,
Let me introduce you YiiAdmin extenstion,
which allows you to manage your models in way like Django Admin do(http://docs.djangoproject.com/en/dev/ref/contrib/admin/).
This is first release.
I need people to test this extension.
Instalation http://github.com/firstrow/yiiadmin/blob/master/README.md
firsyura
(Firs Yura)
3
Please, write a manual on Russian. Maybe on russian forum - http://yiiframework.ru/forum/
Thanks.
kmddm
(Firstrow)
4
Ok, I’ll do it a bit later today.
zitter
(Zitter)
5
very interesting. But how to switch to "en" language?
And why dont you use tableName method to manage models?
I think you can also improve managing related models… anyway compliments!
kmddm
(Firstrow)
6
To enable English lang edit protected/config/main.php
....
'language'=>'en',
....
The reason why I dont use model tableName is,
that sometimes I need make model name in list like "Contests Users" or "Blog Posts",
table name is always static.
if $adminName or $pluralNames are not set, yiiadmin will use model class name to display.
MichaelH
(Derinus)
7
Hi, I tested your yiiadmin extension.
working great now but had some problems:
It complained get_class() expects a object but recieved a string
I commended out the if statement in YiiadminModule->getModelNamePlural() and this fixxed the issue
Logout button was not working without the urlmanager set to path
a changed the href of the link to <?php echo $this->createUrl(’/yiiadmin/default/logout’); ?> in views/layouts/main
i also cant browse for a file when i try to insert an image using the wysiwyg editor.
still have to do some more testing ill let you know when i find something.
grtz
kmddm
(Firstrow)
8
Thank you for testing and bug reporting/fixing.
Also, yiiadmin doesn’t have file manager. I want to connect elFinder(http://elrte.ru/en/elfinder/).
Update:
Opened github repository http://github.com/firstrow/yiiadmin
nayjest
(Mail)
9
I have an error: Property "YiiadminModule.registerModels" is not defined.
I placed yiiadmin to modules dir of my application and added
'modules'=>array(
'yiiadmin'=>array(
'password'=>'123',
'registerModels'=>array(
'application.models.Block',
'application.models.*',
),
//'excludeModels'=>array(),
),
),
to application config. And i have "Block" model.
What i do wrong?
nayjest
(Mail)
10
And if i add registerModels via YAdminConfig.php, i have an error:
get_class() expects parameter 1 to be object, string given
Source File
Z:\home\yii\www\s3\protected\modules\yiiadmin\YiiadminModule.php(234)
kmddm
(Firstrow)
11
Just update code from github repo. there is new version with some little fixes.
also it’ll fix problems above.
Update:
if you dont have git installed, you can download source directly in zip format.
http://github.com/firstrow/yiiadmin/zipball/master
nayjest
(Mail)
12
I added @ before get_class at YiiadminModule.php(234)
and main page with list of models displays. But when i try to edit something, i get error:
Property "Block.model" is not defined.
Source File:
www\framework\db\ar\CActiveRecord.php(110)
kmddm
(Firstrow)
13
do you updated code from github?
nayjest
(Mail)
14
I download it from http://github.com/firstrow/yiiadmin/zipball/master and still have error
Property "Block.model" is not defined.
Source File
Z:\home\yii\www\framework\db\ar\CActiveRecord.php(110)
p.s.: do you spaek russian?
kmddm
(Firstrow)
15
Yes i speak Russian.
What version of Yii you use? I’ve tested it only on Yii 1.1.2.
samdark
(Alexander Makarov)
16
Nayjest
There is a discussion about YiiAdmin in Russian: http://yiiframework.ru/forum/viewtopic.php?f=9&t=1083
nayjest
(Mail)
17
Yii 1.1.2
php 5.3 on windows (Denwer)
nayjest
(Mail)
18
Sorry, problem was due my adminSearch method, all works fine now
kmddm
(Firstrow)
19
[s]It seems that yiiadmin tries to set "$model" variable in Block model.
But I cant repeat this bug =([/s]
kmddm
(Firstrow)
20
OK. Good luck in testing.