Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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 ...
280 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 ...
280 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,362 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.
257 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_...
264 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...
365 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 ...
366 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...
235 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
235 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.
345 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...
365 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...
365 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
345 Views
6 Replies
01-01-2024, 03:49 AM
demyr
    Thread: Routes: Which style is "better"?
Post: RE: Routes: Which style is "better"?

Some examples for GET : PHP Code: -- $routes->get('/{locale}/register', 'SiteUserPanel::register'); $routes->get('/{locale}/login', 'SiteUserPanel::login'); $routes->get('/{locale}/user-panel/(:...
733 Views
8 Replies
12-29-2023, 02:43 AM
demyr
    Thread: Routes: Which style is "better"?
Post: RE: Routes: Which style is "better"?

I also keep them seperate. If I definitely need a page that must be both get and post, then I can use the match option. But, that's only for one page or two within a project, not for the all pages.
733 Views
8 Replies
12-28-2023, 01:47 AM
demyr
    Thread: Allow for route matching without need for {locale} placeholder for localized URI's
Post: RE: Allow for route matching without need for {loc...

Is this (https://codeigniter.com/user_guide/outgoing/localization.html?highlight=localization#in-routes) what you need?
506 Views
7 Replies
12-14-2023, 04:58 AM
demyr
    Thread: Email Library
Post: RE: Email Library

Did you check CodeIgniter documentation (https://codeigniter.com/user_guide/libraries/email.html) on Email? Btw, it's neither under Library nor Helper folder, it's under Config folder.
333 Views
4 Replies
11-30-2023, 01:48 PM
demyr
    Thread: Learning CI
Post: RE: Learning CI

Start a project. It will teach you a lot.
450 Views
5 Replies
11-23-2023, 12:03 AM
demyr
    Thread: Blank Page After Installing On Mac
Post: RE: Blank Page After Installing On Mac

Let me write you a more ta ta! way for MacOs and Php/CodeIgniter: After having issues with urls pointing my images etc I had to find a way to make my MacOs read php files. Because, even though I ha...
1,630 Views
17 Replies
11-22-2023, 12:15 AM
demyr
    Thread: CI4 support MariaDB?
Post: RE: CI4 support MariaDB?

InsiteFX Wrote: (10-26-2023, 09:23 PM) -- I use it all the time not MySQL it works just fine -- @"InsiteFX"  Are you on a shared hosting plan and if yes, how easy is it  to find a good shared hosti...
783 Views
8 Replies
11-22-2023, 12:06 AM
demyr

Theme © iAndrew 2016 - Forum software by © MyBB