Releases: bruensicke/radium
radium v2.1.1
This is mainly a bugfix release that contains bugfixes for the following:
- handling of multiple neon files within
Neon::find()
- renders date fields in forms as expected
- using file-based navigation on admin (read: scaffolding) sidebar
The only feature addition is the schema-type of neon, which directly renders a textarea on scaffold.
radium v2.1.0
- Introducing file-based data storage
- enhanced scaffolding (auto-guesses model by Controller)
- added file-based navigations per library
- Assets Import / Export improved with savable default values
- File utility with library relative file-find and included file-content conversion
- some bugfixes
File-based data storage
- create a file at
{:library}/data/{:class}/{:id}.neon
- Trigger a
$class::load($id)
and you will find your entity - Trigger a
$class::find('all', array('conditions' => array('slug' => 'foo'));
and you will return all entities from files if database has none.
file-based navigations per library
You can now create custom navigations per library. Create a file at {:library}/data/nav/sidebar.neon
with the following content:
-
name: Users & People
url: /users
icon: users
-
name: Pages
url: /pages (optional, will be derived from name)
icon: page-content
badge: 5
It will be displayed wherever you use your Navigation
Helper like this: echo $this->Navigation->group('sidebar')
or you create your own navigation on the fly via echo $this->Navigation->render($navigation)
with the same array-structure.
Sidebar is rendered automatically on scaffold-views and within the radium layout.
File utility
You can just load any file content from any library with File::contents('radium/path/file.extension')
. It will automatically retrieve the absolute path to any loaded library and not only load the content but convert it to any format, that is understood by the Converter class, currently: markdown
, yaml
, neon
, json
, ini
, mustache
and handlebars
.
Enhanced Scaffolding
Just create a Controller, extending radium\controllers\ScaffoldController
and see how it automatic guesses the correct model for that Controller and scaffolding CRUD actions. For example:
<?php
namespace admin\controllers;
class UsersController extends BaseController {}
radium v2.0.0
This is a major redesign with a new admin interface and much more stability and functionality.
radium v1.0.0
This release marks the first release of a series of years developing this library. Mainly, these are concepts on how a plugin or base-framework should look like. It is inspired by a lots of content-management systems as well as best practices for framework-code.
Its predecessor, flour, has been built for cakephp, but is now obsolete. Most of the concepts are still alive, though and can be found within radium.