Forum

Notifications
Clear all

Routing

11 Posts
2 Users
0 Reactions
9,516 Views
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 
[#1088]

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


 
Posted : 12 Apr 2013 17H38
(@babynus)
Posts: 14952
Member Admin
 

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().


 
Posted : 12 Apr 2013 23H54
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 

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.


 
Posted : 18 Apr 2013 16H48
(@babynus)
Posts: 14952
Member Admin
 

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


 
Posted : 18 Apr 2013 22H36
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 

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


 
Posted : 19 Apr 2013 11H59
(@babynus)
Posts: 14952
Member Admin
 

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.


 
Posted : 19 Apr 2013 12H24
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 

Is there any way to override views ?


 
Posted : 19 Apr 2013 13H10
(@babynus)
Posts: 14952
Member Admin
 

what do you mean ?

What do you try to do exactly ?


 
Posted : 19 Apr 2013 13H36
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 

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.


 
Posted : 19 Apr 2013 13H48
(@babynus)
Posts: 14952
Member Admin
 

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).


 
Posted : 19 Apr 2013 14H01
 SJ
(@cr0w)
Posts: 11
Active Member
Topic starter
 

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.


 
Posted : 19 Apr 2013 18H16
Share:

Scroll to Top