ZEND: Create a CLI file and activate it in the shell
Written by
on 15/05/2014
Tags:
bash, shell, command line, Zend 1.x
To add a cron job and make it accessible in the shell, you first need to configure your environment to point to the libraries.Step 1: Add the zf script to the /usr/bin/ directory (zf.sh and zf.php) These files are available in the bin directory of the ZendFramework 1.x library. You can either copy them or create a symbolic link.Step 2: Configure your bash to recognize the zf alias. Edit the ~/.bashrc file and insert the following line
alias zf="/usr/bin/zf.sh"
Step 3: Add the global variable ...