After learning PHP for a while, I don't know how to do it well. I feel that my foundation is not enough. Is it necessary to keep writing and writing? Or start to access the framework? If you continue writing, what good projects can you write? Will Laravel be suitable for learning frameworks? After learning PHP for a while, I don't know how to do it well. I feel that my foundation is not enough. Is it necessary to keep writing and writing? Or start to access the framework?
If you continue writing, what good projects can you write?
Will Laravel be suitable for learning frameworks?
Reply content:
After learning PHP for a while, I don't know how to do it well. I feel that my foundation is not enough. Is it necessary to keep writing and writing? Or start to access the framework?
If you continue writing, what good projects can you write?
Will Laravel be suitable for learning frameworks?
It shows you have a deep understanding and cleanliness of the program, which is clear, clean, and easy to maintain.
If there is no or insufficient, write 1 ~ Two mixed, earth-gun, pasta-style programs, and try to modify it, knowing it hurts and learning again.
If so, the better the time. The sooner the recommendation is, the better.
The framework is a powerful tool, but it is also a limitation. The framework aims to clarify code and separate logic, but the specific modules are secondary (or even disposable or replaceable ).
If you don't understand the "why" of the framework, you should learn it. At last, you will inevitably fall into details of various usage. In the end, the result is that it is extremely painful to be bound by the details of the framework, but you have never learned how to use the Framework to organize the program.
The above is what we say.
I can study some micro-frameworks and understand the principles of web development. I just learned a lot from them:
Https://github.com/badphp/dispatch
Https://github.com/bephp/router
It indicates that I have followed jellybool's laravel tutorial before learning php ......
I feel good now ......
Php is the best language
We recommend that you first understand the design mode and then look at the framework. Codeignter is recommended for getting started with the php framework. It is a CI framework, with a single portal, lightweight, and comprehensive documentation! Easy to use.
Clarify the object-oriented and design patterns and then research the framework. Laravel is recommended for the framework.
Almost all enterprises use frameworks for projects. If there are not one or two types of projects, they may be detrimental to job hunting. However, if you are only in the learning stage, it is recommended that you stick to the foundation and then study the framework. At that time, you will only know and understand what it means. If php is not well-founded, the learning framework can only stay at a very low level. If the foundation is good, no matter what framework, you can easily get started. This is my experience.
The learning framework should start with thinkphp.
As to when to start learning the framework, we will probably understand the smarty template and the class.
Understand the OO syntax and concepts. Other syntaxes are supplemented by the Framework. Laravel is recommended for the framework. The framework starts from use and then goes deep into the source code.
After learning for a while, you should have encountered some problems and try to solve the problem in different ways. For example, it is too troublesome to mix PHP and html, so what you need is an encapsulated View class or a function. You don't have to worry about how others implement it. What you think is, what should I do, after you try it, you know how it works. Oh, maybe I need a template engine, so smarty is a good choice for getting started, you may also feel that there are a lot of repeated database operations. At this time, you can try to encapsulate them into classes for use. You must think about your own solutions, then gradually form a simple framework model. Of course, you 'd better understand the simple design model. Maybe you feel a little abstract and don't need it. When you feel it is okay, you can look at the source code of a Framework. Slim is recommended here. My suggestion is version 1.20. If I don't remember this version, I chose the first one because she is very small and easy to hide, she does not use namespaces and composer. It may be easier for you to understand and understand a framework. You will find that the design patterns she uses are also very basic. Of course, it will take you a long time to watch it out.
It is best to take a look at the basics, and then start to study the framework, write more code, think more, read more, and study again. In turn, there is no shortage. (^__^) Hey ......
Buy Books first, and learn other knowledge.
First pass by the frame...
Just entering the company boss only gives one month to get familiar with the project (internal recruitment, so PHP is not yet available)
Then there was no way, so I had to chew on the framework and know how the framework works,
Now I am back and Randomly Read PHP again...
If you are not in a hurry, learn the basics carefully. Otherwise, no matter how far you go, you will always be back.
When you can write some common small web pages, you can read them.
A lot of details are about querying materials while learning the framework.
Keep looking at PHP, And you will never find the most common and required knowledge point.
CI is the best getting started framework. The document is clear. We recommend that you start with CI first.
I think the best framework is Yii2. The complexity of Yii2 definitely makes you feel every day.
Now that you can understand the framework source code, it's time to use the framework.
I have never been in touch with PHP before, because the project needs to be made using PHP + MySQL, and the boss only gave me one month to start the project. Well, I am also confused, I don't know how to do it. Now I have been typing php code for a few days and I am familiar with the MySQL database. Next ???????
I just learned php, and I bought my own books. I felt too difficult. How did you finish learning?
Learn C first. At least write php extension. php will add, delete, modify, and query. Learn the framework directly. Then write a small project. Basically, you can work.