Tag: Cake Bake

  • 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 […]