CodeIgniter Forums
access direct to other method when used $this->input->method - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: access direct to other method when used $this->input->method (/showthread.php?tid=82045)



access direct to other method when used $this->input->method - asenator - 06-05-2022

hi everyone
i have below code 

PHP Code:
public function resend_mobile_verify()
{
        if($this->input->method() == 'get')
        {
        }


    {
PHP Code:
public function change_mobile_info()
{
        if($this->input->method() == 'post')
        {
            $this->resend_mobile_verify();
        }


when i want to below code i cant direct access to resend_mobile_verify method because use post method


    {
PHP Code:
public function change_mobile_info()
{
        if($this->input->method() == 'post')
        {
            $this->resend_mobile_verify();
        }


how i can use resend_mobile_verify method directly?

best regard.