Section Zend 1.x

ZEND: Create a CLI file and activate it in the shell

Written by on 15/05/2014
Category:   PHP, Shell, Zend
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 ( 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/" Step 3: Add the global variable ...