My knees are a bit shot and I get round it by doing leg extensions and leg presses but stay away from locking out or even reaching the top of the movement - my leg sets are just all one continuous movement. They're done quite slowly though to keep the pressure on the muscle and I'll often incorporate smith squats in there at the end but with my knees wrapped.