You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LowerCamelCase member vars in Page class. This is already done, since all of this is possible: page.content_type, page.contentType, page.getContentType()
Consistent naming for methods (applications instead of app, eventFilters for events, etc.)
Integrate GitHub atom feed into the homepage of the website
Implement a query builder class for filtering, sorting und limiting of iterable data structures
Update ServerRequest in Container with current Request including needed arguments like route, routeParams or page Route with params can be retrieved by UrlManager
Won't fix or unsolvable
robots.txt doesn't work with internal PHP server (example link http://localhost:9999/robots.txt). Reason: Seems to be an issue with the PHP web server itself.
sitemap.xml doesn't work with internal php server (example link http://localhost:9999/sitemap.xml). Reason: Seems to be an issue with the PHP web server itself.
Prefix all twig filters, functions and tests with herbie_, h_ or similar (to prevent naming conflicts and better distinguish twig-owned filters, functions and tests). Reason: Makes filters, function or tests too clumsy.
Evaluate and include illuminate collections in twig templates. Reason: Collections are indeed very useful, but in Twig not as practical as thought.
The text was updated successfully, but these errors were encountered:
Possible solution for building a tree from a list. The tree could then be wrapped in a iterable class and handled with the several SPL iterator classes.
functionbuildTree(array$items)
{
$tree = [];
/* Initialize a reference array */$references = [];
foreach ($itemsas &$node) {
// Add the node to our associative array using it's ID as key$references[$node['id']] = &$node;
// Add empty placeholder for children$node['children'] = [];
// It it's a root node, we add it directly to the treeif (empty($node['parent_id'])) {
$tree[$node['id']] = &$node;
} else {
// It was not a root node, add this node as a reference in the parent.$references[$node['parent_id']]['children'][$node['id']] = &$node;
}
}
return$tree;
}
Todo list for the upcoming 2.x release.
Nice-to-have
example
folder towebsite
src
folder tosystem
sysplugins
folder toplugins
Suggestions
camelCase all page propertiesReason: recommended coding convention for twig is snake_casecamelCase all twig filter, functions and globals including attributesReason: recommended coding convention for twig is snake_caseIssues
event
folder toevents
herbie\sysplugin
namespace toherbie\sysplugins
tests
namespace toherbie\tests
commands
foldermiddlewares
folderNot necessary
Update ServerRequest in Container with current Request including needed arguments like route, routeParams or pageRoute with params can be retrieved by UrlManagerWon't fix or unsolvable
herbie_
,h_
or similar (to prevent naming conflicts and better distinguish twig-owned filters, functions and tests). Reason: Makes filters, function or tests too clumsy.The text was updated successfully, but these errors were encountered: