i use a single method, add/edit even if is user or admin,
the difference between add/edit is that on edit you have the ID set, or in
parameter or in $this-data
admin_editpost($id = null){
if(is_null($id){
//something
}
}
i guess you understand
vineri, 3 august 2012, 11:41:01 UTC+3, MetZ a scris:
Hi all..
I am in the process of migrate one of my apps fra 1.3 to cakephp 2.x and
I am wondering, what are the best practices for the new framework?
AND YES, I have read the documents/book :)
I am just wondering how you do it, so I can compare my work and see if I
am heading in the right direction with my app.
So if anyone could give me an idea about a couple simple add/edit
functions, and how the best practice for this, I would appreciate it :)
like:
admin_users_add() {
}
admin_users_edit() {
}
and other regular functions you might have an example for.
Thanks all!
Awesome!
-Tom
--
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+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php