Adireshin shafin yana baka dama ka tsara ma'anar kasuwancin ku a cikin tsarin itace, har da izinin mai amfani, hanyoyi da yawa.
Adiresoshi masu samuwa
GenericSitesAdapter Adireshin shafin yanar gizon yana kula da hikimar kasuwancinku ta hanyar MySQL database ko database-kamar tsarin fayil, kamar fayil .ini.
Kamar yadda ka san kowane shafin yanar gizon yana kunshe ne da farawa, da kuma abubuwa da yawa kamar farashin, da sauransu. Dangane da abin da kake so ka yi, za'a tsara tsarin tsarin yanar gizo a kan matakan da yawa. Wasu daga cikin waɗannan matakan za su iya buɗewa ga jama'a, wasu ba kawai ga masu rijista ba, kuma wasu kuma ga masu gudanarwa.
Don gane wannan, ana amfani da kayan yanar gizonku a cikin tsarin itace. Siffar ƙirar ka'idar ta kasance daidai da wancan don fayiloli da manyan fayiloli a tsarin fayil. Kuma kamar yadda a cikin tsarin fayil, akwai masu amfani da kungiyoyi waɗanda ke da izini daban-daban. Ana iya gudanar da wannan ta hanyar GAR a cikin yanki, da kuma ta hannu ta hanyar fayil din sanyi.
Saboda haka shafin yana kama da fayil kuma yana da mai shi, yana da ƙungiyar, yana da yanayin da ke da damar haɓaka kamar karantawa, rubutawa, da kuma kashewa, yana da mai sarrafawa (mai kula da ma'anar plugin a cikin wannan tsarin ƙirar), url, madadin url, lakabi, bayanin kuma da gaske iyaye saboda duk shafuka suna gina itace.
Wannan yana baka dama mai sauƙi da daidaitawa. Amma ba wai kawai wannan ba, yana ba ka dama, yin abubuwan ban mamaki a shafukanka.
Bari mu ce ka canza fasalin harkokin kasuwancinka a cikin wani tsari mai sauqi Tree kamar haka (tuna, kowace kumburi a itacen yana da dukan dukiyar da aka ambata a sama):
Bayan ka ƙirƙiri wannan tsari, zaka iya amfani dashi don abubuwa da yawa masu amfani. Alal misali, zaka iya ƙirƙirar labarun gefe, hanya mai kewayawa, ƙafa, ko menu:
Kamar yadda kake gani, code yana duba idan shafin ya kasance yana iya iya karantawa. A sakamakon haka, kawai abubuwa masu mahimmanci suna nunawa ga mai amfani.
Wannan yana nufin cewa bako zai ga Startpage abun menu da abun Login menu, amma mai shiga cikin mai amfani zai ga Startpage abu na Dashboard menu da abu na gaba idan an saita izini bisa ga yadda ya kamata.
Za a iya gwada wannan menu. Dole ne kawai ku rubuta macro wanda ya kira kansa don yin matakin gaba.
Wani misali kuma, mai yiwuwa abokin ciniki yana kan shafin da aka lissafa littattafai kuma kuna so ku danganta kowace takarda .pdf:
Wannan yana haifar da hanyoyi kamar haka:
Tsarin URL ɗin yana yiwuwa ne saboda madaidaiciyar na'ura mai ba da hanya tsakanin hanyoyin sadarwa.
Lokacin da muke magana game da hanyoyi a nan, wannan yana nufin tsarin ƙirar da ke da mahimmanci - a gaskiya ma, ana kiran URLs, saboda duk URLs na shafin yanar gizon yana kuma samar da itace wanda ake kira "hanyoyi".
Kowane hanya (URL) yana hade da wani shafin. A cikin misalinmu, tsarin shafukan URL (hanyoyi), wanda aka samo shi daga filenames na URLs, zai iya kama da wannan:
Kamar yadda kake gani, URL ɗin don saukewa na fayil na .pdf yana dauke da m tare da ID ID ( invoice_id ). Wannan ƙila ya ƙunshi lambobi ( digit ). Mai gudanarwa na URL na na'ura mai ba da hanya a hanyoyin sadarwa, dangane da asusun id ( 12345 ), URL ( /en/dashboard/invoices/12345.pdf ).
Idan an kira wannan adireshin, Uernar Kernel zai tambayi na'ura mai ba da hanya tsakanin hanyoyin sadarwa idan ya san wannan url. Mai ba da hanya tsakanin hanyoyin sadarwa zai gano cewa akwai irin wannan Url kuma wannan ɓangare na wannan Url shi ne m. Mai na'ura mai ba da hanya tsakanin hanyoyin sadarwa zai adana duk masu canji na URL a cikin tsararren. Wannan tsararren ana kiransa gardama ( arguments ). Zaka iya yin la'akari da shi azaman GET ko POST, amma yana nufin hanya na URL. A ƙarshe, na'urar na'ura mai ba da hanya tsakanin hanyoyin sadarwa zata dawo da muhawarar zuwa kwayar, tare da shafin da ke hade da adireshin.
Kernel ya san yanzu cewa an buƙatar da shafin "Download", kuma kernel ya san dabarun da aka nema ( {invoice_id: 12345} ). Na gaba, kernel yana duba idan mai amfani ya ba da izini ga shafin da aka nema. Idan mai amfani yana da izini, kernel zai kashe mai kula da wannan shafin. Mai sarrafawa zai iya yin samfurin kuma ya dawo da bayanan .pdf zuwa kernel:
Abokin ciniki yanzu yana ganin kaya a browser.
Kuma wannan yana da sauqi don tsara tashar kasuwancin ku tare da UCMS. Wannan shi ne misali mai sauƙi kawai. Akwai yiwuwar da yawa.