CakePHP
83
src/Template/Cookie/write_cookie.ctp
The cookie has been written.
Create another View file called
read_cookie.ctp
under the same Cookies directory and
copy the following code in that file.
src/Template/Cookie/read_cookie.ctp
The value of the cookie is:
Create another View file called
check_cookie.ctp
under the same Cookies directory and
copy the following code in that file.
src/Template/Cookie/check_cookie.ctp
if($isPresent):
?>
The cookie is present.
else:
?>
The cookie isn't present.
endif;
?>
Create another View file called
Do'stlaringiz bilan baham: