I use the yii advanced template with frontend and backend. I have a complicated view with many calculations in my frontend for the logged in user and now I want to have the same in the backend for all users. Can I move the code in the common folder? How does this work? I don’t want to have the same code twice, as there are minor tweaks here and then.
So with standalone actions it is only possible to get the whole action? I’d like to see the view in the commons folder more like a partial, because on the backend I have some more to show like breadcrumbs and so on. So I would render the view in the backend folder and inside the view I render the commons view as a partial, but the problem is the code in the controller…