Month: February 2016

  • CakePHP3 User Authorisation with Cake Bake

    CakePHP3 User Authorisation with Cake Bake

    Create Users Table: CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(50) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `role` varchar(20) DEFAULT NULL, `created` datetime DEFAULT NULL, `modified` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; In Terminal, Cake bake the MVC bin/cake bake model users && bin/cake […]

  • Admin Controller and View with CakePHP3 bake

    Admin Controller and View with CakePHP3 bake

    Example Commands bin/cake bake model pages && bin/cake bake controller –prefix admin pages && bin/cake bake template –prefix admin pages bin/cake bake model settings && bin/cake bake controller –prefix admin settings && bin/cake bake template –prefix admin settings bin/cake bake model articles && bin/cake bake controller –prefix admin articles && bin/cake bake template –prefix admin […]

  • Make Zurb 6 work better in IE8

    Make Zurb 6 work better in IE8

    Add the following just before the closing</head> of your page. <!–[if lt IE 9]> <script src=”//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js”></script> <script src=”//s3.amazonaws.com/nwapi/nwmatcher/nwmatcher-1.2.5-min.js”></script> <script src=”//html5base.googlecode.com/svn-history/r38/trunk/js/selectivizr-1.0.3b.js”></script> <script src=”//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js”></script> <link rel=”stylesheet” href=”css/ie8.css” /> <![endif]–> The ie8.css file is optional but there will be some changes you will need to make.