🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #231838

Re: Prosty skrypt, formularz i baza

#231838
From: Rafal Podsiadly
Date: Wed, 03 Jan 2018 20:00
28 lines
2303 bytes
W yii możesz to zrobić dość łatwo ...


1. Lokalnie instalujesz serwer apache + php + mysql. ja używam UniController

2. Odpalasz konsole php z aplikacji. przechodzisz do katalogu www cd  www

3. Pobierasz composer https://getcomposer.org/download/

4. Tworzysz projekt yii . http://www.yiiframework.com/doc-2.0/guide-start-installation.html

5. Pobierasz https://www.heidisql.com/ logujesz sie do bazy localhost u: root p: (pusta)

6. Tworzysz sobie bazę danych według swoich upodobań.

7. Konfigurujesz yii zgodnie z bazą http://www.yiiframework.com/doc-2.0/guide-start-databases.html Możesz też wykorzystać 

8. Włączasz obsługe bazy z poziomu przeglądarki https://packagist.org/packages/veyselsahin/yii2-giix

https://www.youtube.com/watch?v=wWApO_vWEYc

9. Generujesz CRUD dla bazy.

10. Formatujesz css template.

Cała aplka gotowa (2 - 3 h).

Powodzenia. 
Technical Details
Message-ID: <ce40191f-6e0e-4ca5-a62a-fe442bccc23d@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!m31no6285462qtf.0!news-out.google.com!t48ni2547qtc.1!nntp.google.com!g35no6282942qtk.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <9uqnsh2xa0tf.dlg@tyczka.com>

Show Full Headers
Complete Article Headers
X-Received: by 10.55.150.193 with SMTP id y184mr1659443qkd.42.1515009610158;        Wed, 03 Jan 2018 12:00:10 -0800 (PST)
X-Received: by 10.31.149.200 with SMTP id x191mr265271vkd.3.1515009609698; Wed, 03 Jan 2018 12:00:09 -0800 (PST)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!m31no6285462qtf.0!news-out.google.com!t48ni2547qtc.1!nntp.google.com!g35no6282942qtk.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.php
Date: Wed, 3 Jan 2018 12:00:09 -0800 (PST)
In-Reply-To: <9uqnsh2xa0tf.dlg@tyczka.com>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.207.83.154; posting-account=reqlzgoAAACKWK1i9kGr8VyQtzu_4AF6
NNTP-Posting-Host: 87.207.83.154
References: <9uqnsh2xa0tf.dlg@tyczka.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ce40191f-6e0e-4ca5-a62a-fe442bccc23d@googlegroups.com>
Subject: Re: Prosty skrypt, formularz i baza
From: Rafal Podsiadly <spinacz24@gmail.com>
Injection-Date: Wed, 03 Jan 2018 20:00:10 +0000
Lines: 33
X-Received-Bytes: 2188
X-Received-Body-CRC: 1508675085
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit