ErrorException [ Notice ]: Undefined variable: agency

APPPATH/views/inc/javascript.min/Show_phone_email.php [ 2 ]

1 <script type="text/javascript">
2 $(function(){$(".phone").click(function(){$.ajax({type:"POST",url:"<?= URL::site('exec/phone.do'); ?>",data:"idAgency="+<?= $agency->getIdAgency()?>+"&idProject="+<?= $agency->getIdProject()?>,dataType:"text",async:false}).success(function(c){$(".phone").html(c);$(".phone").removeClass("label-danger");$(".phone").addClass("label-primary");$(".phone").removeClass("viewPhone")});return false});$(".email").click(function(){$.ajax({type:"POST",url:"<?= URL::site('exec/email.do'); ?>",data:"idAgency="+<?= $agency->getIdAgency()?>+"&idProject="+<?= $agency->getIdProject()?>,dataType:"text",async:false}).success(function(c){$(".email").html('<a href="mailto:'+c+'" style="color: white;">'+c+"</a>");$(".email").removeClass("label-danger");$(".email").addClass("label-primary");$(".email").removeClass("viewEmail")});return false})});
3 
4 </script>
5 
  1. APPPATH/views/inc/javascript.min/Show_phone_email.php [ 2 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  5. APPPATH/views/inc/javascript/Properties.php [ 326 ] » Kohana_View->__toString()

  6. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  8. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  9. APPPATH/views/inc/javascript.php [ 80 ] » Kohana_View->__toString()

  10. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  11. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  12. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  13. APPPATH/views/inc/template.php [ 287 ] » Kohana_View->__toString()

  14. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  15. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  16. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  17. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  18. {PHP internal call} » Kohana_Controller->execute()

  19. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  20. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  21. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  22. DOCROOT/index.php [ 119 ] » Kohana_Request->execute()

Environment