Skip to content

Instantly share code, notes, and snippets.

@DarkSmith
Created August 28, 2012 16:11
Show Gist options
  • Save DarkSmith/3499633 to your computer and use it in GitHub Desktop.
Save DarkSmith/3499633 to your computer and use it in GitHub Desktop.
Zend Framework 2 Command Line shell
#!/usr/bin/php
<?php
$applicationIndex = realpath(getcwd() . '/public/index.php');
if (!empty($applicationIndex)) {
include $applicationIndex;
} else exit('You are not in a valid Zend Framework Application root directory');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment