PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/app/plugins/javan/controllers/javan_controller.php

https://github.com/ata/steak
PHP | 42 lines | 19 code | 7 blank | 16 comment | 0 complexity | 42217232018291346074895ae7f75b00 MD5 | raw file
  1. <?php
  2. class JavanController extends JavanAppController
  3. {
  4. var $name = 'Javan';
  5. var $uses = array('Link');
  6. function login()
  7. {
  8. }
  9. function logout()
  10. {
  11. }
  12. /**
  13. * Returns a series of Link models indicate current path.
  14. *
  15. * @return array An array of Link model indicates current path
  16. * @access public
  17. * @static
  18. */
  19. function breadcrumb()
  20. {
  21. $breadcrumbs = array();
  22. pr($this->Link);
  23. //$cLink = ClassRegistry::init('JavanLink');pr($cLink);
  24. //$conditions = array("controller"=>$this->info['controller'], "action"=>$this->info['action']);
  25. //$link = $cLink->find("first", array("conditions"=>$conditions, "recursive"=>-1));
  26. //if(!$link){
  27. // //trigger_error(__('Alamat yang Anda akses tidak terdaftar.', true), E_USER_WARNING);
  28. // return false ;
  29. //}else{
  30. // $breadcrumbs = $cLink->getpath($link['Link']['id']);
  31. //}
  32. return $breadcrumbs;
  33. }
  34. }
  35. ?>