# |
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? |
# |
Sep 13th 2009, 16:34 |
dogmatic69 |
NoReGreT: break your app... first condition is a string |
# |
Sep 13th 2009, 16:33 |
NoReGreT |
dogmatic69: I didn't understand it in api.., http://pastebin.com/m6ae734ee in this case, what does it do |
# |
Sep 13th 2009, 16:31 |
dogmatic69 |
and it does exactly what it says... finds |
# |
Sep 13th 2009, 16:31 |
dogmatic69 |
NoReGreT: the first param is a string not array |
# |
Sep 13th 2009, 16:30 |
dogmatic69 |
~tell NoReGreT about api find |
# |
Sep 13th 2009, 16:30 |
NoReGreT |
what does find(arrayA, arrayB) do ? it's not clear in the book/api |
# |
Sep 13th 2009, 16:30 |
dogmatic69 |
jjwdesign: just make it 0 => 'code', 1 => 'code' and not 0 => array( 'code' ) |
# |
Sep 13th 2009, 16:29 |
unclezoot |
nope, but caching is disabled via web developer add on, plus i have cake caching turned off in the core, plus the /tmp folders are empty |
# |
Sep 13th 2009, 16:29 |
dogmatic69 |
jjwdesign: that looks fine |
# |
Sep 13th 2009, 16:28 |
dogmatic69 |
unclezoot: have you tried ctrl+shift+del in ff |
# |
Sep 13th 2009, 16:28 |
jjwdesign |
For example: http://bin.cakephp.org/view/1080185355 |
# |
Sep 13th 2009, 16:28 |
jjwdesign |
!bin |
# |
Sep 13th 2009, 16:28 |
unclezoot |
especially as the same code works in a view |
# |
Sep 13th 2009, 16:28 |
unclezoot |
well the html is coming out from the element, so im baffled why the js + css arent |
# |
Sep 13th 2009, 16:27 |
dogmatic69 |
unclezoot: i had the same problem and also thought it did not work, but it was just cache at the end |
# |
Sep 13th 2009, 16:27 |
unclezoot |
it's an admin thing so shouldnt affect performance |
# |
Sep 13th 2009, 16:27 |
unclezoot |
ill just build a plugin and be done with it |
# |
Sep 13th 2009, 16:27 |
jjwdesign |
I have a rather large bit of code in a component that builds out my conditionals to be used in find() and paginate(). Is it ok to have numeric indices/keys? |
# |
Sep 13th 2009, 16:27 |
unclezoot |
i have, they're not there |
# |
Sep 13th 2009, 16:26 |
dogmatic69 |
view sorce and find |
# |
Sep 13th 2009, 16:26 |
unclezoot |
the files arent even being requested |
# |
Sep 13th 2009, 16:26 |
dogmatic69 |
sometimes it has <script> some error </script> |
# |
Sep 13th 2009, 16:26 |
unclezoot |
they're not being requested |
# |
Sep 13th 2009, 16:26 |
unclezoot |
echo $html->css("/css/admin/nav/fg.menu", null, null, false); |
# |
Sep 13th 2009, 16:26 |
dogmatic69 |
if you inspect with firebug, check out what it says |
# |
Sep 13th 2009, 16:26 |
unclezoot |
i.e. $javascript->link("/js/fg.menu.js", false); |
# |
Sep 13th 2009, 16:26 |
unclezoot |
exactly the same way that it works in my test view |
# |
Sep 13th 2009, 16:25 |
dogmatic69 |
how you truing to load the js/css |
# |
Sep 13th 2009, 16:25 |
unclezoot |
only the html is coming out |
# |
Sep 13th 2009, 16:25 |
unclezoot |
and in the element itself, load various bits of js + css + some html |
# |
Sep 13th 2009, 16:25 |
unclezoot |
deploy an admin nav, by using $this->element('admin/nav') in my admin layout |