Hello,
I would like to create 2 applications (they will be the same in 98% except for showing some elements) so I decided to design only one app and add parameters to url which will tell what kind of elements show.
for example
page.php?apptype=withheader
page.php?apptype=minimal
If user open an application with a one param I would like to keep his preferences. Keeping the param "apptype" in the url is what I need (or at least I think so).
I think that I can do this in two ways:
-
Add manually the param to ALL links (but if I forget to add it will change the look of app)
-
Store param in session and than take it from there and put in url (a little bit automatic)
Question: Is there any better way to do this using yii?
Best regards,
m1m1m1