Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Yii::import('zii.widgets.CPortlet');
- class LoginPortlet extends CPortlet
- {
- public function renderContent()
- {
- $form=new LoginForm;
- if(isset($_POST['LoginForm']))
- {
- $form->attributes=$_POST['LoginForm'];
- if($form->validate())
- $this->controller->refresh();
- else{
- $this->controller->forward('/login');
- }
- }
- $this->render('_login',array('form'=>$form));
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement