Lithium PHP framework: User management

This is the configuration for simple user management function in Lithium php framework. Activate user/session in app/config/bootstrap.php app/config/bootstrap/session.php app/config/bootstrap/users.php app/controllers/SessionsController.php app/controllers/UsersController.php app/models/Users.php app/views/sessions/add.html.php app/views/users/add.html.php app/views/users/index.html.php Then access http://yourserver/users/add Add an user then uncomment the check in Users.add() Have fun!

Keep displaying previous URL to a page in Lithium php framework

Here is the php code to cache the previous access URL (for example an URL of a search request) so that you want to display it again whenever the users go back to the page. Activate Session in Lithium The below code can be put in, for example, your controllers for redirecting to the previous … More Keep displaying previous URL to a page in Lithium php framework

Debian Source List

To find the resource list Sample source list for Debian Wheezy deb stable main contrib non-free deb-src stable main contrib non-free deb wheezy-updates main contrib non-free deb-src wheezy-updates main contrib non-free deb wheezy/updates main contrib non-free deb-src wheezy/updates main contrib non-free If apt-get update says that it cannot … More Debian Source List

Git Error: gnutls_handshake() failed

Error error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing … fatal: HTTP request failed Solution: need to rebuild git with openssl sudo apt-get install build-essential fakeroot dpkg-dev mkdir ~/git-openssl cd ~/git-openssl sudo apt-get source git sudo apt-get build-dep git sudo apt-get install libcurl4-openssl-dev sudo dpkg-source -x git_1.7.9.5-1.dsc cd git_1.7.9.5 8. … More Git Error: gnutls_handshake() failed