Yii Framework Forum: Display two views at once and change url on change - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Display two views at once and change url on change Rate Topic: -----

#1 User is offline   soissons 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 12-April 12

Posted 18 April 2012 - 10:06 PM

Hi,

I have a main view with a menu which helps me display another view. It's similar to this:
<div id="page">
	<div id="menu">
		<a href="controller/page1">Page1</a>
		<a href="controller/page2">Page2</a>
	</div>
	<div id="content">
		<!-- Page1 or Page2 are displayed here -->
	</div>
</div>


I know I can do this with AJAX (howto), and I can make ajax change my link to mypage/controller/index#Page2, but I would like it to be changed to mypage/controller/Page2. Is there a better way how to do this?

Thanks in advance!

Edit: I've gotten the answer on stackoverflow (if someone's interested in this).

This post has been edited by soissons: 19 April 2012 - 09:24 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users