|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bobbonew Smarty Rookie
Joined: 28 Sep 2003 Posts: 8
|
Posted: Mon Oct 06, 2003 9:46 pm Post subject: Navigation Help! |
|
|
Hey guys i'm making a navagition of just a list of links the a user is able to go to with their current authorization status. But I dont know how to do it with smarty. Here is an example of what i'm trying to accomplish:
~Query Database to see if user is authorized for this link (and access to it but that dont matter)
~If they are, display the current link
~Then once your in that section of the link you clicked, the nav would now display everything from the previous page, plus the sub-links to the current section your in.
This is really pissing me off, and I may just create an entire nav system but its prolly easier with smarty. |
|
Back to top |
|
bobbonew Smarty Rookie
Joined: 28 Sep 2003 Posts: 8
|
Posted: Tue Oct 07, 2003 8:44 pm Post subject: |
|
|
|
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Oct 07, 2003 9:14 pm Post subject: |
|
|
what you describe is very much application-logic. smarty can't help you with that very much. you have to organize your database-access and handling of http-parameters (when users navigate through your link-directory) by hand in php. smarty can only help you in displaying the lists you gathered by your application. |
|
Back to top |
|
bobbonew Smarty Rookie
Joined: 28 Sep 2003 Posts: 8
|
Posted: Wed Oct 08, 2003 3:39 am Post subject: |
|
|
Yeah I solved it anyways, it was a pure php function to help me. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|