PHP: Babban littafi da Tsarin MVC don PHP

Masu goyon baya a kan Shiryawa a cikin fakiti suna da 'yan kwanan nan inda suke ƙarfafa masu haɓaka PHP / masu rubutun ra'ayin yanar gizo don karanta sabon littafi da blog game da shi. Ina matukar jin dadin damarmaki kamar wannan - bai nemi kowane sako mai kyau ko mara kyau ba, kawai nazarin gaskiya ne na littafin da suka bayar (ba tare da tsada ba).

1847191746Littafin da na karba shine CodeIgniter don Ci gaban Aikace-aikacen PHP, David Upton ne ya rubuta.

Littafin da na fi so akan PHP / MySQL har yanzu PHP da MySQL Yanar Gizon. Yana da PHP 101 da MySQL 101 duk sun kunshi cikin kyakkyawa, ingantaccen littafi mai tarin tarin samfuran lamba. CodeIgniter cikakkiyar yabo ce, wataƙila jagorar PHP 201. Yana ɗaukar duk tsayayyen lambar sirri na PHP da samar da tsari don haɓaka lambar cikin sauri kuma tare da mafi kyawun ayyuka na MVC tsarin.

Bisa lafazin wikipedia:

Model-view-mai kula (MVC) sigar tsarin gine-gine ne wanda aka yi amfani dashi a cikin injiniyan software. A cikin aikace-aikacen kwamfuta masu rikitarwa waɗanda ke gabatar da adadi mai yawa ga mai amfani, mai haɓaka sau da yawa yana son raba bayanai (samfurin) da damuwar mai amfani (duba), don haka canje-canje ga mai amfani da mai amfani ba zai shafi sarrafa bayanai ba, kuma cewa bayanan za a iya sake tsara shi ba tare da canza tsarin mai amfani ba. Mai sarrafa samfurin-duba-yana warware wannan matsalar ta hanyar ƙaddamar da damar samun bayanai da kuma tunanin kasuwanci daga gabatarwar bayanai da hulɗar mai amfani, ta hanyar gabatar da tsaka-tsaki: mai sarrafawa.

Baya ga kyakkyawan rubuce-rubuce tare da tarin misalai na zahiri, ɗayan abubuwan da na fi so game da wannan littafin shi ne cewa yana bayanin abin da ba haka ba. CodeIgniter tsari ne na bude-gida. Kamar wannan, yana da wasu iyakokin yarda. Littafin ya shiga waɗannan dalla-dalla. Wasu iyakokin ma'aurata wadanda na samo sune rashin kayan aikinda ake amfani dasu a cikin nunin kayan aikin masu amfani kamar su anchors, tebur da fom da kuma duk wani zancen tsoffin abubuwan XML REST APIs da Sabis na Yanar gizo. Koyaya, Na yi imanin waɗancan zaɓuɓɓukan za a iya sauƙaƙe a cikin sifofin nan gaba - za mu gani!

Mafi cikakken sashin CodeIgniter, a ganina, shine laburaren adana bayanai. Na sami rubuta haɗin MySQL da tambayoyin masu cin lokaci kuma suna aiki tuƙuru. Ina so nan da nan in shiga cikin CodeIgniter don amfani da tsarin bayanan su, Na yi imanin zai iya adana min tan na lokaci - musamman a rubuce / sake rubuta tambayoyi! Hakanan akwai wasu ƙarin ƙari don Ajax, JChart da magudi na hoto.

Idan ya zama kamar Ina tattaunawa ne akan CodeIgniter fiye da littafin, su biyun suna da gaske ɗaya. Littafin shine cikakkiyar hanyar koyan fasahohin ci gaba, ba kawai amfani da CodeIgniter ba. Ina bayar da shawarar littafin sosai. Littafin ya ce “Inganta aikin coding ɗin ku na PHP tare da ƙaramin tsarin buɗe ido na MVC CodeIgniter mai buɗewa kyauta!”. Wannan gaskiya ne!

Idan kuna sha'awar CodeIgniter, tabbatar da kallon Bidiyo Gabatarwa.

2 Comments

  1. 1

    Manufar tsari shine sanya tsarin rubuta aikace-aikacen gidan yanar gizo mai sauki.

    Aikace-aikacen da aka tsara a kusa da MVC ya fi sauƙi don sarrafawa saboda ya kasu kashi biyu, wanda ke ba da damar ci gaba mai zaman kansa. Wannan yana inganta sake amfani da lambar ta ƙirar gini, waɗanda za'a iya sake amfani dasu cikin aikace-aikacen.

  2. 2

    Manufar tsari shine sanya tsarin rubuta aikace-aikacen gidan yanar gizo mai sauki.

    Aikace-aikacen da aka tsara a kusa da MVC ya fi sauƙi don sarrafawa saboda ya kasu kashi biyu, wanda ke ba da damar ci gaba mai zaman kansa. Wannan yana inganta sake amfani da lambar ta ƙirar gini, waɗanda za'a iya sake amfani dasu cikin aikace-aikacen.

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.