Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong url in the admin page #10

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 3 comments
Open

wrong url in the admin page #10

GoogleCodeExporter opened this issue Apr 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 29 Nov 2011 at 7:21

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 29 Nov 2011 at 7:25

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 29 Nov 2011 at 8:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant