• Login
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.
  • K
    Khanh Minh
    last edited by Oct 30, 2016, 3:29 AM

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

    K 3 Replies Last reply Oct 30, 2016, 4:08 AM Reply Quote 0
    • M
      MAPJe71
      last edited by Oct 30, 2016, 4:06 AM

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

      1 Reply Last reply Reply Quote 0
      • K
        Khanh Minh @Khanh Minh
        last edited by Oct 30, 2016, 4:08 AM

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

        1 Reply Last reply Reply Quote 0
        • M
          MAPJe71
          last edited by Oct 30, 2016, 4:14 AM

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

          1 Reply Last reply Reply Quote 0
          • K
            Khanh Minh @Khanh Minh
            last edited by Oct 30, 2016, 4:28 AM

            <?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
            • K
              Khanh Minh @Khanh Minh
              last edited by Oct 30, 2016, 4:57 AM

              @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
              • G
                guy038
                last edited by Oct 30, 2016, 9:27 AM

                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
                • M
                  MAPJe71
                  last edited by Oct 30, 2016, 4:43 PM

                  @Khanh-Minh & @guy038

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

                  K 1 Reply Last reply Nov 1, 2016, 4:33 AM Reply Quote 0
                  • K
                    Khanh Minh93 @MAPJe71
                    last edited by Nov 1, 2016, 4:33 AM

                    @MAPJe71

                    thank you MAPje71 and guy038

                    npp working function codeigniter

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