ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,699
- Points
- 823
Reputation:
My edit link is not working as expected, it's opening the "add new" layout instead of "edit". Am I missing something?
The link is like: http://localhost:8000/admin.php?my-page/5/edit
ROUTE
Code:
TEMPLATE INDEX
Code:
Read more
Continue reading...
The link is like: http://localhost:8000/admin.php?my-page/5/edit
ROUTE
Code:
Code:
Route prefix: my-page/
Route format: :int<product_id>
TEMPLATE INDEX
Code:
Code:
<div class="block-container">
<xf:foreach loop="$xf.app.db.fetchAll('SELECT * FROM xf_my_page')" key="$dataId" value="$item">
<xf:datarow rowtype="current">
<xf:cell>{$item.product_id}</xf:cell>...
Read more
Continue reading...