My name is David or Dave (he/him) and I work as a Senior Software Engineer
I work with PHP and Typescript. Along with an array of frameworks!
- ๐ฎ Avid gamer
- ๐ถโโ๏ธI like to hike
- ๐บ IPA drinker
- ๐ My cat is called Zeus
Nice Admin bake theme for CakePHPs Bake plugin.
License: Other
Method such as Form->input()
have been deprecated.
It would be worth creating a version of the bake script for the 3.x version of the framework. Especially as by default it bakes using the paginate()
shortcut method in the controller which is a bit dirty imho.
Namespace issue with Gravatar needs fixing
The template wraps the call to Paginator->numbers()
in a <ul>
tag which is created by the helper, leading to duplicate nested <ul>
Move the gravatar plugin out of the plugin into the NiceAdmin plugin where it can play with the other helpers
In
src/Template/Bake/Element/Controller/index.ctp
Correct is:
$this->set('<%= $pluralName %>', $this->paginate($query, [
'order' => [$this-><%= $currentModelName %>->aliasField('modified') => 'desc']
]));
Your code are withiut ].
Thank you.
I wonder if the plugin can have an install shell, or script in composer which automatically symlinks the stylesheets?
$ bin/cake plugin assets symlink NiceAdminBakeTheme
Need to update the templates to replace direct entity property access with use of the get()
accessor method.
When outputting a datetime string it should be customised to the timezone and locale.
$entity->get('modified')->nice('Europe/London', 'en_GB');
$entity->get('modified')->timeAgoInWords(['timezone' => 'Europe/London']);
Allow views to detect field type and automatically use the Boolean helper.
$this->Boolean->display($data['Model']['field'])
Make views aware of Behaviours such as SoftDelete to make button display conditional.
As I have purge and deleted buttons, it makes sense that they should not be included if the SoftDelete behaviour isn't attached to the model. Could also be removed if the Utils
plugin isn't installed at all.
Where is sql our how to I create a table db.examples ?
bin/cake bake template --theme=NiceAdminBakeTheme Examples
Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table **'db.examples' doesn't exist** in [/www/app/vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 131]
bin/cake bake template --theme=NiceAdminBakeTheme --prefix=Admin Examples
Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table **'db.examples' doesn't exist** in [/www/app/vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 131]
Thank you for your plugin. Very good.
Missing ] continue
See:
bin/cake bake controller --theme=NiceAdminBakeTheme Customers
Baking controller class for Customers...
Creating file /backup/www/cake/cake3theme/src/Controller/CustomersController.php
Wrote /backup/www/cake/cake3theme/src/Controller/CustomersController.php
Exception: syntax error, unexpected ')', expecting ']' in [/backup/www/cake/cake3theme/src/Controller/CustomersController.php, line 25]
2019-06-07 16:32:04 Error: [ParseError] syntax error, unexpected ')', expecting ']' in /backup/www/cake/cake3theme/src/Controller/CustomersController.php on line 25
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.