Skip to content

Instantly share code, notes, and snippets.

@markhatchell
markhatchell / new-cake
Last active August 14, 2018 10:44
CakePHP 3 & Bootstrap 3 install and setup script
#!/bin/bash
#
# run this to download the new-cake installer script:
# curl -L "https://gist.githubusercontent.com/markhatchell/1e6c1acd75b6150058fb/raw/f295074747f2fd2f218b5df9a92b22a1cf96a518/new-cake" -onew-cake; chmod +x new-cake;
#
# useage: new-cake [project_name]
#
#
echo "updating composer" && \
curl -sS https://getcomposer.org/installer | php
@markhatchell
markhatchell / default.ctp
Last active June 26, 2022 15:37
Base bootstrap 3 template for CakePHP3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<?= $this->Html->meta('icon') ?>
<title><?= $this->fetch('title') ?></title>