Article View: pl.comp.lang.php
Article #231085Re: MVC: zapytanie SQL z kontrolera
From: jivanmukta
Date: Tue, 14 Jul 2015 09:47
Date: Tue, 14 Jul 2015 09:47
1 lines
1689 bytes
1689 bytes
Czy jeśli w kontrolerze używam metody modelu to dane od użytkownika (w CodeIgniterze funkcja $this->input->post('field_name')) powinienem przekazywać jako paramter to meodty modelu, czy też mogę użyć $this->input->post('field_name') w metodzie modelu? Tak, żeby było MVC...
Technical Details
Message-ID:
<41f4e3a9-f1eb-4566-b59d-070e8adb52c6@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!newsfeed.pionier.net.pl!news.glorb.com!qs7no5056374igc.0!news-out.google.com!4ni81119qgh.1!nntp.google.com!z61no931948qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<40546498-26c6-4e09-a62f-815df4bdc3f8@googlegroups.com> <18ib0oawqi49n$.zkxevcy1a7jc.dlg@40tude.net> <db28497e-bddd-44e5-9575-5cf1a3fe5c41@googlegroups.com> <1mg1pouopguup.jcxkalwncm2x$.dlg@40tude.net>Show Full Headers
Complete Article Headers
X-Received: by 10.107.161.71 with SMTP id k68mr994565ioe.3.1436867242367; Tue, 14 Jul 2015 02:47:22 -0700 (PDT) X-Received: by 10.140.35.170 with SMTP id n39mr548163qgn.0.1436867242204; Tue, 14 Jul 2015 02:47:22 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!newsfeed.pionier.net.pl!news.glorb.com!qs7no5056374igc.0!news-out.google.com!4ni81119qgh.1!nntp.google.com!z61no931948qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.php Date: Tue, 14 Jul 2015 02:47:22 -0700 (PDT) In-Reply-To: <1mg1pouopguup.jcxkalwncm2x$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.24.152.183; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa NNTP-Posting-Host: 83.24.152.183 References: <40546498-26c6-4e09-a62f-815df4bdc3f8@googlegroups.com> <18ib0oawqi49n$.zkxevcy1a7jc.dlg@40tude.net> <db28497e-bddd-44e5-9575-5cf1a3fe5c41@googlegroups.com> <1mg1pouopguup.jcxkalwncm2x$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <41f4e3a9-f1eb-4566-b59d-070e8adb52c6@googlegroups.com> Subject: Re: MVC: zapytanie SQL z kontrolera From: jivanmukta@poczta.onet.pl Injection-Date: Tue, 14 Jul 2015 09:47:22 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit