changed some inline php to CI's style