[eluser]Majd Taby[/eluser]
well, one of the major ideas with codex is that it doesn't generate any code, that's where the flexibility stems from. If it generates views and controllers, and you decide to add a field, you would have to figure out what it generated, and modify it. However, with codex, you would only need to add the definition to the form, then add the field to the db and you're done.
I used symfony to generate a crud, much like codex does, but when my client wanted me to add one single field, I had to rebuild the models, add the sql, modify the views, modify the schema.yml file...it was horrible. That was the main motivation behind codex.
On the other hand, I was planning on adding some form of groupings so that I can use fieldsets, I really like your way. Also, In a future version where I want to generate the sql, I think i'm going to change the form setup (in codex, yaml is optional), to be more concise. My only gripe with your way however, is that it would be difficult to add special parameters to more advanced plugins (see the website and browse through the plugins, like the File plugin for example.
Quote:My main concern when i paused the development was allowing none input groups in forms
I don't really understand the concern, could you expand? Do you mean adding headers (i.e. labels w/o input fields)? You can accomplish that easily with codex, simply by creating your own plugin. There's nothing to it really, it would actually only take you about 10 lines to do it.
EDIT:
In fact, let me show you how easy it is.
Create a file called NoneInput.php in the plugins directory (either system/plugins or system/application/backend/plugins), and put this code in it:
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class NoneInput extends jTabyForms
{
function NoneInput($name,$params) {
jTabyForms::initiate($name,$params);
}
function getHTML()
{
$html = $this->prefix;
$html .= "<h2>{$this->name}</h2>";
$html .= $this->suffix;
return $html;
}
}
?>
Then in your form setup, you can simply use it by:
Code:
.
.
.
head_name:
class:NoneInput
.
.
.
If you have the inflector helper loaded, it'll display <h2>Head Name</h2> in between your prefix and suffix.