Hi
Please advice, how should I set up Table List tool.
I am going to make toggle button which have to show up "unpublish" on value 1, and "publish" on value 0.
My code in state field area looks like this, but does not work. I think the problem is mistake in element identifier $this->data['Data3']['state'] , because this is table and each row changes index number of the array
Please advice, how should I set up Table List tool.
I am going to make toggle button which have to show up "unpublish" on value 1, and "publish" on value 0.
My code in state field area looks like this, but does not work. I think the problem is mistake in element identifier $this->data['Data3']['state'] , because this is table and each row changes index number of the array
<?phpPlease, help to get it work
if ( $this->data['Data3']['state'] == "1" ) {
echo 'Unpublish';
} else {
echo 'Publish';
}
?>