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 ?
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().
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.
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
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.
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
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.