After some time of searching the web for a solution to why Gii wouldn’t let me preview a Model Generator code, but instead always returned a new page with the message “Unable to find the code you requested”, I at last realized that I had disabled javascript in the browser. So if you are experiencing something like me, the solution could simply be to enable javascript in your browser.