Add static page

Tagged: ,

This topic contains 3 replies, has 3 voices, and was last updated by  cow_boy_9 6 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #618

    SergioVB
    Member

    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
    Member

    Thanks, I’ll try

    #621

    cow_boy_9
    Member

    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.