Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:entwickler:navigation_ueber_mehrere_seiten [2015/11/04 20:33] – created thomas-rcven:entwickler:navigation_ueber_mehrere_seiten [2016/12/03 15:04] (current) – typos ximex
Line 9: Line 9:
 When you access a module this object must be initialized, because it might be already filled in other modules with URLs. <code php> $_SESSION['navigation']->clear(); </code> When you access a module this object must be initialized, because it might be already filled in other modules with URLs. <code php> $_SESSION['navigation']->clear(); </code>
 Now, all pages that are called, (the first module side) are added to this object <code php> $_SESSION['navigation']->addurl(CURRENT_URL); </code> Now, all pages that are called, (the first module side) are added to this object <code php> $_SESSION['navigation']->addurl(CURRENT_URL); </code>
-Is there somewhere a Back button, so this was occupied either with Javascript **history.back()** or a fixed URL. This is now no longer necessary. Here you can then simply call the php page: <code php> $g_root_path/adm_program/system/back.php </code> +Is there somewhere a Back button, so this was occupied either with JavaScript **history.back()** or a fixed URL. This is now no longer necessary. Here you can then simply call the php page: <code php> $g_root_path/adm_program/system/back.php </code> 
-If a page was left again without back navigation, this must also be removed from the object. This is workiking with <code php> $_SESSION['navigation']->deleteLastUrl(); </code> This is for example the case when you want to change an appointment. Then, the edit page must first be added to the object with addurl. Now, if the date changed and saved, you end up in dates_function script. Since this has no output, it does not need to be added to the object itself, but it must be deleted the previous page of this object with deleteLastUrl on successful saving.+If a page was left again without back navigation, this must also be removed from the object. This is working with <code php> $_SESSION['navigation']->deleteLastUrl(); </code> This is for example the case when you want to change an appointment. Then, the edit page must first be added to the object with addurl. Now, if the date changed and saved, you end up in dates_function script. Since this has no output, it does not need to be added to the object itself, but it must be deleted the previous page of this object with deleteLastUrl on successful saving.
  
 A note about the back.php script. This always calls on THE NEXT TO LAST page of the object, as often the last page in the object is the current page. A note about the back.php script. This always calls on THE NEXT TO LAST page of the object, as often the last page in the object is the current page.
  • en/entwickler/navigation_ueber_mehrere_seiten.txt
  • Last modified: 2016/12/03 15:04
  • by ximex