Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5700 Lượt xem

Hello my Friends,

I want to ask you how can i raise an exception in a controller.

I have tried as usual raise UserError but it doesnt work ant i got this:

 

Ảnh đại diện
Huỷ bỏ

Pleae show your code.

Tác giả

Would you help please !!

Tác giả Câu trả lời hay nhất

It i too simple my Friend.

I want to launch a warning like those launched in models class. But, this time from controller.

I have tried the raise.UserError it doesnt wok.

Would you help please?!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 23
2386
2
thg 12 23
15669
0
thg 10 23
33
3
thg 10 23
790
1
thg 10 23
569