Hello,
I’m new to Yii framework and followed the tutorial to create a simple application.
Now, I have tried to create some extra pages using the gii.
I have a mysql table called tbl_articles containing 5 fields:
-
Id : varchar(20) unique primary key
-
Title : varchar(200)
-
Measurement unit : varchar(5)
-
Type : varchar(5)
-
Block : longtext
The "Block"-field should be a textfield with "unlimited" size.
Next I used the gii Model Generator to create the model "Article".
After that I used the gii Crud Generator with that model.
In the created _form.php I implement the ECLEditor for the "Block"-field.
When I load the page index.php?r=article, I see an empty list.
Next, I click "create article" and I get a form to fill in.
After I fill everything in, and submit the form, i get redirected to the page "index.php?r=article/view&id=test". Here is where I get the "Error 404 - The requested page does not exist."
In my mysql table, the row has been created.
In "article/index" and "article/admin" I can see the record.
In "article/view&id=test" and "article/update&id=test" I get the error.
When clicking on the delete button, I get a gif that shows me that something’s busy, but nothing happens.
Can anyone help me?
Grtz,
Frederik