The Auth login stores the user information in the Session (with Auth key). The Auth->user() is actually a wrapper function to the session Auth.User key. The Auth logout function delete the informations from the session.
Author Archives: admin
Instalar o DD-WRT (TP-Link TL-WR1043ND)
O DD-WRT é uma firmware, baseado em Linux, que adiciona diversas funcionalidades e opções de controle em relação as firmwares originais que vem nos roteadores sem fio. Ele é desenvolvida por uma equipe de programadores independentes, liderada pelo BrainSlayer.
Um demonstração do DD-WRT pode ser visualizada em http://www.dd-wrt.com/demo/
Retrieve Related Model Data in One-To-Many Relation
What Just Happened?
The first line in the index() action of the AuthorsController sets the model attribute $recursive to 1.
Continue reading
How to disable IPV6 on Vista
IP Version 6 presently isn’t used on our network.
To disable this function on Vista, refer to the attachment.
CakePHP Tip: Routing for static pages
Here is the website for the TestDisk and PhotoRec software that
was used to recover your flash drive in Linux at our last LinuxChixLa meeting at
Philippes:
Linux USB Flash Drive Recovery
Here is the website for the TestDisk and PhotoRec software that
was used to recover your flash drive in Linux at our last LinuxChixLa meeting at
Philippes:
Custom Kernels on Debian
- Download a kernel tarball from kernel.org and put it in a new directory and extract
- Install the ‘kernel-package’ package
- If you’d like to make any modifications, do so and run ‘make-kpkg –initrd kernel_image’ (with sudo or fakeroot if you’re not root) in the root of the kernel source
- It will base the configuration on your running kernel and prompt for new features/drivers/etc. If you’re unsure or don’t care about a question, just press enter.
- After the process is complete, you’ll have a brand new kernel package one directory up. All you need to do is install it using “dpkg -i”. It will create an initramfs image and add it all to GRUB for you in the postinst scripts.
- Reboot to run the new kernel.
Powered by http://jonathancarter.org/2011/02/03/custom-kernels-on-debian/
Atheros WiSOC based Hardware
Introduction
This page shows the contents and descriptions of standard and advanced wireless settings for Atheros based Routers. If you are a Broadcom or Ralink user, please refer to this page for Broadcom/Ralink wireless settings.
CakePHP multi-model view
If your using the latest 1.2 code, check out Model::saveAll in the api
eg. Your view might look something like this:
Continue reading
Cakephp related tables show id’s instead of values
Whenever CakePHP automagically fetches lists from your tables, it uses the idkey for the value and the $displayField for the text.
If your table has a name or title field, CakePHP automatically displays it as the display field. So, either rename the field that you want as your display field (say, candidate_name to just name) or set the $displayField variable in your model: