Classical and quantum effects in nonlinear photonic crystals