But on this case, that some_static_page.php layout would have the same header, footer, and general structure as main.php, changing only a h1 tag that says (for the sake of the example: "Theater Detail");
If we follow that path, if later we decide to change the layout, we should also change the same things on ‘some_static_page.php’ …
Isn’t a waste to create 10 actions with only: “render()” method running ?
I do accept that perhaps there isn’t any absolutely dry solution but, I just want to make sure that there’s no better way.
My first thought was to somehow use the index.php view and inside, call $this->renderPartial(‘specificTheaterHere’); but I believe this approach doesn’t work, because inside renderPartial we should have a variable, but where should we change that variable ? On the controller perhaps? Even if possible, we still need to create an action for each static page.
What do you say? If you think I didn’t get your answer, can you please elaborate a little bit more?