Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Setting 404 Status Code
Post: RE: Setting 404 Status Code

THANK YOU! I finally got a correct 404 response (it used to be 200 and my SEO guy was complaining about it) Here is the code in app\Config\Routes.php (CodeIgniter version 4.4.1): $routes->set404Ov...
2,567 Views
5 Replies
10-05-2023, 12:03 AM
Leo
    Thread: CSRF regenerate with AJAX
Post: RE: CSRF regenerate with AJAX

SubrataJ Wrote: (02-06-2023, 10:44 PM) -- everything is cool but this still suxs when you are working on more than 1 tab. -- I imagine you can use a setInterval func. in javascript to retrieve a fres...
12,407 Views
11 Replies
02-07-2023, 01:06 PM
Leo
    Thread: Install CodeIgniter 4 on Shared Hosting
Post: RE: Install CodeIgniter 4 on Shared Hosting

Hey, if you got a cheap, difficult to manipulate hosting I wrote a quick, but frowned upon, solution for this. Look for "htaccess for redirecting all requests" in forums
17,942 Views
13 Replies
08-19-2020, 11:43 PM
Leo
    Thread: Best way to insert user written metatags/scripts - a question for PHP buffs
Post: RE: Best way to insert user written metatags/scrip...

mlurie Wrote: (07-26-2020, 07:12 PM) -- Try View Cells, https://codeigniter.com/user_guide/outgoing/view_cells.html?highlight=cells. -- I think you're right. A view cell is much more performant tha...
3,010 Views
2 Replies
07-27-2020, 02:25 AM
Leo
    Thread: Best way to insert user written metatags/scripts - a question for PHP buffs
Post: Best way to insert user written metatags/scripts -...

Hello! So I need an opinion from you guys, what would you say is the fastest/best way to insert metatags / scripts into my layout. Basically I want to provide a client with a way to write their own m...
3,010 Views
2 Replies
07-25-2020, 06:24 AM
Leo
    Thread: CodeIgniter v4.0.4 released
Post: RE: CodeIgniter v4.0.4 released

YESSS! Thank you CI team. P.S. So happy to see my tiny contribution made it in (Unicode characters are not escaped when saving JSON from Entities.) - P.P.S. not bragging, just genuinely awesome to see...
75,520 Views
44 Replies
07-16-2020, 04:47 AM
Leo
    Thread: CSRF with fetch API
Post: RE: CSRF with fetch API

I tried adding it (to the code I posted earlier), but it broke everything. This is what I got in the logs: #0 C:\laragon\www\stostolov\vendor\codeigniter4\framework\system\Security\Security.php(233): ...
12,648 Views
5 Replies
07-08-2020, 08:41 AM
Leo
    Thread: CSRF with fetch API
Post: RE: CSRF with fetch API

MGatner Wrote: (07-07-2020, 10:26 AM) -- See this: https://github.com/codeigniter4/CodeIgniter4/issues/2454 Basically, CSRF behavior differs when it detects an AJAX call, but `fetch` calls are ind...
12,648 Views
5 Replies
07-07-2020, 12:51 PM
Leo
    Thread: emails with Debug View???
Post: RE: emails with Debug View???

Ok, I figured it out. In app/Config/Email.php I set $mailtype to 'html' and In app/Config/Toolbar.php I commented out \CodeIgniter\Debug\Toolbar\Collectors\Views::class In production the toolb...
1,894 Views
1 Replies
07-07-2020, 12:31 AM
Leo
    Thread: Push Notifications with Pushover
Post: RE: Push Notifications with Pushover

Very nice, thank you!
8,560 Views
8 Replies
07-06-2020, 11:39 PM
Leo
    Thread: emails with Debug View???
Post: emails with Debug View???

Hi all. So I'm trying to send an email, using sendmail. The email and subject get sent all right - but the body is like:               in the beginning! How to make it normal? This is m...
1,894 Views
1 Replies
07-06-2020, 11:45 AM
Leo
    Thread: Show email errors
Post: RE: Show email errors

Ceo Wrote: (07-04-2020, 03:16 PM) -- How do I view the particular error when trying to send an email. The email->send() only returns boolean and thus I cannot catch an exception Any help? -- Tr...
1,423 Views
1 Replies
07-06-2020, 11:40 AM
Leo
    Thread: CSRF with fetch API
Post: CSRF with fetch API

Can someone help me with this? Code: -- fetch(SITE_CONSTANT+'/login/updateUser', {     method: "post",     body: "Some string" })     .then(response => response.json())     .then(data => data...
12,648 Views
5 Replies
07-01-2020, 11:04 AM
Leo
    Thread: Cart Library
Post: RE: Cart Library

What about cookies? Then you can use javascript. And, during check-out, you can cross-reference the product-info in the cookie-cart with your product-info in the database - to make sure that even if t...
2,400 Views
4 Replies
06-27-2020, 01:21 AM
Leo
    Thread: [SOLVED] CI4 Pagination don't work fine
Post: RE: [SOLVED] CI4 Pagination don't work fine

Thanks! This line did it for me !
2,020 Views
2 Replies
06-27-2020, 01:07 AM
Leo
    Thread: The future of Codeigniter
Post: RE: The future of Codeigniter

"5,000 Codeigniter developers in my back pocket" It'd be great if they helped.
38,900 Views
50 Replies
06-27-2020, 12:37 AM
Leo
    Thread: Help on entities
Post: RE: Help on entities

Thanks! Will try.
6,306 Views
7 Replies
06-26-2020, 01:32 PM
Leo
    Thread: Help on entities
Post: RE: Help on entities

I understand, is that sometimes I have very large tables and too lazy to fill the array. About what you want to do, just create setter methods in your entity because the codeigniter will always try...
6,306 Views
7 Replies
06-26-2020, 07:02 AM
Leo
    Thread: Help on entities
Post: RE: Help on entities

vinezof2 Wrote: (06-25-2020, 03:14 PM) -- $allowedFields is really necessary? i don't got it very well because all attributes where in the entity and this makes me confused -- No, you can set this in...
6,306 Views
7 Replies
06-25-2020, 10:04 PM
Leo
    Thread: Help on entities
Post: RE: Help on entities

Definitely use 'em! It just make stuff faster\easier to develop. Here's my own stuff with like 90% of fields not included for easy-reading Example: PHP Code: -- /////////////////stuff in controll...
6,306 Views
7 Replies
06-25-2020, 02:41 PM
Leo

Theme © iAndrew 2016 - Forum software by © MyBB