I’m building a fully ajax website follow this idea h ttp://tpoxa.com/2011/04/19/fully-ajax-website-with-yii/
But i got an error:
Declaration of EHttpRequest::redirect() should be compatible with that of CHttpRequest::redirect()
E:\wwwroot\ngaymua\protected\components\EHttpRequest.php(4)
<?php
class EHttpRequest extends CHttpRequest
{
public function redirect($url) {
if(is_array($url) && isset($url[0]))
$url = $url[0];
if(Yii::app()->request->isAjaxRequest){
$data = array();
if(Yii::app()->user->hasFlash('updatedata')) {
$flashdata = Yii::app()->user->getFlash('updatedata');
$data = $data + $flashdata;
Yes i have. Sorry for the late reply. Sorry i don’t have the code now, let me know if you have still not figured out to change URL in AJAX, i will post the code.
Anyone who needs any help with AJAX website, please post your queries here. I have been part of developing a complete AJAX website in YII. Will be happy to help.
Hi lavket, I followed the same tutorial, can you post the code for change URL in AJAX, please? Furthermore, when I load a view with Cgridview widget, after that I filter some columns the grid disappears! can you help me?