search

Home  >  Q&A  >  body text

How to override method

As for the success() and error() methods in this example, they are located in jump.php. If I don’t change jump.php, can I change these two methods in the file I created?

For example, instead of changing conventio.php directly, you can create a config.php yourself to change the configuration.

正念的奇迹正念的奇迹2677 days ago1327

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-08-07 11:12:49

    You can customize it and encapsulate a method yourself instead of using it. The function.php file can be encapsulated in a public class file. This can be used flexibly

    reply
    0
  • 正念的奇迹

    正念的奇迹2017-08-03 17:46:41

    Can I receive the reply to the teacher here?

    reply
    0
  • 正念的奇迹

    Reply to test

    正念的奇迹 · 2017-08-03 17:47:25
  • 天蓬老师

    天蓬老师2017-08-03 13:32:54

    It’s ok. However, the template variable names specified in the jump template must be used, and the use must comply with the rules.

    You can replace the application configuration configuration file with a custom configuration file, but you must reset the APP_CONF constant in the entry file.

    reply
    0
  • 正念的奇迹

    What does "use the template variable name specified in the jump template" in the first sentence mean? Can you be more specific?

    正念的奇迹 · 2017-08-03 16:03:43
  • Cancelreply