Advertisement
fernandezekiel

Untitled

Apr 4th, 2013
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  * To change this template, choose Tools | Templates
  5.  * and open the template in the editor.
  6.  */
  7.  
  8. public function actionUpdateMap() {
  9.    
  10.     $model = new Map('search');
  11.     $model->unsetAttributes();
  12.     if(isset($_GET['Map'])){
  13.         $model = $_GET['Map'];
  14.     }
  15.    
  16.    
  17.     $this->renderPartial('_map',array('model'=>$model),false,true);
  18. }
  19.  
  20. /****
  21.  * in the view _map
  22.  */
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement