Yii Framework Forum: Giix — Gii Extended - Yii Framework Forum

Jump to content

  • (14 Pages)
  • +
  • « First
  • 12
  • 13
  • 14
  • You cannot start a new topic
  • You cannot reply to this topic

Giix — Gii Extended a code generator for Yii PHP framework (scaffolding/code generation) Rate Topic: ***** 4 Votes

#261 User is offline   Neoc83 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 05-February 14

Posted 31 March 2014 - 08:10 AM

I'm using an alternative folder structure with separate 'frontend', 'backend' and 'common' application folders in the 'protected' folder. I've put the Giix code in the protected/common folder so that it can be used for code generation for both frontend and backend. In the backend config file I have the following for Giix:


...

Yii::setPathOfAlias('common', $rootPath . '/common/');

...

    'modules' => array(
        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'generatorPaths' => array(
                'common.extensions.giix.generators', // giix generators
            ),
            'password' => 'xxxxxx',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters' => array('127.0.0.1'),
        ),
    ),
    'import' => array(
        'common.extensions.giix.components.*', // giix components
    ),



When I go to localhost/myapp/backend/gii/giixModel/index I'm getting the following error:

Error 500
Alias "ext.giix.generators.giixModel.GiixModelCode" is invalid. Make sure it points to an existing PHP file and the file is read


Does anyone know how to get Giix working with an alternative folder structure?
0

#262 User is offline   Piet de Vries 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 15-November 12

Posted 03 August 2014 - 05:47 AM

Hi Rodrigo,

You mentioned planning to create giix 2.
Can you inform us on the progress?
If you appreciate any help: I wouldn't mind.
0

#263 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 03 August 2014 - 01:27 PM

Hi Piet,

Thanks for offering your help!
Yes, I was planning to create giix 2, but my schedule has been so busy, I haven't even started it yet.
I still want to update giix for Yii 2.0, but unfortunately I have no idea about when I'll be able to do it in the medium term.
0

#264 User is offline   Almir 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 08-August 14
  • Location:Rio do Sul - SC, Brasil

  Posted 05 December 2014 - 03:03 PM

Hi,

I'm using Giix and found something interesting:

Every time I use

GxHtml::encode(GxHtml::valueEx($data->relation))


The DBProfiler statistics are showing full queries for every row in the table. The problem doesn't occur when using normal (not related fields).
In this situation, I only need the representing column of the related model, not all the fields.

Here are some images to show what I'm saying.
The CGridView and the profiler result.


*relation is representing any of the named relations of the model.

Attached File(s)

  • Attached File  table.png (81.57K)
    Number of downloads: 4
  • Attached File  query.png (226.27K)
    Number of downloads: 4

Almir Bolduan
Rio do Sul - SC
0

Share this topic:


  • (14 Pages)
  • +
  • « First
  • 12
  • 13
  • 14
  • 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