Home > Syntax Error > Parse Error Syntax Error Unexpected T_public Codeigniter

Parse Error Syntax Error Unexpected T_public Codeigniter


If you are at some web hosting, it is time to move your php pages away to a better place. Reload to refresh your session. function login() { $this->form_validation-> set_rules('username', 'Username', 'xss_clean|required|callback_username_check'); $this->form_validation-> set_rules ('password', 'Password', 'xss_clean|required|min_length[4]|max_length[12]| sha1|callback_password_check'); $this->_username = $this->input->post('username'); $this->_password = sha1($this->_salt . $this->input->post('password')); { if ($this->form_validation->run() ==FALSE) { $this->load->view('account/login'); } else { $this->account_model->login(); The time now is 07:53 PM. have a peek here

Even if we remove 'public' this will work. Because you will run into errors, warnings in scripts that are written for PHP 5.2 and 5.3 If only you can, you must upgrade and use 5.2 at least. Username Password I've forgotten my password Remember me This is not recommended for shared computers Sign in anonymously Don't add me to the active users list Privacy Policy Search: Advanced Forum Teaching a blind student MATLAB programming A word generalizing over inputs and outputs (of a system) Find the super palindromes! look at this site

Syntax Error Unexpected 'public' (t_public) Laravel

Please click the link in the confirmation email to activate your subscription. Please - I Know Its A Terrible Joke. Please for assistance. PHP 4 did not support public/private/protected keywords.

thanks Back to top Back to PHP Applications · Next Unread Topic → 0 user(s) are reading this topic 0 members, 0 guests, 0 anonymous users Reply to quoted postsClear Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #6 Duckington D.I.C Addict Reputation: 172 Posts: 614 Joined: 12-October 09 Re: Question:unexpected T_PUBLIC....Explain Please..... I could make a hazard and say that you violate the Interface (could also be a final class), though. Parse Error Syntax Error Unexpected 'public' (t_public) In Wordpress Why would breathing pure oxygen be a bad idea?

Page 1 of 1 New Topic/Question Reply 5 Replies - 2660 Views - Last Post: 25 May 2012 - 10:06 AM Rate Topic: #1 BarNunBoi D.I.C Head Reputation: 6 Posts: Parse Error: Syntax Error, Unexpected 'public' (t_public) How to Get Good Help: How to Ask Questions | Don't be a help vampire Debugging Your Code: Debugging your SQL | What does a php function do? | What does Start a new discussion instead. https://www.codecademy.com/en/forum_questions/5224cc21548c359fa900352b more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

DaniWeb IT Discussion Community Join DaniWeb Log In Hardware and Software Programming Digital Media Community Center Programming Web Development Not Yet Answered How to fix Parse error: syntax error, unexpected T_STRING, [symfony\component\debug\exception\fatalerrorexception] Syntax Error, Unexpected 'public' (t_public) Why do jet engines smoke? Bangalore to Tiruvannamalai : Even, asphalt road Fill in the Minesweeper clues What's difference between these two sentences? defined('BASEPATH')) exit('No direct script access allowed'); class Main extends CI_Controller { var $data; function __construct() { parent::__construct(); $this->load->library (array('form_validation', 'session')); $this->load->helper(array('url', 'form')); $this->load->model('account_model'); $this->_salt = '123456789987654321'; } //This is the index

Parse Error: Syntax Error, Unexpected 'public' (t_public)

Objects in PHP Forum View Course 487 points Submitted by Vu Nguyen Viet about 3 years ago [solved]Parse error: syntax error, unexpected T_PUBLIC on line 14 The code passed but it https://forums.phpfreaks.com/topic/268707-codeigniter-public-t-error/ share|improve this answer answered Nov 12 '12 at 9:44 Omar Jackman 10.6k23157 what's the difference between a public function in a class and a function out in the open? Syntax Error Unexpected 'public' (t_public) Laravel Are illegal immigrants more likely to commit crimes? Message: Syntax Error, Unexpected 'public' (t_public) If someone would please point out what I am missing an please explain the fix.

Staff Alumni 8,982 posts LocationDallas, TX Age:26 Posted 23 September 2012 - 09:08 PM You have too many } at one point. navigate here Register now! Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #4 BarNunBoi D.I.C Head Reputation: 6 Posts: 236 Joined: 28-March 12 Re: Question:unexpected T_PUBLIC....Explain Please..... This is why we make consistent bracket placement, so we always put stuff in the same place, and thus can easily spot mis-placements. Parse Error: Syntax Error, Unexpected 'protected' (t_protected)

Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.? You signed in with another tab or window. share|improve this answer answered Jan 11 '11 at 7:48 shirin 111 add a comment| Not the answer you're looking for? Check This Out Things You Should Do: Normalize Your Data | use print_r() or var_dump() Lulz: "Functions should not have side effects." - trq Please take a look at my new PHP/Web Dev blog:

The error was actually in the line function __construct(). Syntax Error Unexpected 'public' Laravel Results 1 to 6 of 6 Thread: Parse error: syntax error, unexpected T_PUBLIC Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search i want to sort them by their type (1,2,3) This is what i … Recommended Articles PHP and mysql Upload files Last Post 22 Hours Ago dear friends, I have created

I want to connect sqlserver with php, So … recursion call on exit 8 replies Hello , I have this code: #include #include #include using namespace std; void

Newsletter Subscribe to our newsletters and be informed of new releases and other OpenCart events. It also helps you to practice vim online. Since you're not using a class you need to remove it from your code. Parse Error Syntax Error Unexpected 'public' (t_public) Opencart What to do with my pre-teen daughter who has been out of control since a severe accident?

Student discount for Frankfurt Radio Symphony Orchestra Passing different value (link value) from VF page to VF component and display it on screen Upper bounds for regulators of real quadratic fields Join them; it only takes a minute: Sign up PHP Parse error: syntax error, unexpected T_PUBLIC [closed] up vote 9 down vote favorite 3 I am getting this error in this Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). this contact form Is that correct? 0 gilgil2 4 Years Ago I think the problem is with the "===" I am not a PHP expert, but === means that the values and variables are

previously … Histogram 2 replies Can someone help me please find the ploblem with this program ? need help Parse error: syntax error, unexpected T_PUBLIC on line 14 here's my code Practice makes perfect! Today's Topics Dream.In.Code > Programming Help > PHP Question:unexpected T_PUBLIC....Explain Please..... Message Insert Code Snippet Alt+I Code Inline Code Link H1 H2 Preview Submit your Reply Alt+S Ask a Different Web Development Question Related Articles mysqli_query error, I have problem submiting my

x x) has a type, then is the type system inconsistent?