Yii Framework Forum: YiiAdmin (Beta preview) - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

YiiAdmin (Beta preview) Web interface for administer models. Rate Topic: -----

#1 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 09 June 2010 - 07:07 AM

Hi all,

Let me introduce you YiiAdmin extenstion,
which allows you to manage your models in way like Django Admin do(http://docs.djangopr.../contrib/admin/).

This is first release.
I need people to test this extension.

Instalation http://github.com/fi...aster/README.md
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
2

#2 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 09 June 2010 - 07:08 AM

screenshots
Posted Image
Posted Image
Posted Image
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
1

#3 User is offline   Firs Yura 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 10-June 10

Posted 10 June 2010 - 07:21 AM

Please, write a manual on Russian. Maybe on russian forum - http://yiiframework.ru/forum/
Thanks.
0

#4 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 10 June 2010 - 07:23 AM

View PostFirs Yura, on 10 June 2010 - 07:21 AM, said:

Please, write a manual on Russian. Maybe on russian forum - http://yiiframework.ru/forum/
Thanks.



Ok, I'll do it a bit later today.
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

#5 User is offline   zitter 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 14-July 09

Posted 10 June 2010 - 07:26 AM

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!
0

#6 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 10 June 2010 - 07:36 AM

View Postzitter, on 10 June 2010 - 07:26 AM, said:

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!



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.
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

#7 User is offline   MichaelH 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 09-February 10

Posted 11 June 2010 - 03:59 AM

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
0

#8 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 11 June 2010 - 04:29 AM

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
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

#9 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 11 June 2010 - 08:17 AM

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?
Web-superman. My blog about web development (russian).
0

#10 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 11 June 2010 - 08:22 AM

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)
Web-superman. My blog about web development (russian).
0

#11 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 11 June 2010 - 08:22 AM

View PostNayjest, on 11 June 2010 - 08:17 AM, said:

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?



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/fi.../zipball/master
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

#12 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 11 June 2010 - 08:38 AM

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)
Web-superman. My blog about web development (russian).
0

#13 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 11 June 2010 - 08:44 AM

do you updated code from github?
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

#14 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 11 June 2010 - 09:04 AM

View Postkmdm, on 11 June 2010 - 08:44 AM, said:

do you updated code from github?

I download it from http://github.com/fi.../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?
Web-superman. My blog about web development (russian).
0

#15 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 11 June 2010 - 09:23 AM

Yes i speak Russian.
What version of Yii you use? I've tested it only on Yii 1.1.2.
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

#16 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,781
  • Joined: 17-January 09
  • Location:Russia

Posted 11 June 2010 - 09:27 AM

Nayjest
There is a discussion about YiiAdmin in Russian: http://yiiframework.....php?f=9&t=1083
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#17 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 11 June 2010 - 09:28 AM

Yii 1.1.2
php 5.3 on windows (Denwer)
Web-superman. My blog about web development (russian).
0

#18 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 11 June 2010 - 09:35 AM

Sorry, problem was due my adminSearch method, all works fine now
Web-superman. My blog about web development (russian).
0

#19 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 11 June 2010 - 09:36 AM

It seems that yiiadmin tries to set "$model" variable in Block model.
But I cant repeat this bug =(

EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

#20 User is offline   kmdm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 26-May 10

Posted 11 June 2010 - 09:37 AM

View PostNayjest, on 11 June 2010 - 09:35 AM, said:

Sorry, problem was due my adminSearch method, all works fine now


OK. Good luck in testing.
EximusCommerce e-commerce platform based on yii framework. For now only Russian version available.
yiiadmin autoadmin for yii.
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users