public function create() { $content = $this->input->post('content'); $expire = strtoupper($this->input->post('expire')); // Normalize to uppercase // Get password and hash it $password = $this->input->post('password'); $hashed_password = null; if (!empty($password)) { $hashed_password = password_hash($password, PASSWORD_DEFAULT); } if (!$content) { show_error("Turinys tuščias."); }