Opening CakePHP Files in Dreamweaver

vía: jamesfairhurst.co.uk

I primarily use Adobe Dreamweaver to create and code all of my websites, mainly because of the code highlighting and the way I organise my sites in separate folders. I realise that there are loads of text editors out there but Dreamweaver is what I’m comfortable with and it does the job.

When starting out with CakePHP I quickly found out that Dreamweaver doesn’t open .THTML and .CTP files automatically and I had to do a bit of hunting on the web to get the problem solved. The solution is pretty easy so this is just a quick post to get Dreamweaver opening .THTML and .CTP files.

THTML and CTP Files

Although I’m using CakePHP 1.1 which uses .THTML files I’ll also add the latest .CTP files which CakePHP 1.2 use. This is just saving time and when I do cross over and start using version 1.2 I don’t have to fiddle around with Dreamweaver again.

Modifying the Necessary Dreamweaver files

There are ultimately 3 files that you need to edit. The first two are located in the folder that you installed Dreamweaver, in my case this is “C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration” although I’m using the latest version of Dreamweaver previous versions also have a “configuration” folder so go there.

Open up “Extensions.txt” and on the first line at the very end add THTML and CTP separated by commas, so the line should read:

,MASTER,THTML,CTP:All Documents

Similarly add these two extensions to the “:PHP Files” line.

PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files

Next open the “DocumentTypes” folder and edit the “MMDocumentTypes.xml” file, just open it up using notepad or wordpad. Search for the line which has an id “PHP_MySQL” and add the THTML/CTP file extensions to both the “winfileextension” and “macfileextension” so the line should read:

winfileextension="php,php3,php4,php5,thtml,ctp"
macfileextension="php,php3,php4,php5,thtml,ctp"

The final file is another version of the “Extensions.txt” which is located in your “Documents and Settings” Folder in my case this is “C:\Documents and Settings\James\Application Data\Adobe\Dreamweaver 9\Configuration” just add the very same things you inserted earlier.

Wrapping Up

Restart Dreamweaver and you should now be able to open up and edit .THTML and .CTP files with everything nicely colour coded. A short post but a needed one for those who use Dreamweaver.

Posted in Errores, PHP | Tagged , | Comments Off

IE6ify

¿Eres un amante devoto de Internet Explorer 6.0? ¿Es el único navegador que muestra las páginas como quieres verlas? ¿Los demás navegadores muestran las páginas demasiado bien? Pues acaba con ello… con IE6ify podrás destrozar cualquier web y sentir que estás de nuevo con tu amado IE6 :D

IE6ify
Este script, encargado de colocar aleatoriamente todos los elementos de la página, simula a la perfección el algoritmo encargado de interpretar el HTML de Internet Explorer 6. Y nos ayudará mostrar cualquier página con ese toque único que solo un gran navegador puede darnos. IE6 adictos venir a mi!!!

vía: aNieto2K

Posted in Curiosidades | Tagged | Comments Off

Disable Autoplay of Audio CDs and USB Drives

To get to the configuration screen for this setting, go to Start Menu \ Run and type in:

gpedit.msc

You will see the Group Policy window. You should select Administrative Templates \ System in the tree view:

You will see an item in the right side pane called “Turn off Autoplay”

Double click the item, and set the radio button to Enabled, and change the “Turn off Autoplay on” to All Drives.

Now you should be safe from the autoplay monster.

Posted in Windows | Tagged | Comments Off

Las leyes de Murphy para diseñadores

1. Si tienes dos versiones de una misma foto, enviarás la incorrecta a la imprenta.
2. Si un texto consiste en dos palabras, una estará mal escrita.
3. Si la tirada ha salido mal, nunca será problema del impresor.
4. Si muestras tres diseños al cliente, el que menos te guste será el que elijan.
5. Si muestras dos diseños al cliente, te pedirán un tercero. Cuando lo entreges, escogerán el primero.
6. Los mejores diseños nunca sobreviven al contacto con el cliente.
7. Tu mejor idea ya tiene copyright.
8. La creatividad aumenta de manera inversamente proporcional a la distancia que te separa del estudio.
9. Doctores, astronautas y fontaneros necesitan práctica para hacer bien sus trabajos. Cualquiera con una copia de Publisher es diseñador gráfico.
10. El número de colores para el diseño de un cliente, será el número de colores del diseño original, más dos.
11. El disco que te da el cliente, no funcionará en tu ordenador.
12. Si compras un equipo nuevo para poder leer ese disco, será el último que recibas de ese tipo.
13. Si se usa cualquier cosa hasta su máxima capacidad, se rompe.
14. Cualquier cosa que se pueda cambiar, se cambiará hasta que no quede tiempo para cambiar nada.
15. Al diseñador se le notificará que es necesario modificar el diseño después -y sólo después- de que haya terminado todo el trabajo (a menudo, es denominada como la Ley de “¡Y nos lo dice ahora!”).

Posted in Curiosidades | Comments Off

Guía de Ortotipografía

Guía Ortotipográfica

Posted in Curiosidades, Gráfico | Tagged | Comments Off

CSS3 Cheat Sheat

download PDF

Posted in CSS | Tagged , | Comments Off

Jquery Coda Slider Effect

coda-slider

Fuente: http://jqueryfordesigners.com/coda-slider-effect/ (tutorial y código)

Demo: http://jqueryfordesigners.com/demo/coda-slider.html

Posted in Scripts | Tagged | Comments Off

Jquery Interface Elements

interface-elements-jquery

interface.eyecon.ro
aca está todo (demos, archivos,  documentación, etc…)

:: demos ::

:: download ::

Posted in Scripts | Tagged | Comments Off

JQuery popeye (enlarge img, not pop-up)

Fuente:  http://herr-schuessler.de/blog/jquerypopeye-an-inline-lightbox-alternative/

Demo:  http://dev.herr-schuessler.de/examples/jquery-popeye/

Archivos:  http://plugins.jquery.com/project/popeye

Posted in Scripts | Tagged | 1 Comment

Good design is…

Good design is innovative.
Good design makes a product useful.
Good design is aesthetic.
Good design helps us to understand a product.
Good design is unobtrusive.
Good design is honest.
Good design is durable.
Good design is consequent to the last detail.
Good design is concerned with the environment.
Good design is as little design as possible.
Back to purity, back to simplicity.

Lo dice el gran Dieter Rams en esta entrevista [en]

via: CRITERION

Posted in Uncategorized | Comments Off