Community
    • Login

    Plz, help me to show function list codeigniter

    Scheduled Pinned Locked Moved General Discussion
    np++ dont showfun
    9 Posts 4 Posters 5.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Khanh MinhK
      Khanh Minh
      last edited by

      np only show function list with pure php, plz, how to show function list codeigniter,

      Khanh MinhK 3 Replies Last reply Reply Quote 0
      • MAPJe71M
        MAPJe71
        last edited by

        Could you provide more information e.g. about the differences between vanilla/pure PHP and CodeIgniter PHP.

        1 Reply Last reply Reply Quote 0
        • Khanh MinhK
          Khanh Minh @Khanh Minh
          last edited by

          npp only work with function abc(){}
          npp dont work with public function abc(){}

          1 Reply Last reply Reply Quote 0
          • MAPJe71M
            MAPJe71
            last edited by

            Is that the only issue or are there more?
            Could you provide an example file for tests?

            1 Reply Last reply Reply Quote 0
            • Khanh MinhK
              Khanh Minh @Khanh Minh
              last edited by

              <?php if (!defined(‘BASEPATH’)) exit(‘No direct script access allowed’);

              class News_frontend extends MY_Controller
              {
              function __construct()
              {
              parent::__construct();
              $this->load->helper(‘url’);

              }
              //News list
              public function news_content($alias){
              
                  $data['news']=$this->f_homemodel->getItemByAlias('news',$alias);
                  $title='Tin tức | '.$data['news']->title;
                  $keyword=$data['news']->keyword;
                  $description=$data['news']->description;
                  $this->load->view('news_content',$data);
              }
              
              private function admin_acc(){
                  $description=$data['acc']->description;
                  $this->load->view('admin_news',$data);
              }
              
              1 Reply Last reply Reply Quote 0
              • Khanh MinhK
                Khanh Minh @Khanh Minh
                last edited by

                @Khanh-Minh

                #np show “function list” with pure php
                see url =>http://www.caychumngay.org.vn/images/work.png

                #np don’t show “function list” with fw codeigniter
                see url =>http://www.caychumngay.org.vn/images/dontwork.png

                is someone how to show this

                1 Reply Last reply Reply Quote 0
                • guy038G
                  guy038
                  last edited by

                  Hello Khanh Minh

                  May be, @mapje71, ( expert in function list features ! ) will confirm my idea but just follow these few steps to get it worked as you would like to !

                  • Open your active functionList.xml file, in Notepad++

                  • Pinpoint, at the end of the PHP parser, the <function section, as below :

                    <parser id=“php_function” displayName=“PHP” commentExpr=“((/*.?*)/|(//.?$))”
                    …
                    …
                    …
                    …
                    …
                    <function …
                    …
                    …
                    </function>
                    </parser>

                  • Replace the present mainExpr attribute :

                    mainExpr=“^[\s]*function[\s]+\w+(”

                  by the new expression, below :

                  mainExpr="^[\s]*((static|public|protected|private|final)*(\s+(static|public|protected|private|final))+[\s]+)?function[\s]+\w+\("
                  
                  • Save the changes of the functionList.xml file

                  • Close and restart Notepad++

                  • Open your PHP file

                  It should be OK, by now :-))

                  Best Regards,

                  guy038

                  1 Reply Last reply Reply Quote 0
                  • MAPJe71M
                    MAPJe71
                    last edited by

                    @Khanh-Minh & @guy038

                    Result when using functionList.xml as included in Notepad++ v7.1 …

                    Khanh Minh93K 1 Reply Last reply Reply Quote 0
                    • Khanh Minh93K
                      Khanh Minh93 @MAPJe71
                      last edited by

                      @MAPJe71

                      thank you MAPje71 and guy038

                      npp working function codeigniter

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors