did can be defined a variable for multi function(in codeigniter)? how is it?
because i must use of a value similar in multi function.
like:
class Home extends CI_Controller {
$hi = 'hello'
function one() {
echo $hi;
}
function tow() {
echo $hi;
}
}
what about doing something like this
if the hi is a constant you have better to use the const keyword
last point if that constant is used in more than one controller you have better to create a separate class and define the constant in that class.
one remark with the last code snipet, I am not an codeigniter expert so not sure if you can do
$this->input->post('find')would work in the constructor