View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Routing - ProjeQtOr
 
 

Routing

More
12 Apr 2013 15:38 #1 by Cr0w
Routing was created by Cr0w
Hi,

I'm currently trying to find the way the views are routed in Project'OR RIA. I've found that Projector.js sends an Ajax request to ObjectMain.php to load the new data to be displayed. A new dynamic instance of the posted "objectClass" is launched. But I want to find where the view is loaded exactly. Can you explain how it is done ?

Thx

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 21:54 - 12 Apr 2013 21:54 #2 by babynus
Replied by babynus on topic Re: Routing
You can find the global description in function loadContent() of /view/js/projector.js.

The structure of the page is set in /view/main.php.
To know what part is changed, well it all depends on the action...
It is the "destination" parameter in loadContent().

Babynus
Administrator of ProjeQtOr web site
Last edit: 12 Apr 2013 21:54 by babynus.

Please Log in or Create an account to join the conversation.

More
18 Apr 2013 14:48 #3 by Cr0w
Replied by Cr0w on topic Re: Routing
In fact, I would like to add a new layer of implementation in Project'Or RIA to override some parts. It can be a good idea to develop some specificities and then if these ones could be integrated to the main solution it could be done by just putting them in the appropriate layer.
This idea will help versions' migrations.

Then I would like to understand how the routing is done on the server side.

For example : The server is asked to provide a view "V.php" (we will call it V). But, if in the custom layer (of the application) there is a "V.php" (V'), the server must override de main implementation of V by providing V' to the client.

Please Log in or Create an account to join the conversation.

More
18 Apr 2013 20:36 #4 by babynus
Replied by babynus on topic Re: Routing

In fact, I would like to add a new layer of implementation in Project'Or RIA to override some parts. It can be a good idea to develop some specificities and then if these ones could be integrated to the main solution it could be done by just putting them in the appropriate layer.
This idea will help versions' migrations.

Ticket #1058 recorded.

Then I would like to understand how the routing is done on the server side.

For example : The server is asked to provide a view "V.php" (we will call it V). But, if in the custom layer (of the application) there is a "V.php" (V'), the server must override de main implementation of V by providing V' to the client

This routing is done is the function __autoload($className) method in projector.php file

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
19 Apr 2013 09:59 #5 by Cr0w
Replied by Cr0w on topic Re: Routing
Hi,

Autoload just manages with classes but not views (hope I'm not misunderstanding).

Does the "Ticket #1058" involves the idea that you want to implement the entry for the add of a new layer ?

Thank you for your support

Please Log in or Create an account to join the conversation.

More
19 Apr 2013 10:24 #6 by babynus
Replied by babynus on topic Re: Routing
The #1058 is about possibility to redefined your own Class without it being overwritten on upgrade.
This means : provide a scpecific folder where Class will be fetched before trying to fetch the standard class. Specific folder will never be updated by upgrades.
This will only concern /model/*.php files.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.038 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.