Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Pagination links
Post: Pagination links

I'm having a little trouble with pagination links, I'm building a jobsite and on the front end when viewing jobs the pagination works fine with no problem. In admin I have a similar method that lis...
1,142 Views
0 Replies
12-03-2018, 02:23 PM
barrypoore
    Thread: Pagination issue
Post: RE: Pagination issue

ciadmin Wrote: (07-12-2018, 04:47 PM) -- The sitepoint tutorial is for CodeIgniter 2. There have probably been some changes for version 3 :-/ php_rocs advice is reasonable :) -- Yes I realise now ...
3,238 Views
3 Replies
07-13-2018, 01:38 PM
barrypoore
    Thread: Pagination issue
Post: Pagination issue

Hi have finally got pagination working (kind of) but cannot resolve two issues: First link isn't actually a link its just a strong tag so you can never get back to the first page, even if you proceed ...
3,238 Views
3 Replies
07-12-2018, 02:11 PM
barrypoore
    Thread: Using the PASSWORD() function
Post: RE: Using the PASSWORD() function

Thanks that makes sense although I've not quite managed to strike a match with it, here is my example: $hash = password_hash($this->input->post('jbsPassword'), PASSWORD_DEFAULT); if (password_ve...
18,740 Views
7 Replies
04-09-2018, 01:44 PM
barrypoore
    Thread: Using the PASSWORD() function
Post: RE: Using the PASSWORD() function

Just one issue I'm facing is each time I has the $_POST['password'] a new hash is generated rather then the same one, so when I attempt to match it in the database it will always return false, am I mi...
18,740 Views
7 Replies
04-09-2018, 11:40 AM
barrypoore
    Thread: How to get data objects in controller
Post: RE: How to get data objects in controller

Got it, nice one, thanks very much.
9,563 Views
7 Replies
04-09-2018, 11:32 AM
barrypoore
    Thread: How to get data objects in controller
Post: RE: How to get data objects in controller

I have got it working, not entirely sure why but it was the query in the model, I changed it from: return $query->result_array(); to: return $query->row_array(); and now it all works, than...
9,563 Views
7 Replies
04-09-2018, 10:01 AM
barrypoore
    Thread: How to get data objects in controller
Post: RE: How to get data objects in controller

I still can't get it working, I'll try and break the code down into it's simplest parts: In my model: // will include the password later public function jobseekersLogin($email, $password) {   ...
9,563 Views
7 Replies
04-09-2018, 09:08 AM
barrypoore
    Thread: How to get data objects in controller
Post: RE: How to get data objects in controller

Ok thanks I get that, but then how would I get the variables to create the session vars in the controller, because I assume that's where I would need to set them, in the controller not the view?
9,563 Views
7 Replies
04-09-2018, 05:46 AM
barrypoore
    Thread: How to get data objects in controller
Post: How to get data objects in controller

I'm really new to this so excuse my query on something that is probably fundamental but... I have a controller that has the model in the constructor, I have created a method in the model which grab...
9,563 Views
7 Replies
04-09-2018, 05:04 AM
barrypoore
    Thread: Using the PASSWORD() function
Post: RE: Using the PASSWORD() function

jreklund Wrote: (03-28-2018, 02:24 PM) -- 1. Add "passwordConverted" in the database, default into 0. 2. Select user from database based on username/email 2. Check if "passwordConverted" are 0 or 1...
18,740 Views
7 Replies
03-28-2018, 02:49 PM
barrypoore
    Thread: Using the PASSWORD() function
Post: Using the PASSWORD() function

I am rebuilding an existing site in CodeIgniter which someone previously built in bespoke php which is largely full of depricated functionality hence the rebuild. This is my first CodeIgniter project ...
18,740 Views
7 Replies
03-28-2018, 01:29 PM
barrypoore
    Thread: Using pagination
Post: RE: Using pagination

Ah ok so the view does inherit everything from the controller? Ok I have put the echo $this->pagination->create_links(); into the view and that's working ok, the only thing now is I'm still getting al...
4,760 Views
5 Replies
03-13-2018, 11:47 AM
barrypoore
    Thread: Using pagination
Post: RE: Using pagination

Thank you for your response, here is the code example by CodeIgniter: (with my own comments) // I get this bit, just loading up the required library $this->load->library('pagination'); // I ...
4,760 Views
5 Replies
03-13-2018, 11:12 AM
barrypoore
    Thread: Scaffolding css
Post: RE: Scaffolding css

donpwinston Wrote: (03-12-2018, 03:20 PM) -- make an "assets" directory at the root level and put your css,js, and images in there. -- Yep I like that idea a lot, that's consistent with the new Sag...
4,373 Views
3 Replies
03-12-2018, 04:29 PM
barrypoore
    Thread: Scaffolding css
Post: Scaffolding css

I have been searching documentation and can't find anything on how I should scaffold my project, i.e where do I put my css folder, should it go in views, should it go in the applications folder, shoul...
4,373 Views
3 Replies
03-12-2018, 02:27 PM
barrypoore
    Thread: Using pagination
Post: Using pagination

I'm starting my first project in CodeIgniter and are a little confused by the documentation for using pagination, there is an example on the page: https://codeigniter.com/user_guide/libraries/pagin...
4,760 Views
5 Replies
03-12-2018, 01:36 PM
barrypoore

Theme © iAndrew 2016 - Forum software by © MyBB