Showing posts with label YII. Show all posts
Showing posts with label YII. Show all posts

Sunday, December 2, 2012

YII: Fetch rows using msql In clause


$criteria = new CDbCriteria; 

$criteria->addInCondition("model_id", $_POST['autoId']); 

$Model= Model::model()->findAll($criteria);

YII: Getting the Base URL


<?php echo getBaseUrl(true) ?>