fix CPHALCON_DIR
model api update
Merge branch 'master' into 1.2.4