He guys!
I am creating the next controller
function add($action,$data){
}
Wich gives me functionality for the next url:
controller/add/proyect/0
but this is a multiple purpose controller.
So, i need to call it like this:
controller/add/proyect
I dont want to send data, i just want to add the proyect.
when i do that, the compiler sends me the error:
Missing argument 1 for add()
This is what i tried:
function add($action,$data=null){
}
and
function add($action,$data=false){
}
But still not working.
Any ideas?