private static function inlist($constraint, $attr, $value)
 {
     // 0=value
     // 1=attr
     // 2=lista
     $msg = DisplayHelper::message(self::MSG_INLIST);
     $msg = str_replace('{0}', $value, $msg);
     $msg = str_replace('{1}', $attr, $msg);
     $values = '';
     foreach ($constraint->getList() as $value) {
         $values .= $value . ', ';
     }
     $values = substr($values, 0, -2);
     return str_replace('{2}', $values, $msg);
 }
Exemplo n.º 2
0
        padding: 7px 12px;
        background-color: #fff;
        margin: 10px;
        min-height: 80px;
        overflow: auto;
      }
    </style>
  </head>
  <body>
    <h1><?php 
echo h('img', array('src' => 'app_32.png', 'align' => 'top'));
?>
 Error 404</h1>
    <div class="message">
      <?php 
echo DisplayHelper::message('error.404.NotFound');
?>
    </div>
    <div class="body">
      Aplicaci&oacute;n: <?php 
echo $ctx->getApp();
?>
<br/>
      Controlador: <?php 
echo $ctx->getController();
?>
<br/>
      Acci&oacute;n: <?php 
echo $ctx->getAction();
?>
<br/>
Exemplo n.º 3
0
function msg($key, $locale = NULL, $defaultMessage = "")
{
    // TODO: agregar un tercer parametro para indicar si se hace o no echo del resultado.
    return DisplayHelper::message($key, $locale = NULL, $defaultMessage = "");
}
Exemplo n.º 4
0
        padding: 7px 12px;
        background-color: #fff;
        margin: 10px;
        min-height: 80px;
        overflow: auto;
      }
    </style>
  </head>
  <body>
    <h1><?php 
echo h('img', array('src' => 'app_32.png', 'align' => 'top'));
?>
 Error 403</h1>
    <div class="message">
      <?php 
echo DisplayHelper::message('error.403.Forbidden');
?>
    </div>
    <div class="body">
      Aplicaci&oacute;n: <?php 
echo $ctx->getApp();
?>
<br/>
      Controlador: <?php 
echo $ctx->getController();
?>
<br/>
      Acci&oacute;n: <?php 
echo $ctx->getAction();
?>
<br/>
Exemplo n.º 5
0
        padding: 10px;
      }
      .lineNumber {
        color: #999;
        margin-right: 10px;
      }
    </style>
  </head>
  <body>
    <h1><?php 
echo h('img', array('src' => 'app_32.png', 'align' => 'top'));
?>
 Error 500</h1>
    <div class="message">
      <?php 
echo DisplayHelper::message('error.500.InternalServerError');
?>
    </div>
    <div class="body">
      Aplicaci&oacute;n: <?php 
echo $ctx->getApp();
?>
<br/>
      Controlador: <?php 
echo $ctx->getController();
?>
<br/>
      Acci&oacute;n: <?php 
echo $ctx->getAction();
?>
<br/>