Subversion Repositories SmartDukaan

Rev

Rev 10582 | Rev 10815 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10582 Rev 10751
Line 67... Line 67...
67
				{
67
				{
68
					$data['response'][$cm]=$configdata[$cm];
68
					$data['response'][$cm]=$configdata[$cm];
69
				}
69
				}
70
			}
70
			}
71
		}
71
		}
-
 
72
		//print_r($data['response']['response']);
-
 
73
		if(isset($data['response']['response']) && !empty($data['response']['response'])){
-
 
74
			foreach($data['response']['response'] as $rs)
-
 
75
			{
-
 
76
				if(!isset($rs) || empty($rs)){
-
 
77
					$cache = 0;
-
 
78
					break;
-
 
79
				}
-
 
80
			}
-
 
81
		}
-
 
82
		if(!isset($cache) || $cache != 0){
72
		setCache($configdata['module'],$cachemodule,$data['response']);
83
			setCache($configdata['module'],$cachemodule,$data['response']);
-
 
84
		}
73
		$data['response']['response'] = $this->InsertBeforeKey($data['response']['response'],'home_menu','recommended_accessories',$tmp['response']['recommended_accessories']);
85
		$data['response']['response'] = $this->InsertBeforeKey($data['response']['response'],'home_menu','recommended_accessories',$tmp['response']['recommended_accessories']);
74
		//end of set cache\
86
		//end of set cache\
75
		$this->layout->view('home/home_view',$data);
87
		$this->layout->view('home/home_view',$data);
76
	}
88
	}
77
	public function InsertBeforeKey($originalArray,$originalKey,$insertKey,$insertValue){
89
	public function InsertBeforeKey($originalArray,$originalKey,$insertKey,$insertValue){