expired-brain / yii-shop

Automatically exported from code.google.com/p/yii-shop
0 stars 0 forks source link

wrong url in the admin page #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a webshop according to the guide.
2. Access following page

http://.../yii-shop/index.php?r=shop/shop/admin

3. Click on the looking-glass icon in the pending orders.

What is the expected output? What do you see instead?

expected: http://.../yii-shop/index.php?r=shop/admin/view&id=1

instead: http://.../yii-shop/index.php?r=shop/shop/view&id=1

What version of the product are you using? On what operating system?
0.7rc3

Please provide any additional information below.

Original issue reported on code.google.com by saku...@g.pugpug.org on 29 Nov 2011 at 7:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I mean "Magnifying glass".

Actually, following error message is shown.

Error 404
The system is unable to find the requested action "view".

Original comment by saku...@g.pugpug.org on 29 Nov 2011 at 7:25

GoogleCodeExporter commented 8 years ago
I've fixed this issue as follows inserting the line that tells correct URL.

views/order/admin.php:
<                array(
<                      'class'=>'CButtonColumn',
<                      'template' => '{view}',
<                ),

>                array(
>                      'class'=>'CButtonColumn',
>                      'template' => '{view}',
>                      
'viewButtonUrl'=>'Yii::app()->createUrl("/shop/order/view", array(
"id"=>$data->order_id))',
>                ),

Original comment by saku...@g.pugpug.org on 29 Nov 2011 at 8:35