HOW CAN USE HOOKS IN CODEIGNITER 3.0

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 41

  • @chandangupta8923
    @chandangupta8923 3 года назад +1

    Great knowledge

  • @satishkumar2453
    @satishkumar2453 3 года назад +1

    Great example

  • @ShahidAnsari-mh8cs
    @ShahidAnsari-mh8cs 4 года назад +2

    Good sir👍👍👍👍

  • @anilgupta-dy1oj
    @anilgupta-dy1oj 3 года назад +1

    thank you so much, for this share great videos.😄

  • @ankitmaurya1428
    @ankitmaurya1428 2 года назад +1

    Very useful video sir

  • @hemalatavishnumahajan3706
    @hemalatavishnumahajan3706 4 года назад +2

    Very helpful

  • @skarmanali
    @skarmanali 2 года назад +1

    thank you.

  • @ShahidAnsari-mh8cs
    @ShahidAnsari-mh8cs 4 года назад +1

    Very useful knowledge 🔥🔥🔥

  • @shoebshaikh304
    @shoebshaikh304 4 года назад +1

    Very helpful... Thanks

  • @GameGenies7756
    @GameGenies7756 4 года назад

    Awesome sir

  • @MukeshKumar-pt4hj
    @MukeshKumar-pt4hj 5 лет назад +2

    super bro good explanation ......

  • @innovative-thoughts
    @innovative-thoughts 5 лет назад +1

    Thank for your this effort. Valuable information.

  • @vasanthravi7688
    @vasanthravi7688 3 года назад +1

    bro can i include database connection in hooks precontroller? @faruintereviewquestion

  • @RanjeetSingh-oq1id
    @RanjeetSingh-oq1id 5 лет назад +1

    bhai aapne 1 class and uske under 1 function and 1 filename likha h ..
    $hook['display_override']=array(
    'class' => 'ReplaceToken',
    'function' => 'replaceplaceholdercode',
    'filename' => 'ReplaceToken.php',
    'filepath' => 'hooks',
    );
    ab mujhe 92 pages me karna h toh kya 92 function, 92 class, 92 filename bhi likhna hoga??

  • @Vikaskumar-ur5di
    @Vikaskumar-ur5di 5 лет назад

    thanks for sharing good video please share with example of all hook function

  • @jimpannell2035
    @jimpannell2035 4 года назад +1

    Great effort, but if your title, description and writing in the video is in english, why not use english as the language that you speak in the video?

  • @hemalatavishnumahajan3706
    @hemalatavishnumahajan3706 5 лет назад

    thanks sir

  • @palleamar8998
    @palleamar8998 5 лет назад

    super bro good explanation but one small doute what is the use of display_override function plz... explain briefly

  • @UK00009
    @UK00009 5 лет назад

    difference between HOOKS and HELPERS??

  • @sunilchahar6597
    @sunilchahar6597 6 лет назад

    hooks working but, I am getting below error
    A PHP Error was encountered
    Severity: Notice
    Message: Use of undefined constant - assumed ''
    Filename: hooks/Replacetoken.php
    Line Number: 3
    Backtrace:
    File: C:\wamp64\www\hooks\application\hooks\Replacetoken.php
    Line: 3
    Function: _error_handler
    File: C:\wamp64\www\hooks\index.php
    Line: 315
    Function: require_once

  • @sunilchahar6597
    @sunilchahar6597 6 лет назад

    Hello Sir, Hooks not working, I have enable hooks in config.php, create hooks in hooks.php, and create file in hooks directory.

  • @santoshbisht7714
    @santoshbisht7714 6 лет назад

    how to use hooks for particular controller

  • @praveenkumar08
    @praveenkumar08 7 лет назад

    my custom Hook define
    $hook['display_override '] = array(
    'class' => 'MySiteName',
    'function' => 'Mysitetitle',
    'filename' => 'Mysite.php',
    'filepath' => 'hooks'
    );
    here hook code
    class MySiteName {
    function Mysitetitle()
    {
    // load the instance
    $this->CI =& get_instance();
    // get the actual output
    $mysitename = $this->CI->output->get_output();
    // replace the tokens
    $mysitename = str_replace("CodeIgniter", "My Epploo", $mysitename);
    // set the output
    echo $mysitename;
    return;
    }
    }
    but not workin plz help me sir ASAP

    • @faruinterviewquestions1069
      @faruinterviewquestions1069  7 лет назад

      Hey Praveen, This is correct code , please run it.
      Step : 1
      C:\xampp\htdocs\HOOKS\application\config\config.php
      $config['enable_hooks'] = TRUE;
      Step : 2
      C:\xampp\htdocs\HOOKS\application\config\hooks.php
      $hook['display_override'] = array(
      'class' => 'MySiteName',
      'function' => 'Mysitetitle',
      'filename' => 'Mysite.php',
      'filepath' => 'hooks'
      );

      Step : 3
      C:\xampp\htdocs\HOOKS\application\hooks\Mysite.php

    • @faruinterviewquestions1069
      @faruinterviewquestions1069  7 лет назад

      give me reply , your code is run are not.......!!

    • @praveenkumar08
      @praveenkumar08 7 лет назад

      Hi Sir till not working and one more thing my project in on live server

    • @faruinterviewquestions1069
      @faruinterviewquestions1069  7 лет назад

      Tell me , Praveen please give me your Email Id , I will share HOOKS FOLDER you can download and , run it.

    • @praveenkumar08
      @praveenkumar08 7 лет назад

      pk46066@gmail.com