Skip to content

Add static page

Discussion about Free Wallpaper Script. Installation, bugs, feature requests, modification and other questions.
Post your design related quesions
  • This topic has 3 replies, 3 voices, and was last updated 12 years ago by cow_boy_9.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #618
    SergioVB
    Participant

      Hello!
      Please, tell me how to add new page with text (template style).
      Sorry for my bad english :)

      #619
      veppa
      Keymaster

        Edit /sys/app/contollers/IndexController.php add page you want as a method to class. Look at index method as example. At the end use $this->display(‘index/{your_template_file}’, $vars); place your template file name instead of {your_template_file}.

        Then in your template located at /user-content/templates/{template_name}/views/index/ create template file {your_template_file} similar to index.php for example.

        Then your page url will be /index/{youtmethod}

        Just analyze indexController for how pages work and you will understand general structure.

        #620
        SergioVB
        Participant

          Thanks, I’ll try

          #621
          cow_boy_9
          Participant

            Can you please explain a little bit that how to call a new page from indexcontroller.php?
            As i want to create a contact us form page and partners link page.
            I am newbie to php so need your help for doing that.

            Kindly tell please?

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.