[solved]What is the correct way to pass layout param to CViewAction?

I have some static pages in my website so I just use CViewAction to rend those pages. But I need to apply different layouts. I learned CViewAction and found it support layout param.

So I construct the url like this




index.php?r=site/page&view=solution&layout=solution



and I had built the solution layout file in folder themes/xxx/views/layouts.

The problem is it dose not work!It still render the page using the default layout.

Maybe I dont do it in a correct way?What should I do in this situation ?

It’s a path problem.If set layout=solution yii will try to find it on the default layout folder although have set a global theme path.