In this recipe, we will introduce workarounds for instances when we are not in control of the column naming used in our database schema. This situation can arise when the system is already under the constraints of other development environments or when working with a legacy system.
This recipe uses the chapter_04
database that we set up in the chapter introduction and Phalcon Developer Tools, which we will use to set up a project skeleton.
Follow these steps to complete this recipe:
We need to have an application skeleton for experimentation. If you already have such an application, you can skip this step. Create a project skeleton using the
simple
template:phalcon project model_conventions simple
Now point the web browser at the root directory of the project. There should be a page with
Congratulations! ....
. If we see theVolt directory can't be written
error message, then permissions of the directoryapp/cache
need to...