Skip navigation

Monthly Archives: March 2013

“Salto-db generator is an Eclipse plug-in that allows you to generate JAVA classes in order to interact between your application and a datasource.

At this time, salto-db generator supports two persistance layers softwares:

  • salto-db: salto-db dataobjects generation
  • hibernate: Plain Old Java Objects (POJO) generation + xml mapping files or EJB3 annotations (since Hibernate 3.2)”


P.S: Another interesting project to keep an eye on it->

# Download the release

# Un-zip ZF archive

# Rename ZF directory to more generic so that we can upgrade later
mv ZendFramework-1.11.4 ZendFramework

# Make sure ZF is readable and executable
chmod 755 -R ZendFramework

# Copy global php.ini to ZF
cp /etc/php5/cgi/php.ini ~/ZendFramework/

# Update include path inside our custom php.ini
# You you favorite text editor to open php.ini or use nano
nano ~/ZendFramework/php.ini
# Now, go to section called “include_path” and at the end of the existing value add your ZF library path
include_path = “.:/usr/local/lib/php:/usr/local/php5/lib/pear:/home/[YourUserName]/ZendFramework/library”

# To validate php path, use:
/usr/local/php5/bin/php -v

# As of now, executing above command gives:
PHP 5.2.15 (cli) (built: Dec 15 2010 14:09:31)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

# Open ZF Tool script (use nano or other text-editor)
nano ~/ZendFramework/bin/
# Use Dreamhost PHP 5 Library – no need to find it

# find zf.php: pear first, same directory 2nd,
if test “@php_dir@” != ‘@’php_dir’@’; then
SELF_LINK_TMP=”$(readlink “$SELF_LINK”)”
while test -n “$SELF_LINK_TMP”; do
SELF_LINK_TMP=”$(readlink “$SELF_LINK”)”
PHP_DIR=”$(dirname “$SELF_LINK”)”

“$PHP_BIN” -c /home/[YourUserName]/ZendFramework/php.ini -d safe_mode=Off -f “$PHP_DIR/zf.php” — “$@”

# Open your .bash_profile
nano ~/.bash_profile

# Add following line at the end of file to create an alias
alias zf=/home/[YourUserName]/ZendFramework/bin/

#create the project
zf create project yourzendapp

# Use this to create sym-link to global ZF library (don’t forget to update your project-path)
ln -s /home/[YourUserName]/ZendFramework/library/Zend /home/[YourUserName]/[YourZFProjectPath]/library/Zend