Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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...
251 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,551 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...
476 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 ...
476 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...
476 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...
476 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...
476 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 ...
464 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 ...
464 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,809 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.
398 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_...
394 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...
562 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 ...
559 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...
349 Views
4 Replies
01-03-2024, 02:09 PM
demyr
    Thread: SEO friendly search filter using segment
Post: RE: SEO friendly search filter using segment

Why don't you use form method="get" and you will have a url like mywebsite.com/listings?listing_type=buy&city=all&property_type=house
349 Views
4 Replies
01-03-2024, 12:23 PM
demyr
    Thread: Happy New Years Everyone.
Post: RE: Happy New Years Everyone.

To start new creative projects such as a website for free templates. Plus, one language teaching project. Both are side projects. Planning to work hard and enjoy life more by travelling.
508 Views
6 Replies
01-03-2024, 06:20 AM
demyr
    Thread: Best Method to store a Checkbox
Post: RE: Best Method to store a Checkbox

Why don't you also add the category_id to your user_preference table? What happened to that? Do you mean limiting the user for maximum 3 options? First, I would go with frontend control & warning...
562 Views
5 Replies
01-03-2024, 04:20 AM
demyr
    Thread: Best Method to store a Checkbox
Post: RE: Best Method to store a Checkbox

Keep them seperated. And if you want to let users select items on your website and save this selection, then you will need another table: shopping_list (for example). And in this table you will hav...
562 Views
5 Replies
01-02-2024, 02:10 PM
demyr
    Thread: Happy New Years Everyone.
Post: RE: Happy New Years Everyone.

Thank you @"InsiteFX" . Happy New Years
508 Views
6 Replies
01-01-2024, 03:49 AM
demyr

Theme © iAndrew 2016 - Forum software by © MyBB