Learn CakePHP v3.5 Tutorial in HINDI for beginners (Part 17) Database Basics | ConnectionManager

preview_player
Показать описание
In this video I have explained about database configuration and its basics in cakephp, using connection manager and operations of CRUD

Steps to do:
1. First Load ConnectionManager Class

use Cake\Datasource\ConnectionManager;

2. Use database

$connection = ConnectionManager::get('default');

3. Execute Query
Insert: insert(tableName,[values with key value pair])

Example:
============
insert("employees",[
"name"="Online Web Tutor",
"phone"="89455451221"
])

Update: update(tableName,[updated values with key value pair],[update conditions])

Example:
===========
update("employees",[
],[
"id"=1,"key"=value
// conditions here
])

Delete: delete(tableName,[delete conditions])

Example:
===============
delete("employees",[
"id"=3
// delete conditions
]);

Thats it! You are done.

Documentation Study:
=================

Important Videos, you should watch:

About CakePHP Installation
==================
After installation check your composer installation via command: composer into terminal
before using this command make sure about your composer path
3. Paste the above command into command prompt/ terminal and hit inter.
4. Thats it Done :)

SOCIAL :
===============

Also you can learn Wordpress Custom
===============



Tags
===============
learn cakephp 3.5,
cakephp tutorial,
cakephp tutorial in hindi,
cakephp tutorial for beginners step by step,
cakephp 3,
cakephp 3 tutorial for beginners step by step,
cakephp 3 tutorial,
cakephp 3.5 tutorial,
cakephp tutorial for beginners step by step in hindi,
cakephp tutorial step by step,
cakephp tutorial for beginners,
learn cakephp in hindi,
learn cakephp step by step,
learn cakephp for beginner,
learn cakephp 3,
learn cakephp,
online web tutor,
profotech solutions,

Thanks
Online Web Tutor
Keep learning and Sharing :)
Рекомендации по теме
Комментарии
Автор

3 days for understand cakephp thanks you so much

buituandung
Автор

please add some more videos in this cake php series also best on youtube

fullstack
Автор

Sir part 17 m..database error likha aa rha h..or uska nicha pdo exception what I do .sir .. reply please

vikasrai
Автор

hi sir....i am in cakephp, i am getting this error Notice (8): Undefined variable: connection [APP/Controller\StudentsController.php, line 30]
Call to a member function insert() on null..sir please kindly help out.

chandru
Автор

Do you know, how to create table with use of connectionmanager?

viddy