Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // DataGrid
- //$this->view->headScript()->appendFile('/js/venice/state/SessionProvider.js');
- $this->view->headScript()->appendScript('
- Ext.state.SessionProvider = Ext.extend(Ext.state.CookieProvider, {
- readCookies : function(){
- if(this.state){
- for(var k in this.state){
- if(typeof this.state[k] == "string"){
- this.state[k] = this.decodeValue(this.state[k]);
- }
- }
- }
- return Ext.apply(this.state || {}, Ext.state.SessionProvider.superclass.readCookies.call(this));
- },
- setCookie : function(name, value){
- document.cookie = "ys-"+ name + "=" + this.encodeValue(value) +
- ((this.expires == null) ? "" : ("; expires=" + this.expires.toGMTString())) +
- "; path='.$this->_request->getRequestUri().'" +
- ((this.domain == null) ? "" : ("; domain=" + this.domain)) +
- ((this.secure == true) ? "; secure" : "");
- }
- });
- ');
Add Comment
Please, Sign In to add comment