가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

모의 시험

홈페이지로 설정

이 페이지 북마크

이메일 주소 구독

Yii 면접 질문과 답변

Ques 26. Explain Yii's DAO (Data Access Objects).

Yii's DAO provides a low-level database access layer for executing SQL queries and accessing database data without using ActiveRecord.

Example:

// $command = Yii::app()->db->createCommand($sql); $result = $command->queryAll();

도움이 되었나요? Add Comment View Comments
 

Ques 27. What is Yii's CActiveRecord find() method used for?

The find() method in CActiveRecord is used to retrieve a single record based on the specified conditions.

Example:

// $post = Post::model()->find('status=:status', array(':status'=>1));

도움이 되었나요? Add Comment View Comments
 

Ques 28. Explain Yii's dynamic form validation.

Dynamic form validation in Yii allows you to define validation rules in the model based on specific conditions, providing flexibility in validation logic.

Example:

// public function rules() { if ($this->scenario == 'scenario1') { return array('field1', 'required'); } }

도움이 되었나요? Add Comment View Comments
 

Ques 29. How to handle user sessions in Yii?

Yii handles user sessions by using the 'session' component. You can configure session parameters in the application configuration.

Example:

// 'components' => array('session' => array('timeout' => 1440))

도움이 되었나요? Add Comment View Comments
 

Ques 30. Explain Yii's migration command options.

Yii's migration command provides options like 'up', 'down', 'create', and 'history', allowing you to perform actions such as migrating up or down, creating a new migration, and viewing migration history.

Example:

// $ yii migrate/up

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.