CakePHP 1.3 default file extension for the views template are in .ctp
If you open up .ctp files with Adobe Dreamweaver CS4, you will noticed that all the codes are in black and white. To make Dreamweaver show the color syntax of PHP & HTML in .ctp files, do the following:
- Navigate to Dreamweaver CS4 Installation folder/configuration/DocumentTypes
- Open up MMDocumentTypes.xml
Search for:
1
| winfileextension="php,php3,php4,php5" |
Replace with:
1
| winfileextension="php,php3,php4,php5,ctp" |
Restart your Dreamweaver CS4 if it is running. Open up again and you will notice that .ctp files now has the same color syntax as .php files.
Willie Programming, Software .ctp in cakephp, cakephp .ctp dreamaweaver, edit .ctp cakephp, open .ctp with dreamweaver
If you would like to remove this irritating dotted line when users click and hold the image, just do the following on your stylesheet in CSS:
1
2
3
| a {
outline: none;
} |
Easy !~ But this would also means it will remove dotted line around all hyperlinks (including text hyperlinks) unless you define a class for it:
1
2
3
| a.YOURCLASS {
outline: none;
} |
Willie Programming image dotted line, img dotted line, remove dotted line
Need a icons to do the above in Windows OS?
Easy! Just create a .bat file and fill in the following:
For Shutdown:
For Reboot:
For Logoff:
For Abort Shutdown:
Take note that the -t parameter is the number of seconds Windows take to perform this task. For instance if shutdown.exe -s -t 3600, Windows will takes 1 min before it shut down.
Hope it helps
Willie Programming, Software
Last year April, I bought a MHR Venom helmet.
But due to my carelessness, occasionally dropping the helmet, the side plate was in a bad shape. Visor will come out whenever I ride fast or when I wind up/down my visor. Asking for the price for the replacement of the side plate costs about $10. It’s totally not worth to change consider that I bought this helmet for around $20++ ?
Henceforth, I went to buy a white Mfizz Evolution II helmet. Free delivery to my house and a free helmet bag. Costs me $65 due to its light-weight and fibre glass shell construction. In my opinion, I think the pricing was better than Lim Ah Boy (LAB) where I was quoted around $70.

The best part is that when I bought this helmet today, it comes along with a First Street Legal Tinted Visor. Totally love it! No more risking paying $40 fine for wearing tinted visor!
For those interested in getting the helmet, you can find the supplier @ http://www.helmetboys.com.
Willie Automobile, Life
In Singapore, majority of us live in HIGHLY DANGEROUS BUILDINGS (HDB).
Most people have also gotten used to PAY AND PAY (PAP) without any complains.
Not only do you have to pay, u PAY UNTIL BANKRUPT (PUB) when the flood comes.
If u don’t own a car, u can always take a MAD RUSH TRANSPORT (MRT), or get squashed in bus SIDE BY SIDE (SBS) by other commuters.
But if you have your own transport, then you will face EVERY ROAD PAY (ERP).
If you are born a male in Singapore, you will have to SERVE And FARK (SAF) entertaining peoples.
Throwing rubbish around is also not encouraged, because they will give you NEVER ENDING AGONY (NEA) doing corrective works.
Lastly not forgetting that you will have your own COFFEE PROVIDENCE FUND (CPF) for our government ensuring that Singapore is 101% corruption-free.
The government also overshot their budget to support the recent YOU OWNSELF GO (YOG) 2010 event. This event really have a poor turn out.
How sad it is to be in Singapore …
Willie Uncategorized
Free Window Registry Repair is a refreshingly simple tool for cleaning up your Windows Registry. It lacks the bells and whistles offered by some programs–such as special features for uninstalling programs or managing the Start menu–but thankfully so. This is a program that does something well and doesn’t stray from that success. – From CNET editor’s review
Some screen-shot of using Free Windows Registry Repair:

I personally find that this is better than CCleaner in term of repairing Windows registry as sometimes, CCleaner does not detect any Windows registry errors. Free Window Registry Repair is more thorough in checking errors as well as repairing it.
Links to download a copy of it:
http://www.free-windows-registry-cleaner.com/free_windows_registry_cleaner.html
http://download.cnet.com/Free-Window-Registry-Repair/3000-2086_4-10606555.html
Willie Software