php - CakePHP, how it should be used to create this(inside) app? -


what have following db structure(tables):
lists[name,id]
list_items[title,list_id,content]
i've created needed files , code(the mvc) needed manage first table(lists).
added hasmany model class. @ point stuck.
need solution managing each item (basic crud, assume complex management advanced crud find out how myself).
specific: since it's content have no place (but admin) used itself, should -

  1. create full mvc structure it? (can or should implement somehow[how?] in lists package?
  2. if not, how can attach tables? (since use dropped in version 2)
  3. would element(cake concept/context) appropriate way create view such situation?

any insight appreciated.

if undertant correctly, want create crud part of tables yourself, without bake.

you need write mvc estrucure , carefull naming combention of cakephp http://cakebaker.42dh.com/2006/02/18/cakephp-conventions/

you need model app/models , a controller app/controllers (remember naming combentions) , each model need folder /app/views.

alfo, every, every function in controller needs view, if action doesn´t write screen

i hope usefull.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -