Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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
7,308 Views
12 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...
1,035 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...
1,035 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...
42,239 Views
38 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): ...
2,867 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...
2,867 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...
547 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!
3,294 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:              
547 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...
499 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...
2,867 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...
675 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 !
704 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.
16,020 Views
50 Replies
06-27-2020, 12:37 AM
Leo
    Thread: Help on entities
Post: RE: Help on entities

Thanks! Will try.
1,233 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...
1,233 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...
1,233 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...
1,233 Views
7 Replies
06-25-2020, 02:41 PM
Leo
    Thread: Office hours
Post: RE: Office hours

Nah...an hour answering questions is better spent just taking break, after all the hard work already being done, imho.
1,353 Views
3 Replies
06-25-2020, 02:27 PM
Leo
    Thread: Redirect Not Working CI4
Post: RE: Redirect Not Working CI4

@jim1001 Yes, the sessions work fine. Just put session() in the controller or wherever you are calling the redirect, and put session() whereever you are redirecting to. Also, in my case, I had aggr...
16,037 Views
16 Replies
05-22-2020, 09:46 AM
Leo

Theme © iAndrew 2016 - Forum software by © MyBB