public function actionSave()
 {
     $uid = Yii::app()->user->id;
     $pid = $_GET['pid'];
     $lat = $_GET['lat'];
     $lng = $_GET['lng'];
     $zoom = $_GET['zoom'] == 0 ? 13 : (int) $_GET['zoom'];
     if (NULL === ($fm = Filemarks::model()->find("file_id=:fid", array('fid' => $pid)))) {
         $fm = new Filemarks();
     }
     $fm->file_id = $pid;
     $fm->lat = $lat;
     $fm->long = $lng;
     $fm->zoom = $zoom;
     $fm->created_at = time();
     $fm->status = 1;
     $fm->save();
     exit;
 }
<?php

$marks = Filemarks::model()->find("file_id=:fl", array(':fl' => $photo['file']));
?>
<div class="viewPhoto">
	<table cellpadding="0" cellspacing="0" width="1160px">
		<tr>
			<td class="left">
				<div class="container">
					<div class="title" style="margin-bottom:10px;">
						Фотография <?php 
echo $aroundInfo['num'];
?>
 из <?php 
echo $aroundInfo['count'];
?>
					</div>
					<div class="photo">
						<a class="navigation prev" href="/id<?php 
echo $user_id;
?>
/aphotos/<?php 
echo $nav_link;
?>
/<?php 
echo $aroundInfo['prev'];
?>
"></a>
						<a class="navigation next" href="/id<?php 
echo $user_id;
?>