Thread View: pl.comp.lang.php
3 messages
3 total messages
Started by jivanmukta
Mon, 14 Jul 2014 07:19
syntax error, unexpected T_VARIABLE
Author: jivanmukta
Date: Mon, 14 Jul 2014 07:19
Date: Mon, 14 Jul 2014 07:19
22 lines
2151 bytes
2151 bytes
Mam kontroler nie zawierający żadnych pól właściwości. W akcji cancel() mam błąd kompilacji którego nie rozumiem:
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Announcement extends CI_Controller
{
...
public function cancel() {
$fullAnnouncementNo = $this->input->post('full_announcement_no');
list($year, $month, $no) = $this->common->getYearMonthNo($fullAnnouncementNo);
$this->Announcement_model->deleteSubmitted($year, $month, $no);
$this->load->view('submitted_begin');
$this->load->view('submitted_cancelled');
$this->load->view('submitted_end');
}
}
Oto komunikat: PHP Parse error: syntax error, unexpected T_VARIABLE in announcement.php on line 257
Wiersz 257 to: $fullAnnouncementNo = $this->input->post('full_announcement_no');
Jest to jedyny komunikat błędu (php -l) na tej stronie.
Chyba mam jakieś zaćmienie...
Re: syntax error, unexpected T_VARIABLE
Author: Borys Pogoreło
Date: Mon, 14 Jul 2014 08:16
Date: Mon, 14 Jul 2014 08:16
14 lines
1345 bytes
1345 bytes
Dnia Mon, 14 Jul 2014 00:19:14 -0700 (PDT), jivanmukta@poczta.onet.pl
napisał(a):
> Oto komunikat: PHP Parse error: syntax error, unexpected T_VARIABLE in announcement.php on line 257
> Wiersz 257 to: $fullAnnouncementNo = $this->input->post('full_announcement_no');
> Jest to jedyny komunikat błędu (php -l) na tej stronie.
> Chyba mam jakieś zaćmienie...
Jak dla mnie błąd masz wcześniej, ale dopiero w tym miejscu robi się z tego
błąd dla parsera.
--
Borys Pogoreło
borys(#)leszno,edu,pl
Re: syntax error, unexpected T_VARIABLE
Author: jivanmukta
Date: Mon, 14 Jul 2014 15:21
Date: Mon, 14 Jul 2014 15:21
1 lines
1501 bytes
1501 bytes
Dobra dzięki problem rozwiązany. (Edytor dodał mi jakieś nie chore bajty).
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads