In property listing (property/listing/), I have a list of properties. When I click on any one of the properties(it goes to property edit page), the 'id' of that property should be added to sessions.
code: function edit() { $this->_setPropertyId(); .... }
function _setPropertyId() { $this->Credentials->setAttribute('propertyid', $this->params['id']); return true; }
When i do this, the sessions are being added, but not the first time i.e. when i click on any property, it goes to edit property page. now the sessions are not added, but when I refresh this page, the sessions are then added. What I want is, when i click on the property, the sessions should be set, before it goes to the edit page. How can i achieve this?
Don't get this one. You don't save $this->Credentials. ?
kaste, I am not saving the sessions/credentials in the database. I am using the 'Editam' style sessions using credentials.php(model) n calling it. do you mean its not possible?
@GKSR, you might reference to a copy of the Credential model instead of a reference. BTW, Credentials on Editam is not really my favorite code :(
1 to 5 of 5