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

Sasebo GII virtex5 fpga configuration

I am working with Sasebo GII board that has two FPGAs on it: Xilinx Spartan and Xilinx Virtex5 (and the board has several separate JTAG interfaces for configuration of fpgas). I am useing ISE 14.4 under Linux and I have some troubles to configure…
CorsairNV
  • 3
  • 1
0
votes
1 answer

Gii module's view

When I generate a CRUD for a model in a context of a module using Gii tool I expect views and controller be created under module directory but they be created under application controller and view direction. Why and How can I fix it? Here is my…
user1991553
0
votes
2 answers

Yii connection to live database

I am developing an application localy, and want to connect to live database, but when trying to get to gii's crud generator I am given the following error: CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] A connection attempt…
Johhny P
  • 163
  • 1
  • 2
  • 9
0
votes
1 answer

KO Assertions in testing CRUD, from Phpunit with Yii

I´m following the manual 'Agile Web Application Develpment with Yii1.1 and PHP5', and I don´t know, why do the test CRUD is failed, It was created correctly 'Entity AR class' from Gii after tested correctly 'db connection' also (Chapter 4) but at…
0
votes
2 answers

Gii with no css/js

I'm trying to use Yii's automated code generation tool Gii, but it is trying to reference a bunch of CSS and JS files that does not exist. I have tried multiple times from scratch and setting the permissions each time. It seems as the files are not…
0
votes
1 answer

How to generate database table models with Gii in Yii?

Problem: I used gii to generate database table models. So If I have any change in users table structure, I used gii and all my relations and other methods are removed from class. So I need to make backup of class and regenerate class and bring back…
Awan
  • 18,096
  • 36
  • 89
  • 131
0
votes
1 answer

How to access a view once you have generated it with GII (via YII)?

I've managed to create several forms using YII and GII, but I'll be honest, I don't understand it perfectly. If anyone can explain this to me, I'd really appreciate it. Basically, I create accessed the form creator here: index.php/gii/form I then…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
0
votes
2 answers

yii framework's CRUD generator (gii) shows error message : "'Voucher' must extend from CActiveRecord."

I am trying to generate CRUD for my vouchers table using gii,I follow simple steps through which I always generate CRUD but this time with "vouchers" tables its showing some unexpected error message 'Voucher' must extend from CActiveRecord. Below…
Tahir Yasin
  • 11,489
  • 5
  • 42
  • 59
0
votes
1 answer

Yii, ActiveDateSelect must specify "model" and "attribute" or "name" property values

I am using ActiveDateSelect extension to get the month, year details from the user. Everything goes fine. When i try to generate model using gii module i am getting the error. The stack trace says \protected\extensions\ActiveDateSelect.php(120):…
0
votes
2 answers

Relational Databases in Yii

So I've tried this: http://www.yiiframework.com/wiki/285/accessing-data-in-a-join-table-with-the-related-models Basically I have a table called User which relates to ToolAccess; related via a primary key on User and a field for userID on ToolAccess.…
Snow_Mac
  • 5,727
  • 17
  • 54
  • 80
-1
votes
1 answer

Gii in Yii 1.1 not working in Mac showing error "Error 500 Only the first byte will be assigned to the string offset"

enter image description herewhile adding more than one table in the database the Gii is showing error "Error 500 Only the first byte will be assigned to the string offset".
-1
votes
1 answer

Generate form with drop down using Gii in Yii

I am new to yii.I want to create model and form using Gii,In my database table i used enum data type for specific values to select by user.than i generate model and crude using Gii but it doesn't create drop-down list in form for that enum field.To…
-2
votes
2 answers

YII2.0 Register form Class 'Users' does not exist or has syntax error

I have Users model in my model folder, i have to create a new registration form via gii, so that i gave my class name in form creation gii page. But it throw the class name not exist or has syntax error. Users.php code is namespace app\models; use…
senthil
  • 324
  • 2
  • 15
1 2 3
10
11