$this->uri->segment(n); // n=1 for controller, n=2 for method, etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Place this script in dir: /usr/bin | |
# Change permissions: sudo chmod +x /usr/bin/MAMP-DOCK-INVISIBLE | |
# | |
# Ensure the MAMP 'Info.plist' file has the following entry: | |
# <key>LSUIElement</key> | |
# <string dock-visible="1">NO</string> | |
# | |
# Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LOCAL_BRANCH="master" | |
LIVE_BRANCH="live" | |
REMOTE_NAME="deploy" | |
if [ "$(git symbolic-ref -q HEAD)" != "refs/heads/${LOCAL_BRANCH}" ]; then | |
echo "Not on ${LOCAL_BRANCH}, not deploying" | |
exit 1 | |
else |