Book a Demo

Author Topic: Cakephp  (Read 2885 times)

cauleyfj

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Cakephp
« on: August 18, 2007, 07:15:17 am »
Has anyone had any experience with Cakephp? Are there any interfaces between it and EA?
Frank J. Cauley

bscott

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Cakephp
« Reply #1 on: November 01, 2007, 10:22:40 am »
I have created some templates to transform a class model to a data model using the Cake naming conventions eg ClassName -> class_name table and to correctly create the primary and foreign keys according to Cake conventions. I use an add-in to do the name conversions.

I have also created a custom language with code generation templates to create the model .php files with the $hasOne, $hasMany, $belongsTo variables set according to the model class associations.

I am currently trying to see how I can create two source files so I can generate the controller php files as well. The only way I can see how to do this from a custom language is to use an add-in.

I would be happy to share this but it is very much in the early stages at the moment.