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
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
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
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.
Is there any way to override views ?
what do you mean ?
What do you try to do exactly ?
I would like to be able to override any view (or any class) without modifying the original project. If you want to add a specific column or button (or whatelse... Nespresso :-p) you'll have to modify the original project. This new item mustn't be in the original project. It's a customization. That's why I want to override whathever I want.
That is the object of Ticket #1058.
As Project'Or RIA is volountarily not full MVC, the object Class containts information about view layout (list and position of fields in the class deinies the layout for the object).
Perhaps if you could help me to find the entry point for involving any interface to override the "views" I could help you for a global system for overriding processes for customization purpose.