dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] Adding a "page" parameter on the controller module


From: Marc-Henri Pamiseux
Subject: [Dolibarr-dev] Adding a "page" parameter on the controller module
Date: Fri, 03 Aug 2012 22:56:09 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi,

It does not seem useful to create PHP pages with redundant code.
Is it possible, in a module, use only one controller instead of the
tradional list.php, fiche.php, etc..

We could set up a referral mechanism using parameters.

For example :
--------------
Instead of using this king of URI :
/publication/subscriber/index.php
=> We could use this model :
/publication/subscriber.php?page=index

Another sample :
----------------
/publication/subscriber.php?page=fiche&action=create
could be the same as :
/publication/subscriber/fiche.php?action=create

I know there is a template mechanism in Dolibarr, but i have not tried
to understand how it works...

Does this URI scheme would allow us to democratize its use?

Best regards,
-- 
Marc-Henri Pamiseux

SARL Libricks
Maison de la technopole
6, rue LĂ©onard de Vinci - BP 0119
53001 LAVAL Cedex

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]