Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI3 num_rows on CI4
Post: RE: CI3 num_rows on CI4

If there is only one row expected, just do: PHP Code: -- $row = $this->db->table('table')->select('fileds')->where('id', 123)->get()->getRow(); if($row) { // Got result } --
5,131 Views
17 Replies
03-26-2022, 12:54 PM
GGitzOle
    Thread: Pagination Issue
Post: Pagination Issue

Hi, When using the Pager service to create manual pagination links, it doesn't seem to recognise the URL segment when you use setPath() with it. For example: PHP Code: -- $pager = \Config\Ser...
781 Views
1 Replies
03-15-2022, 08:01 AM
GGitzOle
    Thread: CSRF $csrfProtection set to cookie keeps regenerating
Post: RE: CSRF $csrfProtection set to cookie keeps regen...

kenjis Wrote: (03-07-2022, 01:27 AM) -- GGitzOle Wrote: (03-07-2022, 01:10 AM) -- By works I mean I can see the TestCookie in my FireFox dev console under the Network Tab -> Cookies. The Remember_me...
2,767 Views
6 Replies
03-15-2022, 05:03 AM
GGitzOle
    Thread: CSRF $csrfProtection set to cookie keeps regenerating
Post: RE: CSRF $csrfProtection set to cookie keeps regen...

kenjis Wrote: (03-06-2022, 04:57 PM) -- What do you mean by "Cookie works"? Did you see HTTP headers? -- Hi, By works I mean I can see the TestCookie in my FireFox dev console under the Network...
2,767 Views
6 Replies
03-07-2022, 01:10 AM
GGitzOle
    Thread: CSRF $csrfProtection set to cookie keeps regenerating
Post: RE: CSRF $csrfProtection set to cookie keeps regen...

Thanks for your reply. I just installed a fresh CI 4.1.9 framework and I still can't get cookies to work. Are there any default settings needed to get it work? I'm using a subdomain like dev.mysite.c...
2,767 Views
6 Replies
03-06-2022, 06:53 AM
GGitzOle
    Thread: CSRF $csrfProtection set to cookie keeps regenerating
Post: CSRF $csrfProtection set to cookie keeps regenerat...

Hi! I seem to have an issue with cookies on my CodeIgniter. I'm using the latest update and have just upgraded from previous old versions so I have a feeling it might be something to do with this. ...
2,767 Views
6 Replies
03-02-2022, 05:41 AM
GGitzOle
    Thread: my website - currently unable to handle this request
Post: RE: my website - currently unable to handle this r...

Check your database credentials to make sure they're 100% correct. Also,since your web host recreated the domain, check your config values are correct, particularly base_url. And then finally take ...
18,915 Views
7 Replies
04-17-2017, 01:57 AM
GGitzOle
    Thread: ajax post csrf problem 403 error
Post: RE: ajax post csrf problem 403 error

Hi, Set $config['csrf_regenerate'] = FALSE; in your application/config/config.php file. The reason your AJAX fails the second time is because the CSRF token regenerates with each new page req...
12,834 Views
8 Replies
04-17-2017, 01:52 AM
GGitzOle
    Thread: CodeIgniter 3.1.4 released
Post: RE: CodeIgniter 3.1.4 released

Thanks for your hard work guys :)
95,980 Views
37 Replies
03-23-2017, 01:29 AM
GGitzOle
    Thread: Using db->like() breaks when using single quotes?
Post: Using db->like() breaks when using single quotes?

Hi, I am creating a simple search for a book name. When I use: $book_name = "John's Apples"; $this->db->like("books.name", $book_name)->get("books"); The query fails to find any results. I...
2,071 Views
1 Replies
01-25-2017, 07:08 AM
GGitzOle
    Thread: Blank Error Upon Upload - Strange.
Post: Blank Error Upon Upload - Strange.

I am trying to upload a file using CodeIgniter. This server seems to have something strange going on because the code works fine on other servers. I'm trying to debug the issue but no errors are being...
2,166 Views
1 Replies
11-28-2016, 02:33 AM
GGitzOle

Theme © iAndrew 2016 - Forum software by © MyBB