CakePHP when user has Javascript disabled?

Hi,

I’m new to CakePHP and have been going through some of the tutorials. I have been noticing that it seems to be common practice to reply of Javascript popups for warning messages to the user. I have tested this with Javascript turned off in my browser and it breaks the code. Can anyone with some CakePHP experience let me know if their are simple work arounds to this issue or in general is CakePHP development assuming Javascript will be turned on?

Thanks!