Hi guys
I'd like to know if there is a way to optimize my template system
wich works as described below.
The only one drawback with this method is that, I have to renumber all
the calls to hd_page_textfill() if I insert a new text string in the
template somewhere else than the end and if I want to respect the order
of appearance in the template at the same time.
My question is : what option could prevent renumbering?
I would also like to avoid string naming (ie : hd_page_textfill('BUTTON_LABEL') )
because it could be time consuming to find a proper name for even the smallest
text string.
Any idea?
Thanks
TEXT FILE :
Code:
...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~> xxxxxxxxx.php
( access codes edition page )
Change the access codes
This section allows you to edit your login and/or password.
Login
show / hide
Password
Password preview
SAVE THE CHANGES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~> xxxxxxxxx.php
( preferences edition page )
Change your preferences
This section allows you to edit your general preferences.
Your surname
Your name
Your email address
Interface colors
Reset with the default colors
SAVE THE CHANGES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
PHP FILE :
Code:
...
echo"
<div>" . hd_page_textfill(2) . "</div>
<div>" . hd_page_textfill(3) . "</div>
<div>" . hd_page_textfill(4) . "</div>
";
...