Agile Toolkit

Hey All.

I'm new here so - very sorry if I'm posting something wrong.

It's been over 12 years since I started PHP development. All through the time I have been keeping something to myself and maybe it's time to share, right?

It is a PHP framework. In short - while other framework put more "Java" into PHP, I try PHP to remain the way it is - Elegant, Fast, Flexible.

Maybe code does talk for itself so here is a small snippet:

$g=$this->add('Grid')
->setSource('person')
->addColumn('text','name')->makeSortable()
->addColumn('text','surname')->makeSortable()
->addColumn('money','avg_salary','average salary')
->addTotals();

$g->dq
->join('salary','salary.person_id=person.id')
->group('person.id')
->field('avg(salary.sum) avg_salary');

$g->addButton('Refresh')->js('click',$g->js()->refresh());
$g->addButton('Change Month')->js('click')->univ()->dialogURL('Change Month','ch_month');

$g->addQuickSearch(array('name','surname'));
$g->addPaginator();

There you have it. This will give you a grid on a standard template with 3 columns, two of them can be sorted and third showing average salary. Query is grouped. Table would have totals underneath and also quick-search field.

This also shows how you could use JavaScript. In above example I am binding click event to buttons. Clicking refresh button will refresh grid using ajax request. Of course this only touches the base. There are more:

MVC support:
$g->setController('Controller_Person');

Authentication(s);
$api->add('BasicAuth')->setSource('user')->usePasswordEncryption('md5')->check();

Forms:
$f=$this->add('Form');
$f->addField('line','Name')->set('Enter your name here')->js('focus')->set('')->unbind('focus');
$f->addField('reference','Country)->setValueList($f->add('Controller_Country'));

What do you think? I can post more examples but most importantly I'd like to hear feedback. Framework is LGPL. www.atk4.com.

Best Regards!
romans

Forums: 

heh.. not many posts around here ....:)

Well the framework from what I can see looks interesting.

It would be nice if in the default package you would provide a MVC structure and some basic controllers / models / views so people can see the layout

Also your documentation link from the new website doesn't work, it returns a 404 error.

Hey CoolGoose.

Thanks, good points. Current implementation of MVC in Agile Toolkit (and several other frameworks for that matter) are not really very efficient to use. So we want to make it right, before publishing it.

Here are some thoughts on the matter:
http://blog.atk4.com/thinking-about-improved-implementation-of-modeltable/

Meanwhile. There is a cool realtime demo of the toolkit: http://www.agiletech.ie/demo/

I have spending more and more time recently, so new stuff should come up quickly.

The demo is nice.
I'll keep an eye to see how the MVC progresses.

Hey CoolGoose. How do you like the recent improvements. I dunno if you are following.

I must say I'm loving the new website and the docs seem to be coming along quite nicely.

I'll post a follow up after i read around it a bit.

Pages

Add new comment