soopers 0 Posted October 26, 2014 Report Share Posted October 26, 2014 How can we create one pager or parallex websites in yii framework ? Quote Link to post Share on other sites
Larry 428 Posted October 26, 2014 Report Share Posted October 26, 2014 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. Quote Link to post Share on other sites
soopers 0 Posted October 27, 2014 Author Report Share Posted October 27, 2014 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. Quote Link to post Share on other sites
Larry 428 Posted October 31, 2014 Report Share Posted October 31, 2014 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. Quote Link to post Share on other sites
Recommended Posts
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.