Am working on YII project, I want to render an html form view in a pop up using fancy box pop up on clicking a link.How can this be done ? I have tried fancy box extension but its not working..KIndly redirect me how can i implement this…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Include the files in the action you want and the controller you want
I like to put the code and css directly in my theme folder.
Then, you build your own js with
$(document).ready(function(){$('.myfancyboxlinks').fancybox(););the link should look like
<a class="myfancyboxlinks" href="/ajax/fancybox">Open Fancybox!</a>I also like having an AjaxController.php with a method like this:
Then, you can do anything you want in /views/ajax/myfancyboxview