Why does this give me an error?
$this->_page->page_text = Messages::msg[$explode[1]];
The structure of Messages is
class Messages
{
public static $msg = array(...);
public static $ns = array(...);
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that $explode is a variable containing some exploded data and you are using the 2nd item in that array as an index for your messsage, you need to use
Messages::$msg[$explode[1]];Variables always start with
$