How to override method
正念的奇迹
正念的奇迹 2017-08-03 10:43:41
0
3
1342

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.

正念的奇迹
正念的奇迹

继续学习奋勇向前

reply all(3)
ringa_lee

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

正念的奇迹

Can I receive the reply to the teacher here?

Peter_Zhu

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 What does "use the template variable name specified in the jump template" in the first sentence mean? Can you be more specific?
    正念的奇迹 author 2017-08-03 16:03:43
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template