QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

core

Proposal for extra file structure

Hello folks.

I'm a former contributor to QCubed project, but last 2.5 years and have been away from this project in behalf Drupal.

I want to back to this great open source project, I just download the 2.0.2 version and I'm trying to migration a personal project to this version in order to get familiar with new stuffs.

I want to suggest to core developer some extra structure to enable project be updated in a easy way.

Scenery:

We we built an application with QCubed we have 3 basic elements QForms, QTemplates, Assets ( JS, CSS, Images, Custom PHP Libraries).

So my ideas is create this extra files in filesystem of QCubed

QCubed
--------> App
----------------> QForms
----------------> QTemplates
----------------> Assets
------------------------> JS
--------------------------------> Images
------------------------> CSS
------------------------> PHP ( Custom Libraries)

So the idea is modify the core to enable QForms can be included in AutoLoad, and also templates, assets could be referenced include templates.

Now maybe are wondering, why is necessary, well my ides is when you get a full application working and a we have a new release i.e 2.1.x, we don't need to make a complex process of update, following this structure we need to do simple steps listed below

0) Backup our application folder
1) Download latest version of QCubed
2) Copy our app folder inside new QCubed version
3) QA our application
4) Enjoy

I know the auto generated form are really useful for small application, but for professional applications, we always needs to create our own version of QForms.

If the core team are agree ir little agree with this proposal, I can post this changes to subversion.

Regards,

enzo

Display alert upon no connectivity during ajax calls

I have developed a JavaScript modification to QCubed.

This JS is basically to avoid frozen browser whenever there is no network when triggering any ajaxaction. It will display an alert window (div) in the position described in post.js: 171. Perhaps the function is similar to gmail or facebook when you have network problem.

qcodo.alertDisplay(250,20,"Network Connection Error\r\n. Please try again later. If it does not work, try to refresh the page.\r\nClick Ok button to close this message.", true, false);

How to use it: