Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:01:53+00:00 2026-06-07T19:01:53+00:00

Am working on YII project, I want to render an html form view in

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:01:55+00:00Added an answer on June 7, 2026 at 7:01 pm
    Yii::app()->getClientScript()->registerCssFile(Yii::app()->theme->baseUrl . '/css/jquery.fancybox-1.3.4.css'); 
    Yii::app()->getClientScript()->registerScriptFile(Yii::app()->theme->baseUrl . "/js/jquery.fancybox-1.3.4.pack.js",  CClientScript::POS_HEAD);
    

    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:

    public function actionFancybox()
    {
        if(Yii::app()->request->isAjaxRequest)
        {
            //do stuff here
            // ............
            $this->layout = '//path/to/fancybox/layout';
            $this->render("myfancyboxview");
        }
    }
    

    Then, you can do anything you want in /views/ajax/myfancyboxview

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with Yii framework and using smarty view render. I have to working
I am working on a Yii project. How can I use the ON DUPLICATE
I'm working in a Yii project which also have a console application. Form the
I'm working with yii framework forms and I have a form like this: <?php
I am using yii framework. I want to hide pagination button of CListView widget
I am using Kohana 3.2 on a project that I am working on. I
can any post the how to filter a grid view timestamp(Y-m-d h:m:s) column using
I'm trying to get full text search working in Yii and I can't seem
To begin, I'm working entirely in PHP using the Yii framework, although Yii ultimately
Working on dom html . I want to convert node value to string: $html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.