Join or Login

Posts Tagged ‘Zend Framework’

Zend Framework Testing - Day 5 - Directory Structure

by me


Now that we have Eclipse up and running with the directory layout of:
zendtest
->public_html
->logs
You will only see logs if you set up your virtualhost like this. We will add the default layout structure from the Zend Framework Quickstart and add some new folders so we get a directory structure like this
zendtest
->application
->->controllers
->->models
->->views
->->->layout
->->->scripts
->library
->->Zend
->logs
->public_html
->->css
->->javascript
->->img
We can build this directory structure in eclipse or we can open a terminal and make the default layout structure like this
["yourusername"@localhost ~]$ cd /var/www/sites/zendtest
["yourusername"@localhost zendtest]$ mkdir -p application application/models application/views application/controllers public_html/css public_html/img public_html/javascript application/views/scripts application/views/layout && cp -R /home/”yourusername”/Desktop/ZendFramework-1.6.0/library ./
With a copy of the Zend Framework, if you have it located on your desktop, at the end of the terminal command.

Zend Framework Testing - Day 4 - Setting Up Eclipse

by me


This post will be short and sweet. I could easily get Eclipse from my package manager and set it up for use with the Zend Framework, but why do that when I can get an Eclipse all in one file from Eclipse
so I ‘ll goto the Eclipse - PDT download page and download the Linux version and untar it on my desktop ( personal default setting ).

Now I take this file and put it in my home user directory ( i.e. /home /yourusername/ ). On my desktop I want an icon to link to the application so I right click on my desktop and then create new -> Link to Application, this will open up a GUI to add an application to your desktop. Then I click Application tab and add the description for Eclipse - PDT ( uh “Eclipse - PDT” ) and use the same for the comment. On the command I click browse and locate ‘/home/yourusername/eclipse/eclipse’. Now you can make it pretty by clicking the General tab and clicking the picture, you’ll get a dialog for your icon pictures, choose other icons and browse. Now look in your /home/yourusername/eclipse folder and you should find icon.xpm, eclipse logo. Now after that put Eclipse - PDT in the text-box.

Now the first time you start Eclipse you will get a prompt for your default workspace directory I would put /var/www/sites. Since we made it so our username can modify this folder. Anytime we add a new folder to this directory it will be considered a project. Now that eclipse is open we can go down to the the icons on the bottom and right click to add a new fast view->other->internal web browser. in the internal web browser we can put http://zendtest/ to view our project from the web. Now when you are working on your files you can click the world icon and see the result.

Powered by WordPress