How Dirty function

release

#1

Hi,
Can anyone help me to get the details for “Dirty” in CakePHP? It is bit confused for me.

Thanks//


#2

What details do you want? Fields in entities are dirty if they have been changed since it was loaded. You can check, and change, whether a field is dirty. It’s pretty straight-forward.


#3

thanks for your prompt response. It would be better if you could simply type with example.
tnx


#4

It’s really unclear what you want to know, so I don’t know what example might be helpful. Have you read the manual section about this?


#5

Thanks for your support. I got it now.


#6

can you please help me how to add “datepicker” in below tag. My code is below under $(document).ready(function () {

let addField3 = ‘

\n’ +
’ +
\n’ +
‘’;

("#datepicker").datepicker( { dateFormat: 'yyyy', onSelect: function(dateText, inst){ (’#select_date’).val(dateText);
$("#datepicker").datepicker(“destroy”);
}
}
);

But, date is displaying in the field.
Please help me to solve the problem.


#7

This is a completely different question, and should be posted separately instead of under an unrelated thread where people won’t likely see it. Also, it will be helpful if you use the code formatting option.