Answer the question
In order to leave comments, you need to log in
What knowledge should I start learning Yii2 with?
Good afternoon!
I've been learning PHP for a while, but learning wasn't easy. Now the level is not high, even very low. Using procedural php, I can write some simple blog site or an online store with a Mysql database (using PDO) and a simple admin panel.
I read a lot and realized that it would be better to study some kind of framework, and not write everything from scratch. I settled on Yii2. With grief in half, I was able to install it on OpenServer via Composer (Which also installed with grief in half).
Opened the official documentation and in a stupor. I seem to have learned so much, but here everything is a dark forest. I don't understand how it all works. I don’t understand anything, I can’t really move.
Can you tell me where I missed a step? What should I learn before getting familiar with Yii2? It's hard for me to evaluate myself. I don't understand where is the difference between my knowledge and the knowledge required to work with Yii2.
Answer the question
In order to leave comments, you need to log in
Learning:
1 - OOP in php.
2 - MVC pattern.
In general, I suggest you start with Laravel . His dock is more understandably documented, unlike Yii, and there is less code.
Starting learning PHP on the fly with frameworks is a bad idea. You will understand little. Invent your own bicycles first, modify them, delete them, create them again, finish them, etc. Start with the essentials:
- Database queries, PDO wrapper, triggers, foreign keys, lookups, indexes, etc.
- Shapes, quote escaping, HTML filter, etc.
- Data validation, including to reduce the number of repeated code
- Caching (code fragments, requests), the use of tags when caching
- Routing, all requests through index.php (how and why)
- All sorts of helpers (for all occasions )
- MVC - own implementation
- Traits, abstract classes, interfaces, namespaces, all kinds of methods, class inheritance, etc.
After you can pile anything from this set anywhere in your code - go and download a popular and well-documented framework and start writing. If you immediately begin to delve into someone else's code, then your bikes were close to the truth.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question