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

Jump to content

  • (14 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • 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

#21 User is offline   Rodrigo Coelho 

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

Posted 19 November 2010 - 03:59 AM

View Postortenheim, on 18 November 2010 - 01:38 PM, said:

This is an awesome addon, it actually made me do the final switch from cakephp to yii.


Congrats! Yii is so sweet :)

View Postortenheim, on 18 November 2010 - 01:46 PM, said:

i have found a possible bug.
When creating an entry, (...) it creates lots of duplicates.
How can i find the error? is this a bug?


This was an already fixed bug. Please checkout the latest revision from the Google Code page.

Do you like giix? Then please let people know at www.yiiframework.com/extension/giix/
0

#22 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,193
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 29 November 2010 - 09:29 AM

As I wrote in extensions' comments area.

Am I missing something or extension author assumed that everyone will be putting 'giix-components' and 'giix-core' folders directly under 'protected/extensions' folder, which is rather bad idea. Any attempt to put this extension to a separate subfolder like 'protected/extensions/giix' fails, even if one update correctly configuration file, according to INSTALL file instructions - Gii will fail when trying to access Giix* elements of it, saying that specified alias is invalid.

An ability to put this extension to an separate folder is especially essential since it contains files like INSTALL or LICENSEE in root folder, which could run into conflict with similar files from other extension that also does not allow users to put them into separate folder. This should be fixed IMHO.
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#23 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,193
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 29 November 2010 - 09:30 AM

View Postgot 2 doodle, on 12 November 2010 - 10:00 AM, said:

Why are there so many thumbs down or negative votes for this extension? Seems a bit pointless if people don't know why a negative vote was entered.

Well, there's zero thumbs down now. Have they been fixed - i.e. removed? Does extensions repository has such possibility? :)
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#24 User is offline   got 2 doodle 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 247
  • Joined: 12-December 08
  • Location:Beautiful Nova Scotia, Canada

Posted 29 November 2010 - 09:33 AM

View PostTrejder, on 29 November 2010 - 09:30 AM, said:

Well, there's zero thumbs down now. Have they been fixed - i.e. removed? Does extensions repository has such possibility? :)


Yes the admin removed the thumbs down, it's mentioned somewhere in this thread.

doodle
Check out myYii powered website
0

#25 User is offline   jamesmoey 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 17-July 09

Posted 03 December 2010 - 07:43 PM

In the base model, the tableName method should return {{xxx}} rather than just xxx.
0

#26 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,193
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 08 December 2010 - 11:01 AM

View Postjacmoe, on 12 November 2010 - 10:08 AM, said:

May I suggest that people are not allowed to thumb down without adding a comment.
Cowardly bastards...

I'm hundred percent pro! The same should work for Wiki text. Giving some extension or article thumb down without spending at least few seconds on writing at least one line, why there is thumb down - seems to be pointless, useless and having no sense.

I don't know if extension / wiki engine is Yii-based or build upon some other ready solution? Can extensions / wiki admin or moderator or someone from Yii dev team answers me (and jacmoe), if proposed feature is technically possible?
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#27 User is offline   Rodrigo Coelho 

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

Posted 08 December 2010 - 09:02 PM

View PostTrejder, on 29 November 2010 - 09:29 AM, said:

Am I missing something or extension author assumed that everyone will be putting 'giix-components' and 'giix-core' folders directly under 'protected/extensions' folder, which is rather bad idea. Any attempt to put this extension to a separate subfolder like 'protected/extensions/giix' fails, even if one update correctly configuration file, according to INSTALL file instructions - Gii will fail when trying to access Giix* elements of it, saying that specified alias is invalid.

An ability to put this extension to an separate folder is especially essential since it contains files like INSTALL or LICENSEE in root folder, which could run into conflict with similar files from other extension that also does not allow users to put them into separate folder. This should be fixed IMHO.


Hello Trejder,

Yes, the directories must be put inside 'protected/extensions'.
There is currently no plan to change this, but if you think it is important, you can open a ticket at Google Code for this enhancement. With enough support (and time) this can be changed.

And the text files aren't needed in the live project directory, you just need the two directories.
0

#28 User is offline   Rodrigo Coelho 

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

Posted 08 December 2010 - 09:27 PM

View Postjamesmoey, on 03 December 2010 - 07:43 PM, said:

In the base model, the tableName method should return {{xxx}} rather than just xxx.


Hello jamesmoey,

