Sunday, May 27, 2012

Naming conventions: how should I do this?

Hi. I'm new to CakePHP (just started yesterday)

After playing with it for a while, I just started working on the actual project i want to make using Cake.

I want to make an Admin section of my site. In this admin section, there should be three pages:
  1. Add User (so an admin can create a new user)
  2. List Users (the admin can see all registered users)
  3. Add Item (the admin can add an 'item' to the database)
I am very unsure of what to name my Model, Controller, and Views. AdminsController, Admin, [add_user, list_users, add_item]? It just doesn't seem right.

Could someone tell me definitively how I should be doing it, and if not, how you THINK I should be doing it?

thanks,
-Jacob

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: