I have summarized what I learned.

Source: Internet
Author: User
I have just learned a little recently. I am confused and have done some experiments. I have summarized the differences between path symbols in phphtml (js) thinkphp, and I do not know anything about them, or something wrong. I hope you can talk about it. I am afraid that I will learn something wrong, just like thinkPHP. I started to think that the V layer and the generate jump are one... I have just learned a little recently. I am confused and have done some experiments. I have summarized the differences between path symbols in php html (js) thinkphp,
There is something I don't know, or something wrong with it. I hope you can talk about it. I am afraid that I will learn something wrong,
Just like thinkPHP, I started to think that the V layer is the same as generating a jump, So I fell into the trap,
Thank you!

/** Simple Description:/PHP Directory at the same level namespace global namespace: the root directory of the HTML server, under the http protocol; ThinkPHP writes and does not write when loading the V layer, all follow the rules; when you jump to the success () page, it is the http: // localhost/root directory;
. /PHP Directory namespace at the same level didn't try HTML didn't try ThinkPHP when loading the v layer view, in the ThinkPHP root directory and the highest level index. directory of the php peer level; parent directory when the success () page is redirected;
../PHP parent directory namespace does not support ThinkPHP jump page success (), it is a parent directory; HTML parent directory
If you do not write the ThinkPHP directory at the same level as the namespace directory at the same level as the HTML directory at the same level, the v-layer view is loaded according to the rules. When you jump to the page: $ this-> success ($ pass information, "index", 5); // It is the method index under the same class; $ this-> success ($ transfer information, "", 5); // you always jump to yourself

Reply content:

I have just learned a little recently. I am confused and have done some experiments. I have summarized the differences between path symbols in php html (js) thinkphp,
There is something I don't know, or something wrong with it. I hope you can talk about it. I am afraid that I will learn something wrong,
Just like thinkPHP, I started to think that the V layer is the same as generating a jump, So I fell into the trap,
Thank you!

/** Simple Description:/PHP Directory at the same level namespace global namespace: the root directory of the HTML server, under the http protocol; ThinkPHP writes and does not write when loading the V layer, all follow the rules; when you jump to the success () page, it is the http: // localhost/root directory;
. /PHP Directory namespace at the same level didn't try HTML didn't try ThinkPHP when loading the v layer view, in the ThinkPHP root directory and the highest level index. directory of the php peer level; parent directory when the success () page is redirected;
../PHP parent directory namespace does not support ThinkPHP jump page success (), it is a parent directory; HTML parent directory
If you do not write the ThinkPHP directory at the same level as the namespace directory at the same level as the HTML directory at the same level, the v-layer view is loaded according to the rules. When you jump to the page: $ this-> success ($ pass information, "index", 5); // It is the method index under the same class; $ this-> success ($ transfer information, "", 5); // you always jump to yourself

./The directory where the current file is located. In addition, this is not just for php, which is a common consensus in the industry.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.