December 7, 15, a little summary of the recent

Source: Internet
Author: User

As of now, probably involved in two very small logical development, is a mobile phone mall two times development.

First talk about the work of the editor, Kodexplorer, is an online editor, the approximate principle is to upload this editor to edit the space, and then you can control the remote side of the content from this editor, side write side can see the real effect of the external network, because it is directly on the server side to edit the file , so for unfamiliar file editing must be good backup, in case the deletion of the wrong place cause problems, users will cause problems in use. I personally more cautious, the new code running problems, I usually first comment out the problem of the place to save and then look for problems, so even if there are users during the visit will not have any problems, although this small mall access is not high. This editor is free to study, most of the code is used directly on the server to write, as if using a lightweight JSON to send data, the network is unblocked and the local experience is just as good, is no function reminder, highlighting is relatively simple.

The beginning of the past few days have been trying to strengthen the knowledge of the thinkphp framework, because we develop things later should all use TP, the front end with the Amaze UI, are the things people develop, we are really patriotic group. But the pit father is this mall is not a TP frame, well, so far have not figured out which frame, should be a mall class framework or CMS and other things. The TP framework is not particularly familiar to me to make this new framework, it is a bit difficult, such as the database query, write part, such as add, select this method is instantiated in the TP in the table name can be used, but in this mall is more complex to use, Some of the methods you refer to other controllers in the database operation to write, but later, some of the seemingly universal operation of the database is the model of their own, the controller and template, JS has been a headache, there is no energy to do his model AH.

Speaking of JS, this is a very big problem for me, at least half the time of the day stuck in JS, basically with JS dry. I do not want this ah, because my own main learning is not JS, but this mall is really too many places are written with JS, a landing page form is used with JS callback function sent out, I looked at the back end of the PHP, basically playing an API role, even the cookie is JS write , with the Setcookie method, the amount, this method is where I do not know, and later in the use of JS to read the cookie, I see a lot of GetCookie method to complete, so simple method must be used, so the chaotic imitation introduced a number of JS files to use success, It's also a waste.

These two very small logic development is the user want to join the two features, one is the landing after the Advertising promotion Welcome page, to complete the background management of the picture add and time settings, front-end aspects to be based on the different types of user display welcome page.

The second is the red envelope function, also has the backstage management and the front desk red envelopes release use. This is more complicated, I did not touch the red envelopes and other aspects, starting from the establishment of the table, from the background to add red envelopes to add in the user login, and have to extract red envelopes of the page, or a comparative system of aspects, slowly understand the running logic, is also a relatively large harvest place. Have to learn and deepen.

This mall still has a lot of code write very good, for example, the use of red envelopes we initially just designed to use JS to get the final price and then submit, but has been unsuccessful, then a look only found that the backend using PHP for verification, which is responsible, after all, can not fully believe the front end, do the necessary back-end certification must.

Just start work a small summary, write very verbose, first write here, hope to insist on summing up, insist on writing.

December 7, 15, a little summary of the recent

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.