December 2006
4 posts
5 Things
I got tagged on this meme by Matthew Pennell. Matthew and I work together on Digital Web Magazine.
Five things you (probably) didn’t know about Walker Hamilton (Me)
I was first trombone in a big band jazz band in high school. We were so good we recorded an album and go invited to play a small tour in Germany.
I once helped run an ongoing house party in Carbondale, IL called “The...
Siteframe Anew
I realized the other day that my Siteframe could be used to provide a templated environment in which to allow subordinates to add page content. (I ended up using it to that end.)
Before I could get there, though, I needed to make sure that some things were a little more secure and that I have everything working smoothly. I added in some more checking so that (I don’t think) the template cannot...
RememberMe component
Okay, as promised, here is my RememberMe component.
class RememberMeComponent extends Object
{
var $components = array('Session', 'Cookie');
var $uses = array('User');
function startup(&$controller)
{
//use this later, perhaps.
}
function remember()
{
if(!$this->Session->check('User') && $this->Cookie->check('login'))
{
loadModel('User');
$user =&...
CakePHP remember Me? (part 2)
So I was having a conversation with Mariano Iglesias and mrwooster(username) on the cakePHP list and Mariano made an instant and awesome suggestion:
Looking at your code, I would have to say that it is not recommended to add
models at the AppController level. Your code is just asking to be made a
component :)
Something like app/controllers/components/remember_me.php:
class...