giix follows what gii does. I can't see any code path where gii generates '{{tableName}}'.
I can see this behaviour in cli's deprecated model generation.

If you are using gii and it in fact returns this string, please open a ticket at Google Code with more information.
Thank you!
0

#29 User is offline   Rodrigo Coelho 

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

Posted 10 December 2010 - 05:34 AM

giix is updated!
Download version 1.1.1 from the extension repository.
0

#30 User is offline   Rodrigo Coelho 

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

Posted 13 December 2010 - 10:30 PM

giix is updated!
Download version 1.2 from the extension repository.
0

#31 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 15 December 2010 - 11:52 PM

I just installed the 1.2 version ( exactly like explained in INSTALL file ) and it gives me:

Unable to resolve the request "gii/giixModel".


any idea why ?

Maybe becuz my 'protected' folder is named "application" instead ?

This post has been edited by Gustavo: 16 December 2010 - 01:40 AM

--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
0

#32 User is offline   Rodrigo Coelho 

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

Posted 16 December 2010 - 01:42 AM

View PostGustavo, on 15 December 2010 - 11:52 PM, said:

I just installed the 1.2 version ( exactly like explained in INSTALL file ) and it gives me:

Unable to resolve the request "gii/giixModel".


any idea why ?


How does your ext directory look like?

View PostGustavo, on 15 December 2010 - 11:52 PM, said:

Maybe becuz my 'protected' folder is named "application" instead ?


No.
0

#33 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 16 December 2010 - 03:52 AM

my extensions directory is the following:

-configs
-modules
-...
-extensions
---giix-components
---giix-core
---...
-runtime
-...

and my config is like:
  'import'=>array(
    	'application.models.*',
    	'application.models.auth.*',
    	'application.models.content.*',
    	//...
    	'application.components.mvc.*',
    	'application.extensions.giix-components.*',
   ),
   //...
  'modules'=>array(
  	'gii'=>array(
        	'class'=>'system.gii.GiiModule',
        	'password'=>'010203',
        	'generatorPaths' => array(
				'application.extensions.giix-core', // giix generators
			),
    	),
   	//...

--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
0

#34 User is offline   Rodrigo Coelho 

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

Posted 16 December 2010 - 04:36 AM

View PostGustavo, on 16 December 2010 - 03:52 AM, said:

my extensions directory is the following:


Please use the settings as specified in INSTALL file.
If giix does not work, open a ticket in Google Code.
0

#35 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 17 December 2010 - 05:08 AM

like i just posted its exactly the same as explained
the only diff. is that i replaced "ext" by "application.extensions" which means the same thing
anyway ...
--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
0

#36 User is offline   Rodrigo Coelho 

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

Posted 23 December 2010 - 06:14 PM

View PostGustavo, on 17 December 2010 - 05:08 AM, said:

like i just posted its exactly the same as explained


Please open a ticket so I can work in this issue.
0

#37 User is offline   Rodrigo Coelho 

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

Posted 23 December 2010 - 06:16 PM

giix is updated!
Download version 1.3 from the extension repository.

Now giix has native support for saving MANY_MANY relations with the new method GxActiveRecord::saveWithRelated. Check the README file for more information.
0

#38 User is offline   zxcqwe 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 05-January 11

Posted 05 January 2011 - 02:17 PM

Hi,
Can you upload a demo or sample app with its MySQL dump for learning to use giix quickly, through examples.
Regards,
Zxcqwe.
0

#39 User is offline   Athos 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 87
  • Joined: 07-January 11

Posted 19 January 2011 - 01:18 PM

Mentel (Rodrigo?),

Gostei muito da extensão e estou fazendo algumas modificações que poderiam ser interessantes para outras pessoas.

A primeira delas é o conceito de colunas "editáveis", que será usado para gerar os formulários, grid, etc...

Essa necessidade surgiu porque todas as minhas tabelas têm campos de log de criação e alteração e esses campos não deveriam aparecer para o usuário.

Como fiz para um caso bem particular, apenas filtrei os campos que iniciam com "log_". No caso de incorporar, você pode generalizar ou configurar essa regra.
Thanks Google Translator to helping me write the posts :)
0

#40 User is offline   Athos 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 87
  • Joined: 07-January 11

Posted 19 January 2011 - 03:09 PM

Mentel,

In the method generateRules (), the condition for the $ null [] should not be:

if ($column->allowNull && $column->defaultValue === null)

Thanks Google Translator to helping me write the posts :)
0

Share this topic:


  • (14 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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