<?php
function redirect($url) {
if (headers_sent() === false)
{
header('Location: ' . $url, true, 302);
}
exit();
}
$pattern = '~^/products/okna/$~';
$url_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if ( preg_match($pattern, $url_path) ) {
redirect('http://google.com');
}
<?php
namespace Backend\Models;
use Common\Model\BaseModel as Model;
class Pages extends Model {
protected $table = 'pages';
protected $key;
public function allPages() {
while(!$rows = parent::findAll()){
throw new \Exception('нет статей');
и тд......
<textarea name="feedback" id="feedback__textarea" class="feedback__textarea"></textarea>
${"GLOBALS"}["gieqhjiyejrg"]="uri";${"GLOBALS"}["piwdysvikh"]="dummy_page";