Hi folk!!
I added a new engine to aiki called purephp. It's a experiment which allows
me to improve internal library. how does it work? All widget content is
php, without any markup. The render only use two field: css, and widget.
The final code is very short (125 lines with comments)
Perhaps this can be other way to develop with aiki: only php with a good
api ( here we have a lot of work), and adding some useful libraries
(doctrine, moustache..), but note, please, that for me is only another way.
To play with new engine make this:
1) add a site called purephp with purephp as engine
INSERT INTO `aiki_sites` VALUES(NULL, 'A pure php Site', 'purephp', 1, '',
'en', 'en', 'en', 'purephp', '', 'purephp', '');
2) Add a widget.
INSERT INTO `aiki_widgets` VALUES(NULL, 0, 'homepage', 'purephp', 'body',
'', 0, '', 1, 0, '', 'homepage', '', '', '', '', 'echo "hello world. Now is
",date(''Y-m-d'');', 'body { color: red;}', '', 0, 0, '', '', 0, '', '', 0,
0, 0, '', 1, 2, 'w', 0);
3) type localhost/aiki/purephp and you see a red message (echo "hello
world. Now is ",date(''Y-m-d''));
Roger
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp