Questions tagged [gii]

Gii is the web-based code generation tool of Yii Framework. While you can add your own code templates to Gii, it is equipped with templates for Controllers, CRUDs, Forms, Models and Modules.

Starting from version 1.1.2, Yii is equipped with a Web-based code generation tool called Gii. It supersedes the previous yiic shell generation tool, which runs on command line.

Detailed instructions about Gii can be found here: http://www.yiiframework.com/doc/guide/1.1/en/topics.gii

163 questions
0
votes
1 answer

Yii: How can I go on Humhub to Gii

and this is my main.php in yii (humhub) 'modules'=>array( // uncomment the following to enable the Gii tool 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'gii', // If removed, Gii…
Saltern
  • 1,305
  • 2
  • 16
  • 42
0
votes
0 answers

How can i generate pages for some additional tasks other than CRUD by using Gii?

I have created one CRUD operation by using gii namely "Facilities". And i need to create one page for booking facilities. I need to make separate login for user who is booking facilities and admin who has to manage all booking made by users. Is it…
Dhanasekaran
  • 107
  • 1
  • 2
  • 13
0
votes
0 answers

YII CRUD outputs blank page

I just created a new project with YII framework, connected it to database (on localhost, xampp), created model using GII module. After that I used gii CRUD tool to create controllers and views. GII creates everything successfully, but when I click…
Ejub
  • 1
0
votes
0 answers

Not able to make a model in gii model genrater

I am not able to create a model in yii model genrator.(Xamp on windows) I am following the steps from http://www.yiiframework.com/forum/index.php/topic/32415-create-login-form/ I made change(s) in config/main.php file... paste the db name there…
0
votes
0 answers

Customize Gii Code Generator For Internal Use

I am new to yii.I want to use Gii Code Generator in my application for generate model and CRUD dynamically.Like i am giving rights to choose field for their form.They enter details for fields and click button for generate form at that time in back…
0
votes
1 answer

Cannot access gii module in yii

I have integrated gii module in my My config file 'modules' => array( 'gii' => array( 'class'=>'system.gii.GiiModule', 'password'=>'pick up a password here', 'generatorPaths' => array( …
NitheesBavesh
  • 163
  • 1
  • 4
  • 18
0
votes
1 answer

Recursive Many to many relationship with Yii

I have a recursive many to many relationship with objective. My Relational model is: CREATE TABLE master.objectives ( id serial NOT NULL, name character varying(100), CONSTRAINT pkey_objectives PRIMARY KEY (id), CONSTRAINT…
Cristhian Boujon
  • 4,060
  • 13
  • 51
  • 90
0
votes
2 answers

What is the explanation of the abbreviation Gii in Yii?

What is the explanation of the abbreviation Gii in Yii? I know that Gii is the web-based code generation tool of Yii Framework. Yii means "Yes it is!", What does Gii mean?
0
votes
1 answer

Yii Gii Crudcode Object Access The Model of Our Input

i'm trying to modify my gii... that's legal isn't it?? I'm trying to modify crud form generator so that the generator will generate form for current relational model.. i can do that if i modify the CActiveFormWidget, but it dont generate the code to…
0
votes
1 answer

Gii: generate CRUD application from existing database tables?

I have a mysql database with tables that have one to many relationships with foreign keys linking them. How can I use gii to create CRUD form pages which will reflect the table relationships?
javastudent
  • 359
  • 1
  • 4
  • 12
0
votes
2 answers

Having Issues Invoking Actions Of Controller On Button Click

I'm having a problem calling an action in a controller upon button click. So the controller is generated by Gii. All of its actions are the default ones generated by Gii, except for the actionCreate(). Here is the relevant code :: class…
Maxx
  • 592
  • 18
  • 42
0
votes
1 answer

Yii controller setup with multiple conditions

In Yii crud, I've setup a Model, View, and Controller based on my db table called Form. I've modified the controller and views to my liking thus far: index.php/form/all (index) index.php/form/new (create) index.php/form/2…
Jeffrey
  • 4,098
  • 11
  • 42
  • 66
0
votes
0 answers

Configure Yii to generate CRUD(Gii) in themes folder

In a Yii project I have the structure: project/ ... default Yii structure here ... themes/ css/ font/ images/ js/ views/ admin/ layouts/ site/ How to configure Gii to generate CRUD in themes folder?
Maykonn
  • 2,738
  • 6
  • 33
  • 51
0
votes
1 answer

Showing a specific attribute when generating CRUD in Yii web framwork using giix extenstion

I am generating Models and CRUD for my database tables using giix in YII web framework, the thing is I want to change some of the attributes that showed to me but I dont know how ? I get into the code _FORM.php of the generated CRUD to one of the…
user2394735
0
votes
2 answers

Create new model in Yii without using Gii

I'm new to Yii and am taking over maintenance of a fairly completed project. In all the books and web resources it only talks about adding new models/controllers etc using the Gii tool. I have looked in the config/main.php file of this project and…
jdcookie
  • 121
  • 1
  • 6
1 2 3
10
11