Welcome Guest, Not a member yet? Register   Sign In
wee problem with validator

hi everyone,

im really stuck at the moment on how to do something.

what i have is a simple forum software, when a user is logged in and they are looking at a post the reply box comes up at the bottom of the forum for the user to quick reply. When you are on the forum view the url looks like this


the 3 in the url is the topicID and the 1 in the url is the categoryID now the problem i am having is when the form is subbmited it goes to the following url :


I want to be able to send the 3/1 part there aswel but if i adjust the url to look like :

http://localhost/forums/index.php/validator/3/1 the page does nothing it just loads a blank page and sits there. Now if i change it back to the orignal without the 3/1 in the url it works fine. I get redirected to index.php/forum/comments/ however i need the 3/1 in the url for the querys on the page to work otherwise its just showing the comments page with no data in it.

What am i doing wrong, i have included the url library in the validator class and in the forum class but still nothing.

What is the best way to go about doing this ?

any help would be greatly appreciated, i am so close to finishing this project and adding it to the wiki along with a tutorial on how to make a forum as i see this question asked alot around here.


The problem is the "validator" is your controller so adding "3" to the url assumes you want to call the "3" function inside the validator. If you tack on the actual validator function inside your controller it should work.

'm still learning the framework so I am a little unsure as to what you mean by tack it to the validator

breaks down to
//Look at index.php

//Call the Validator Controller

//Call the index function

//Pass Parameter Value 3 & 1

Since in your URL you're trying to call doesn't have a function it's assuming 3 is the function you are trying to call and it can't find it, so its failing.

Theme © iAndrew 2016 - Forum software by © MyBB