Log message #1034369

# At Username Text
# Sep 13th 2009, 17:21 unclezoot my plugin.helpers methods arent working in my layout :\
# Sep 13th 2009, 17:20 Dimatter nevermind :)
# Sep 13th 2009, 17:20 dogmatic69 i think there is a way to do it with find also
# Sep 13th 2009, 17:20 unclezoot isnt that only relevant for i18n?
# Sep 13th 2009, 17:19 Dimatter you write a string and then replaces "%" within that string with some variables for example
# Sep 13th 2009, 17:19 dogmatic69 there is a cake way
# Sep 13th 2009, 17:19 unclezoot then sprintf($string, $value)
# Sep 13th 2009, 17:19 dogmatic69 name => $name?
# Sep 13th 2009, 17:19 unclezoot you put %s in your string
# Sep 13th 2009, 17:19 Dimatter yeah.
# Sep 13th 2009, 17:19 unclezoot you talking about strings?
# Sep 13th 2009, 17:18 Dimatter syntax even
# Sep 13th 2009, 17:18 Dimatter what was the sytax of the "replace the % with string" thing ? something like "SELECT item_count FROM users WHERE id = '%'", 3
# Sep 13th 2009, 17:16 unclezoot if i load a plugin.helper in my app_controller, should it be accessible in my layout?
# Sep 13th 2009, 17:16 unclezoot hmmm
# Sep 13th 2009, 16:47 ionas82 first I would recommend just reading Chapter 1 to 3 at least
# Sep 13th 2009, 16:42 dogmatic69 follow the tut on book first it has everything to get you started
# Sep 13th 2009, 16:42 NoReGreT thanks
# Sep 13th 2009, 16:41 dogmatic69 or just what cake gives you
# Sep 13th 2009, 16:41 ionas82 my suggestion is to use sha256
# Sep 13th 2009, 16:41 ionas82 NoReGreT, md5 is outdated
# Sep 13th 2009, 16:41 ionas82 http://teknoid.wordpress.com/2008/10/06/introduction-to-cakephp-features-build-an-app-in-less-than-15-minutes/ and http://teknoid.wordpress.com/2008/10/08/demystifying-auth-features-in-cakephp-12/
# Sep 13th 2009, 16:40 dogmatic69 no need to do anything
# Sep 13th 2009, 16:40 dogmatic69 when you use auth a login method can look like this: function login(){} and it will work
# Sep 13th 2009, 16:40 NoReGreT thanks
# Sep 13th 2009, 16:39 ionas82 NoReGreT, see teknoids blog
# Sep 13th 2009, 16:39 dogmatic69 this is how you should be logging in http://book.cakephp.org/view/649/Logging-in
# Sep 13th 2009, 16:39 dogmatic69 that explains acl and auth in cake nicely
# Sep 13th 2009, 16:39 dogmatic69 http://book.cakephp.org/view/641/Simple-Acl-controlled-Application
# Sep 13th 2009, 16:38 NoReGreT well, direct me to a better tutorial if you know any
# Sep 13th 2009, 16:38 dogmatic69 and a salt
# Sep 13th 2009, 16:38 NoReGreT sha ?
# Sep 13th 2009, 16:38 NoReGreT why ? what's used other than md5 ?
# Sep 13th 2009, 16:38 dogmatic69 find a better tutorial to follow
# Sep 13th 2009, 16:37 dogmatic69 also cake does not use md5 so you will never find a user like that
# Sep 13th 2009, 16:37 dogmatic69 NoReGreT: it should be $user = $this->find( 'all', 'conditions' => array( array( 'username' => $data['username'], 'password' => md5( $data['password'] ) ) ), 'fields' => array( 'id', 'username' ) );
# Sep 13th 2009, 16:35 HardPhuck to see which action called it?
# Sep 13th 2009, 16:35 HardPhuck can i get action from model?
# Sep 13th 2009, 16:35 NoReGreT and the 1st condition isn't a string in this case.. as seen
# Sep 13th 2009, 16:34 NoReGreT dogmatic69: http://bakery.cakephp.org/articles/view/simple-form-authentication-in-1-2-x-x
# Sep 13th 2009, 16:34 dogmatic69 NoReGreT: wher did you get that code?