<?php
//implement hook_menu()
function Users_menu() {
$items['userlogin'] = array(
'title' => t('Login System'),
'page callback' => 'UserLogin_block_view',
'access callback' => TRUE,
);
}
// create block
function UserLogin_block_view($block_name = '')
{
$form = drupal_get_form('user_login_block');
$block = array
(
'content' => $form,
);
return $block;
}
// flush cache
?>
Monday, 2 March 2015
Sunday, 1 March 2015
PHP in Action I just read this book is Awesome
To keep programming productive and enjoyable, state-of-the-art practices and principles are essential. Object-oriented programming and design help manage complexity by keeping components cleanly separated. Unit testing helps prevent endless, exhausting debugging sessions. Refactoring keeps code supple and readable. PHP offers all this-and more.
PHP in Action shows you how to apply PHP techniques and principles to all the most common challenges of web programming.
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
I am what I read for Dries Buytaert
Almost every night before bed, I spend time reading. I love the feeling of falling asleep a little wiser than when I woke up. And often I read in the morning too. I read about photography, technology, investing, business, and more.
I love reading anything that provides a "mental workout"; articles or blog posts that stretch my mind or that point me in a different direction, that help me articulate my own emotions and my thoughts, or that make my imagination travel in time and space. Changing minds is changing lives. Reading makes me who I am.
While reading begets more reading, I love writing down my own thoughts as well, and that is what I decided to do this night. Sleep well!
Subscribe to:
Posts (Atom)
