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 -
- create full mvc structure it? (can or should implement somehow[how?] in
lists
package? - if not, how can attach tables? (since
use
dropped in version 2) - 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
Post a Comment