Answer the question
In order to leave comments, you need to log in
PHP or framework?
Where is it easier to implement simple interactions with the database and input / output of information? In pure PHP or with some php framework?
Answer the question
In order to leave comments, you need to log in
Where is it easier
$model = Product->find()->andWhere(['>','price',150])->limit(5)->all(); //выборка с условиями и лимитом
$model->save(); //запись
Do you think the framework is written in some special dialect and you don’t need to know php to use it?
Well, see for yourself here. For example, if I have a task where I need to work with the database, I deploy the framework. Moreover, for "small" tasks / projects there are "small" frameworks
I initially took up the frame, and implemented my crutch, but then I realized that without the basics I wouldn’t go far and sat storming PHP on a new one :) Now I seem to have caught up with the lost time, and I feel more confident :) I regret that I didn’t start on the bare one right away, because the entry threshold is easier :) And so it's up to you. If you need to quickly, frame, if the goal is to study the puff at the proper level, then start from the bare very thing :) Personally, I myself lasted a month on the bare, meaning the study of theory and so on :) And yet I moved back :)
I advise you to take a mini-framework for your actions. Many of them are good at ORM for example.
https://fatfreeframework.com/3.6/home
https://lumen.laravel.com/
Often use fatfree for some small things
If the scripter is only from the database - pure PHP
If there is still an output to the browser, routing, some kind of authorization, then the framework is to your liking.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question