Page

Many different PAD parts together in one page.



Sequence of calls

Note that some values 'root/abc/klm/xyz' look incorrect. This comes because all inits/exits/page PHP sources are called before the rendering of the PAD templates start. The sequence is.

So it is possible (and in this example application it happens) that:
- <page>.php PHP code overwrites variables from the _inits.php PHP code
- the _exit.php files overwrites variabeles from <page>.php and _inits.php fPHP code

An earlier version of PAD did prevent this, but in reality it is handy, this way you can set for exampe a $title variable in the page PHP code that is used in the _inits.pad template.


Ajax calls of the pages without _inits.pad


?page


?abc/page


?abc/klm/page


?abc/klm/xyz/page