Text this: Controlled-Phase Gate Using Dynamically Coupled Cavities and Optical Nonlinearities