Jump to content
Larry Ullman's Book Forums

How To Create One Pager (Parallex) Website In Yii.


Recommended Posts

One pagers or parallax websites are long HTML documents, with multiple sections, and then CSS and JavaScript for flash.To create one in Yii, you'd just need to output a view with all the right HTML, and apply the right CSS and JavaScript. 

Link to post
Share on other sites

thanks larry for your reply.

I have already the one pager theme. But how can I layout it. as we have to show all the models data on the same page. and also if any form insertion then it would be done on that page.

also how can I set the navbar url path for different sections of the page i.e. how to write the code in createUrl() method for different ids of the section of the page.

Link to post
Share on other sites

You're just rending a single page, so you'll need to pass along all the model instances needed by the entire page. And the action method would need to be able to handle any forms that might be submitted. To set the path/URLs, just add the corresponding anchors as a parameter when generating URLs.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...