The resistor is used for another priniple.
generally, the photo resistor/transistors etc.. detect changes in light and and show these changes up by altering current.
the extra resistor will utilise the special relationship between voltage and current, which is when the current changes, the voltage also must change in line with it(not always present wil ldr type devices)