Forums

Proper way to build plugin (2 posts)

  1. pennycan
    Member
    Posted 8 months ago #

    Very sorry if the info I need is somewhere obvious.

    Basically, I am creating a plugin and it is now 1116 lines long in one file. I am calling a css file as well, but those are the only two files total. I am using URL variables and $_GET to create pages within the admin area. Is there a better way to do this? Should I split up the pages into different PHP files and then include them? Other suggestions?

    I am not having any problems doing it this way, but it seems kind of wrong.

    Thanks for any suggestions!

  2. NateJacobs
    Member
    Posted 8 months ago #

    I would start with reading the Codex about creating a plugin. Next download a plugin from the folks at Automatic and take a look at the code. That will give you the best practices.

Reply

You must log in to post.

About this Topic