How can I render several dynamic pages with single view file. I have LpController whose Index Action will bring records from db based on querystring parameter. For example, if I have links www.mysite.com/index.php/lp/palm_jumeirah, www.mysite.com/index.php/lp/downtown_dubai the records I need to fetch will be for these two districts without the underscore: palm jumeirah and downtown dubai.
So do I need to do all the coding in the Index action of controller ? How would I get the district palm_jumeirah for use in query ? use Yii::app()->getQueryString() ? and what do in ‘urlManager’ rules array ?
shaani sab bohat easy task hai pehli baat tu ye hai ap ko apni url design krni hai. main aik simple approach follow kron ga, ap apne controller main kuch is tarah add kr len