<script>
$(document).ready(function() { // <-- почему-то пусто у вас в примере
$('#sort_overpay').click(function(){
$.get('http://localhost/%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2/',
{
credits: <?php echo $ajax_sort ?>,
sortby: 'sort_overpay'
})
.done(function(data) {
$('#general-wrapper').html(data); // <---- оберните весь (!) свой контент в div[id=general-wrapper] - в таком случае Вы сможете изменить весь контент страницы.
});
});
});
</script>
$MyArray = Array ( 'id' => 1, 'descr' => 'Молоко', 'price' => 15 );
$key = array_serach('1', $MyArray); // вернул 'id'
echo $MyArray[ $key ];
ini_set('display_errors', 1);
error_reporting(E_ALL);
$to = "name@mydomain.com";
$subject .= "".$emailSubject."";
$headers .= "Bcc: ".$emailList."\r\n";
$headers .= "From: no-reply@domain.co.uk\r\n" ."X-Mailer: php";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = '<html><body>';
$message .= 'THE MESSAGE FROM THE FORM';
if (mail($to, $subject, $message, $headers)) {
$sent = "Your email was sent!";
} else {
$sent = ("Error sending email.");
}
class Stest extends Test {
public function test($f_value, $s_value) {
$svalue = trim(func_get_arg(1));
return parent::test($f_value, $s_value) ;
}
}
class Test {
public function test( $params ) {
$s_value = dosmthng( $params[1] );
return $s_value;
}
}
class Stest extends Test {
public function test($f_value, $s_value) {
$data = func_get_args();
$data[1] = trim($data[1]);
return parent::test ($data ) ;
}
}
$profile = [
'user' => $user,
'profile' => $profile,
'passwordForm' => $passwordForm,
'avatar' => $avatar,
];
$friends = [
'list' => $list,
'blocked' => $blocked
];
return $this->render('profile', [
'profile' => $profile,
'friends' => $friends
]);