Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Form validation - Always false?
Post: RE: Form validation - Always false?

vinyl Wrote: (07-25-2022, 10:05 PM) -- Thanks, wil give that a try today! [edit] Codeigniter 4 is giving me a whole lot of headaches so I am seriously considering going back to version 3.... ...
374 Views
8 Replies
07-26-2022, 03:43 AM
demyr
    Thread: Form validation - Always false?
Post: RE: Form validation - Always false?

I will post here an example from my Register page. I hope it will also work for you. Controller: PHP Code: -- $data = [     'user_name' => strip_tags(trim($this->request->getVar('user_name')))...
374 Views
8 Replies
07-25-2022, 11:32 AM
demyr
    Thread: Question about making sure an image is completely removed from your CRUD application
Post: RE: Question about making sure an image is complet...

It is not so difficult to delete from the folder as well. You need "unlink" function in PHP and you can find regular php tutorials on internet for this. Let me write you the basic idea: Here is an ...
286 Views
5 Replies
07-15-2022, 10:44 PM
demyr
    Thread: Why do you use CI? What is your job?
Post: RE: Why do you use CI? What is your job?

luckmoshy Wrote: (07-06-2022, 11:23 AM) -- I wanna remind @demyr that even the PHP engine gets updated Thank you all -- Sure, but you don't feel that you are not up-to-date. But imagine that, I upd...
808 Views
12 Replies
07-06-2022, 12:18 PM
demyr
    Thread: Why do you use CI? What is your job?
Post: RE: Why do you use CI? What is your job?

Hi @"InstantT" , like @"php_rocs" I will say all of the above. Even though I have my own CMS made with CI I regret having built it with a framework. Because they are updated often and your system ...
808 Views
12 Replies
07-06-2022, 08:10 AM
demyr
    Thread: Session Lost After Payment Redirect
Post: RE: Session Lost After Payment Redirect

Thanks for the comment @"kenjis" , Checking local forums here I found a solution to add this line on top of the payment page. It worked. What do you think, does it sound safe? PHP Code: -- header(...
415 Views
5 Replies
07-06-2022, 08:03 AM
demyr
    Thread: Session Lost After Payment Redirect
Post: RE: Session Lost After Payment Redirect

ozornick Wrote: (07-05-2022, 05:15 AM) -- Session breaks due to CORS policy. Try setting in Config/Cookie SameSite=None instead of Lax And search on google about this cookie feature -- Thank you...
415 Views
5 Replies
07-05-2022, 11:51 PM
demyr
    Thread: Session Lost After Payment Redirect
Post: Session Lost After Payment Redirect

Hi there, I don't know if it is a bug or not but I am on local and I have added a payment system on a project. It works fine except for the success part. If the transaction is successful the 3rd pa...
415 Views
5 Replies
07-05-2022, 03:20 AM
demyr
    Thread: Custom Validate Birthday with value for each $year, $month, $day
Post: RE: Custom Validate Birthday with value for each $...

Hi. Why do you work with string but not integer ? And why you don't easily work with input type date (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date) . Because, you can easi...
340 Views
4 Replies
06-29-2022, 02:37 AM
demyr
    Thread: Codeigniter - Italian Community
Post: RE: Codeigniter - Italian Community

betti1965 Wrote: (06-25-2022, 10:39 AM) -- Salve a tutti! Mi sono appena iscritto perchè sono alla ricerca di un aiuto per un prodotto già realizzato con Codeigniter v3 L'obiettivo è quello di aggi...
21,051 Views
18 Replies
06-27-2022, 04:33 AM
demyr
    Thread: Title in View or in Controller [SOLVED]
Post: RE: Title in View or in Controller

@"InsiteFX" is right. It depends but I would go with the first option but not typing this way PHP Code: --     -- but shortly this way PHP Code: -- --
421 Views
4 Replies
06-26-2022, 02:52 AM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: RE: Codeigniter 4 Pagination With Join and Where s...

kenjis Wrote: (06-24-2022, 05:33 AM) -- demyr Wrote: (06-24-2022, 04:45 AM) -- For example, if it was set for 7,15 It starts from 16 + 7 items and same items for each pagination 1-2-3-4.. No differe...
984 Views
15 Replies
06-24-2022, 06:08 AM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: RE: Codeigniter 4 Pagination With Join and Where s...

kenjis Wrote: (06-24-2022, 03:35 AM) -- demyr Wrote: (06-24-2022, 12:28 AM) -- I believe limit and offset cannot solve the problem since offset creates a starting point until it reaches limit, am I ...
984 Views
15 Replies
06-24-2022, 04:45 AM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: RE: Codeigniter 4 Pagination With Join and Where s...

kenjis Wrote: (06-24-2022, 12:51 AM) -- demyr Wrote: (06-24-2022, 12:28 AM) -- You have defined $total as 20, but how can we know it beforehand? -- You can know it by querying the database. PH...
984 Views
15 Replies
06-24-2022, 02:08 AM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: RE: Codeigniter 4 Pagination With Join and Where s...

kenjis Wrote: (06-23-2022, 10:26 PM) -- demyr Wrote: (06-23-2022, 09:55 PM) -- But the thing I face here is the $total variable. It is not usable. Because imagine the total is 6 and I have 3 results...
984 Views
15 Replies
06-24-2022, 12:28 AM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: RE: Codeigniter 4 Pagination With Join and Where s...

It looks much more better. We are making progress. Thanks. The missing point here is that we should add the retrieving data part from the model and tell the users to keep them seperated. For in...
984 Views
15 Replies
06-23-2022, 09:55 PM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: RE: Codeigniter 4 Pagination With Join and Where s...

Unfortunately, the documentation needs real examples of usage of pagination. It's not working. It's not clear.  Adding a pagination should not have been so difficult, I guess. Is there anyone who c...
984 Views
15 Replies
06-23-2022, 08:14 AM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: RE: Codeigniter 4 Pagination With Join and Where s...

Thanks Kenji for the answer. I posted my question here because I didn't get any help from the documentation actually. When I try, I receive errors such as : BadMethodCallException Call to u...
984 Views
15 Replies
06-23-2022, 12:50 AM
demyr
    Thread: Giant controllers
Post: RE: Giant controllers

Well, if you have so many pages, it might be normal. For my cms projects I personally divide them first in two as Site and Admin folders and then in these folders, for example in Admin one, I have...
337 Views
3 Replies
06-22-2022, 10:03 AM
demyr
    Thread: Codeigniter 4 Pagination With Join and Where sql
Post: Codeigniter 4 Pagination With Join and Where sql

Hi there. For the first time with CI4 I need to use pagination but the explanations in our document or the examples I have found on internet lack when it comes to having an sql with joins or where con...
984 Views
15 Replies
06-16-2022, 11:44 PM
demyr

Theme © iAndrew 2016 - Forum software by © MyBB