Costume blackholes

2013-03-04 Thread SoulRaven
hello,
is possible to make and trigger a costume black hole for a specific action?
without using the default methods, like post, auth, secure?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Cakephp 2.x best practice when adding/editing content?

2012-08-03 Thread SoulRaven
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