R
R
raycheel2014-02-03 19:50:12
Yii
raycheel, 2014-02-03 19:50:12

Yii framework: how to make login via modal window?

Hello! Help me understand the problem, I'm trying to make a login through a modal window, for the implementation I needed to load the form in the modal window:

<?php
echo CHtml::ajaxLink('Вход', $this->createUrl('user/login'),
array('update' => '#exampleModal'),
array('onclick' => '$("#exampleModal").arcticmodal();')
);
?>

But the whole page is loaded into the modal window, not just the form. Who knows help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Litvinov, 2014-02-03
@raycheel

Maybe the problem is in the controller?
Try instead $this->render();-$this->renderPartial();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question