ErrorException [ Notice ]: Undefined variable: model

MODPATH/custom/vanityurl/classes/controller/vanityurl.php [ 9 ]

 4   
 5     public static function redirect() { 
 6       
 7           if ( count( Orm::factory("Vanityurl")->where("source_url", "=" , Request::initial()->uri())->find_all() )) {
 8             
 9                 Request::current()->redirect( $model->dest_url , 301);
10           }
11     }
12 }
  1. MODPATH/custom/vanityurl/classes/controller/vanityurl.php [ 9 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Vanityurl::redirect()

  3. MODPATH/filters/classes/filters.php [ 49 ] » call_user_func_array(arguments)

  4. MODPATH/atlantis/classes/controller/atlantis.php [ 137 ] » Filters::run(arguments)

  5. {PHP internal call} » Controller_Atlantis->action_page()

  6. SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)

  7. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  8. SYSPATH/classes/kohana/request.php [ 1154 ] » Kohana_Request_Client->execute(arguments)

  9. DOCROOT/index.php [ 112 ] » Kohana_Request->execute()

Environment