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 8119707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:52:47+00:00 2026-06-06T04:52:47+00:00

so im working on a page to learn Yii. this is it: http://devcave.freeiz.com/ What

  • 0

so im working on a page to learn Yii. this is it: http://devcave.freeiz.com/

What i am trying to do is, when i click on login, a div is sliding down, where the login.php form should be.
The question is how do i render that into the main.php’s div tag.

i tryed $this->renderPartial('//site/login',array('model'=>$model)); , but i get Undefined variable: model error.
I read trough the Understanding yii view rendering flow but it seems i didnt quit get the point.

Any suggestions please?

  • 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-06T04:52:50+00:00Added an answer on June 6, 2026 at 4:52 am

    Use this:

    $this->renderPartial('site/login',array('model'=>new LoginForm));
    

    And in login view you should define action like this:

    $form=$this->beginWidget('CActiveForm', array(
        // ...
        'action' => $this->createUrl( 'site/login' ),
        // ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working off this test page: http://www.comehike.com/test_fb_connect.php When the user logs in using
I am working on a theme options page and trying to send the css
I have been trying to get a basic reorderlist working following this guide ->
I'm currently working on a website that you'll find here: http://steadfastdesignfirm.com/rgw/ . I used
I'm working to learn Scala--coming from a C++ background. I am trying to write
I'm trying to learn jQuery's ajax functions. I've got it working, but jQuery doesn't
I'm trying to learn php and step one is getting php working in some
I am following the instructions on the page- http://guides.macrumors.com/Installing_LaTeX_on_a_Mac I tried setting up tex
I have been working through Microsoft's ASP.NET MVC tutorials, ending up at this page
I'm working through examples in a book trying to learn ASP.NET, and I've stumbled

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.