Home > centOS > centOS – cakephp

centOS – cakephp

How to tune eclipse for cakePHP. (for quick shot, jedit/bluefish).

1. Download eclipse mannually from >

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-php-galileo-SR1-linux-gtk.tar.gz

OR

[root@www ~]# wget http://eclipse.mirror.kangaroot.net/technology/epp/downloads/release/galileo/SR1/eclipse-php-galileo-SR1-linux-gtk.tar.gz
–2010-02-15 21:11:54–  http://eclipse.mirror.kangaroot.net/technology/epp/downloads/release/galileo/SR1/eclipse-php-galileo-SR1-linux-gtk.tar.gz
Resolving eclipse.mirror.kangaroot.net… 62.213.203.174
Connecting to eclipse.mirror.kangaroot.net|62.213.203.174|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 144831030 (138M) [application/x-gzip]
Saving to: `eclipse-php-galileo-SR1-linux-gtk.tar.gz’

100%[===================================================================================================================>] 144,831,030 1.35M/s   in 1m 47s

2010-02-15 21:13:41 (1.29 MB/s) – `eclipse-php-galileo-SR1-linux-gtk.tar.gz’ saved [144831030/144831030]

2. unzip

[root@www ~]# tar xvfz eclipse-php-galileo-SR1-linux-gtk.tar.gz -C /root/

3. Run it

[root@www eclipse]# pwd
/root/eclipse
[root@www eclipse]# ls
about_files  artifacts.xml  dropins  eclipse.ini   features  libcairo-swt.so  p2       readme
about.html   configuration  eclipse  epl-v10.html  icon.xpm  notice.html      plugins
[root@www eclipse]# ./eclipse

4. Tell eclipse that *.ctp extention files should be highlighted using html/php/css/javascript standard
a. workspace? = /var/www/html  (this is the path of my apache root directory, you case can be a pan drive?)
b. projectname = cakephp  (inside this directory i have my cakephp, you name can be somthing else)

c. window > general > content type > Text > PHP content type > File assosiations > click Add > and add this *.ctp

5. Done

Advertisements
Categories: centOS
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: