Yii Framework Forum: Is it possble to enable automatic href creation for each table row - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Is it possble to enable automatic href creation for each table row Is it possble to enable automatic href creation for each table row

#1 User is offline   gintare 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 19-July 14

Posted 23 August 2015 - 03:04 AM

I have generated simple application with CRUD.
The index.php just lists the table data in rows.
The index.php does not creates href for each row, which would lead to row editing or deleting.

THE TABLE LOOKS LIKE THIS:
# ID Th Nw Core Mat Nw Shell Mat Nw Qdw Mat
Metal Nw Passivating Layer Growth Mech Growth Meth Ns

1 1 th1020 fg fg fg fg fg

I would like that cells in column ID, or column Th would have not simple text, but hrefs to corresponding views.


I can input row id manually in the address bar with update:
http://localhost/thy...ta2/update&id=1

but i believe it is not the way the framework should work.

Thank you a lot!
0

#2 User is offline   gintare 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 19-July 14

Posted 23 August 2015 - 03:14 AM

I am sorry. Each row is editable. You have to scroll to the end of line and you will find an "editing" mark.
My table rows were long and i did not imagine that editing is on the end of them.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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