About the Tutorial



Download 1,5 Mb.
Pdf ko'rish
bet46/96
Sana29.01.2022
Hajmi1,5 Mb.
#416930
1   ...   42   43   44   45   46   47   48   49   ...   96
Bog'liq
Download CakePHP Tutorial (PDF Version)

ElemsController.php
file at 
src/Controller/ElemsController.php
. Copy the 
following code in the controller file. 
src/Controller/ElemsController.php 
namespace App\Controller; 
use App\Controller\AppController; 
use Cake\ORM\TableRegistry; 
use Cake\Datasource\ConnectionManager; 
class ElemsController extends AppController{ 
public function index(){ 


?> 
Execute the above example by visiting the following URL. 
http://localhost:85/CakePHP/element-example


CakePHP 
32 
Output 
Upon execution, the above URL will give you the following output. 


CakePHP 
33 
There are several callbacks/events that we can use with View Events. These events are 
helpful to perform several tasks before something happens or after something happens. 
The following is a list of callbacks that can be used with CakePHP. 

Download 1,5 Mb.

Do'stlaringiz bilan baham:
1   ...   42   43   44   45   46   47   48   49   ...   96




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish