jaws-project / jaws

Jaws is a Web Application Framework and Content Management System for building dynamic web sites.
htt://jaws-project.com
39 stars 17 forks source link

New structure for gadgets file/directories #16

Closed afz closed 11 years ago

afz commented 11 years ago

Let me know your thought about this new structure for gadgets:

\gadgets \gadgets\Banner.php ( in current structure this file named Info.php and included in gadget directory ) \gadgets\Banner\ \gadgets\Banner\Actions.php \gadgets\Banner\Actions\ \gadgets\Banner\Actions\Foo.php \gadgets\Banner\Actions\Admin\ \gadgets\Banner\Actions\Admin\Bar.php ... \gadgets\Banner\Model.php \gadgets\Banner\Model\Foo.php \gadgets\Banner\Model\Admin\ \gadgets\Banner\Model\Admin\Bar.php ...

In this new structure we will split actions/model/adminmodel for using less memory, speed executing and more easy developing.

And another change is moving Info.php to outside of gadget directory(root of gadgets directory) for logical class naming.(I need your idea about this one specially)

mkhahani commented 11 years ago

Seems good, less memory and convenient development.

About info.php I personally don't like files outside the gadget directory. Also that makes gadgets directory messy.