kohana - weird array behaviour in php -


i'm scratching head understand kohana.so request treat question in context of kohana,if suitable. in routes file i'm watching weird thing that

'route' => '(<controller>(/<action>(/<keyword>(/<start>(/<limit>))))) //if output line got noting  ((/(/(/(/))))) //it means angle brackets , words between them not shown. 

now question in cases need code in such way.why working in such way if don't need angle brackets , words between them.

that's not weird behaviour.

because document's default content-type html, parse text tags. in order avoid have echo using function htmlspecialchars(), or change content-type.

echo htmlspecialchars($array['route']);  // or  header('content-type: text/plain'); echo $array['route']; 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -