Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Issue with credit card validation
Post: RE: Issue with credit card validation

Usually payment gateways provide an iframe or routed payment screen and they take care of everything including security. So, first of all, is it really safe to handle the payment processing and verifi...
29 Views
3 Replies
43 minutes ago
demyr
    Thread: how to use set_select on a form to show the old value?
Post: RE: how to use set_select on a form to show the ol...

kcs Wrote: (Yesterday, 03:22 AM) -- Thanks a lot for your feedback and help :) -- You're very welcome
362 Views
13 Replies
Yesterday, 06:37 AM
demyr
    Thread: how to use set_select on a form to show the old value?
Post: RE: how to use set_select on a form to show the ol...

The helper thing is a great idea, liked that. tinyint and varchar are about storage and performance. Tiny int is 1 byte, whereas varchar can be longer, related to your text: "pending" is 7 bytes fo...
362 Views
13 Replies
Yesterday, 02:06 AM
demyr
    Thread: how to use set_select on a form to show the old value?
Post: RE: how to use set_select on a form to show the ol...

kcs Wrote: (05-13-2024, 11:38 AM) -- Hi, I am not managing to make the set_select work on a form. I am following the documentation (https://codeigniter4.github.io/CodeIgniter4/helpers/form_helper.h...
362 Views
13 Replies
05-14-2024, 07:46 AM
demyr
    Thread: Trying to remove index.php from url in latest codeigniter 4.5.1
Post: RE: Trying to remove index.php from url in latest ...

Another way : Go to Public folder, move (or copy) htaccess and index.php to the main app folder. Then in your main app/index.php find the line 34 and change the path like PHP Code: -- require FCPA...
417 Views
7 Replies
05-03-2024, 05:31 AM
demyr
    Thread: Codeigniter4 How i can convert this builder query to normal ?
Post: RE: Codeigniter4 How i can convert this builder qu...

Well, Chatgpt says: PHP Code: -- SELECT a.id as empid,       a.first_name as name,       a.last_name as last,       a.emp_code as emp_code,       b.name as division,       c.name as depa...
317 Views
3 Replies
03-29-2024, 04:55 AM
demyr
    Thread: CORS for API
Post: RE: CORS for API

Great news @kenjis. Thank you
7,820 Views
13 Replies
03-23-2024, 02:18 AM
demyr
    Thread: Cannot Retrieve the Correct Content
Post: RE: Cannot Retrieve the Correct Content

kenjis Wrote: (03-08-2024, 04:43 PM) -- dd($page_id); -- it returns 1 as string and when I convert it to integer then it is integer. Well, I found the reason. As I first stated, it was really s...
590 Views
9 Replies
03-08-2024, 11:45 PM
demyr
    Thread: Cannot Retrieve the Correct Content
Post: RE: Cannot Retrieve the Correct Content

Well it works, your dd($data['pages']). I think this is an issue with Routing. Because I can run the same calling for homepage. It works there, I can display the about page content on my homepage ...
590 Views
9 Replies
03-08-2024, 11:54 AM
demyr
    Thread: Cannot Retrieve the Correct Content
Post: RE: Cannot Retrieve the Correct Content

JustJohnQ Wrote: (03-08-2024, 09:14 AM) -- I am confused. From your controller you call: Code: -- $page = $this->PageModel->fetch_page($page_id); -- dd($page) returns 0, but print_r($page) has th...
590 Views
9 Replies
03-08-2024, 11:05 AM
demyr
    Thread: Cannot Retrieve the Correct Content
Post: RE: Cannot Retrieve the Correct Content

JustJohnQ Wrote: (03-08-2024, 07:19 AM) -- Are you saying that when the following is executed in your controller, the correct data is displayed: PHP Code: -- $page = $this->PageModel->fetch_page($p...
590 Views
9 Replies
03-08-2024, 07:54 AM
demyr
    Thread: Cannot Retrieve the Correct Content
Post: Cannot Retrieve the Correct Content

Hi. That could be a silly problem but let me write: I send a request from my Controller to the model as usual to retrieve a page. To make everything certain I use id. Controller: Code: -- $pag...
590 Views
9 Replies
03-08-2024, 02:11 AM
demyr
    Thread: multiple csrf token in one page using jquery codeigniter 3.x
Post: RE: multiple csrf token in one page using jquery

nasakh Wrote: (02-14-2024, 09:00 AM) -- demyr Wrote: (02-14-2024, 08:12 AM) -- You don't need multiple CSRF tokens, one is enough. Go to Security file under the Config folder and find this line ...
581 Views
5 Replies
02-14-2024, 01:24 PM
demyr
    Thread: multiple csrf token in one page using jquery codeigniter 3.x
Post: RE: multiple csrf token in one page using jquery

You don't need multiple CSRF tokens, one is enough. Go to Security file under the Config folder and find this line (it must be line 27) : public bool $tokenRandomize = true; and make it false. It ...
581 Views
5 Replies
02-14-2024, 08:12 AM
demyr
    Thread: Server Push/preloading?
Post: RE: Server Push/preloading?

I do agree, too. This feature would be useful. But what if we have two critical css files that need to be preloaded, for example a stysheet for the web and another for the responsive side? Can we prel...
1,963 Views
6 Replies
02-13-2024, 08:14 AM
demyr
    Thread: REST API vs RESTful API: Which One Leads in Web App Development?
Post: RE: REST API vs RESTful API: Which One Leads in We...

Good article. Thanks for sharing.
475 Views
3 Replies
01-24-2024, 03:15 AM
demyr
    Thread: orWhere query shows soft deleted entries
Post: RE: orWhere query shows soft deleted entries

Why don't you use two ->where-s but orWhere? Or is or.  But 2-where means and. Where (https://codeigniter.com/user_guide/database/query_builder.html#where) orWhere (https://codeigniter.com/user_...
470 Views
5 Replies
01-08-2024, 08:05 AM
demyr
    Thread: Best Method to store a Checkbox
Post: RE: Best Method to store a Checkbox

First, If I were you I would do the sql part in the Model file. Also a foreach in another one is nod adviced. It's not good. You need to handle it in sql. In your Model : PHP Code: -- publi...
676 Views
5 Replies
01-07-2024, 09:39 PM
demyr
    Thread: Error view exception is not showing the source code in PHP8.3 - Codeigniter v4.4.4
Post: RE: Error view exception is not showing the source...

Probably a bug. Same error here. And also it displays this error page only when I set display_errors to 1, not in development.php but interestingly in production.php under app/Config/Boot/. Otherwise ...
709 Views
6 Replies
01-04-2024, 12:55 PM
demyr
    Thread: SEO friendly search filter using segment
Post: RE: SEO friendly search filter using segment

ozornick Wrote: (01-03-2024, 01:33 PM) -- SEO friendly :) URL without query string -- Then almost no website is seo friendly in the world. How can the search results page be SEO friendly? The conte...
410 Views
5 Replies
01-03-2024, 02:09 PM
demyr

Theme © iAndrew 2016 - Forum software by © MyBB