sergito Posted July 14, 2010 Share Posted July 14, 2010 hi people, i'm having troubles with a little thing in that tutorial. I'm adding a little "hello world" module. I've created a "modulovacio" folder into "modules/" folder. Inside i have (i provide the files):-"modulovacio.php" which defines "ModuloVacio" class -"modulovacio.tpl" which defines a div block into left_column of the frontoffice. The div contains a link as follows:- "classes" folder which contains: - "modulovacio.function.php", which loads header, footer etc and calls "modulovaciofunction.tpl" - "modulovaciofunction.tpl" which adds some text to the center of the pagethe problem is as follows:i go to home page and see the html box into left column. I click into the link and then the text is printed onto the center of the page. But the page loaded changes the value of "href" attribute of the link, and now if i click y get redirected to "modules/modulovacio/classes/modules/modulovacio/classes/modulovacio.function.php"can anybody help me? i'm doing something wrong and it has to be some stupid detail thanks in advance Link to comment Share on other sites More sharing options...
bartman Posted July 14, 2010 Share Posted July 14, 2010 you need to alter the href in the .tpl file to something like this at present the link opens relative to the page you are onregardsChris Link to comment Share on other sites More sharing options...
sergito Posted July 16, 2010 Author Share Posted July 16, 2010 works thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now