World-Three-Technologies / Masxaro-Prototype

Other
8 stars 4 forks source link

Structure changed #21

Closed yaxing closed 13 years ago

yaxing commented 13 years ago

Jimmy,

About the new structure, the reason why I didn't separate Operation.php and .php files is that they're actually the same and are all APIs for front end, just Operation.php integrates certain kind of operations together, like a scheduler. However, if you think this way is better for you, we can do the modification. What do you think?

Rafe commented 13 years ago

well, the reason for create an api folder is because the pages and api are mixed together, it will be cleaner if we can separate them. (also we can strip off the Operation word since it is under api folder, show that it is an operation)

another thing is merge two test folder into one.

But those are not that important, and will make conflict. So do it when you're free and feel it's okay.

2011/7/18 yaxing < reply@reply.github.com>

Jimmy,

About the new structure, the reason why I didn't separate Operation.php and .php files is that they're actually the same and are all APIs for front end, just Operation.php integrates certain kind of operations together, like a scheduler. However, if you think this way is better for you, we can do the modification. What do you think?

Reply to this email directly or view it on GitHub: https://github.com/gpryzby-wtt/Masxaro-Prototype/issues/21

yaxing commented 13 years ago

Ok, one more thing is that I think we should separate PHP and HTML and don't mix them together? I assumed that pages only include JS and HTML?

Rafe commented 13 years ago

pages have some php for template also.

2011/7/18 yaxing < reply@reply.github.com>

Ok, one more thing is that I think we should separate PHP and HTML and don't mix them together? I assumed that pages only include JS and HTML?

Reply to this email directly or view it on GitHub:

https://github.com/gpryzby-wtt/Masxaro-Prototype/issues/21#issuecomment-1598175

yaxing commented 13 years ago

Can't they all be handled by JS depending on AJAX returned data?

Rafe commented 13 years ago

Well, the only thing php do is extract the same part like header to /layout, to be reuse. In this way, it won't have to much duplicate html.

2011/7/18 yaxing < reply@reply.github.com>

Can't they all be handled by JS depending on AJAX returned data?

Reply to this email directly or view it on GitHub:

https://github.com/gpryzby-wtt/Masxaro-Prototype/issues/21#issuecomment-1599095