Search Results
Post Author Forum Replies Views Posted [asc]
    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
Leo General Help 12 5,662 08-19-2020, 11:43 PM
    Thread: Best way to insert user written metatags/scripts - a question for PHP buffs
Post: RE: Best way to insert user written metatags/scrip...

(07-26-2020, 07:12 PM)mlurie Wrote: Try View Cells, https://codeigniter.com/user_guide/outgo...ight=cells. I think you're right. A view cell is much more performant than echo file_get_contents(....)...
Leo CodeIgniter 4 Support 2 621 07-27-2020, 02:25 AM
    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 me...
Leo CodeIgniter 4 Support 2 621 07-25-2020, 06:24 AM
    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...
Leo News & Discussion 34 34,330 07-16-2020, 04:47 AM
    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): ...
Leo CodeIgniter 4 Support 5 1,713 07-08-2020, 08:41 AM
    Thread: CSRF with fetch API
Post: RE: CSRF with fetch API

(07-07-2020, 10:26 AM)MGatner Wrote: See this: https://github.com/codeigniter4/CodeIgni...ssues/2454 Basically, CSRF behavior differs when it detects an AJAX call, but `fetch` calls are indistingui...
Leo CodeIgniter 4 Support 5 1,713 07-07-2020, 12:51 PM
    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 toolbar ...
Leo CodeIgniter 4 Support 1 382 07-07-2020, 12:31 AM
    Thread: Push Notifications with Pushover
Post: RE: Push Notifications with Pushover

Very nice, thank you!
Leo CodeIgniter 4 Addins 8 2,428 07-06-2020, 11:39 PM
    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: <!-- DEBUG-VIEW START 1 APPPATH/Config/../Views/emails/for_customer.php --&g...
Leo CodeIgniter 4 Support 1 382 07-06-2020, 11:45 AM
    Thread: Show email errors
Post: RE: Show email errors

(07-04-2020, 03:16 PM)Ceo Wrote: 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?Try settin...
Leo CodeIgniter 4 Support 1 380 07-06-2020, 11:40 AM
    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.resul...
Leo CodeIgniter 4 Support 5 1,713 07-01-2020, 11:04 AM
    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...
Leo General Help 4 550 06-27-2020, 01:21 AM
    Thread: [SOLVED] CI4 Pagination don't work fine
Post: RE: [SOLVED] CI4 Pagination don't work fine

Thanks! This line did it for me <?= $pager->makeLinks($currPage, $recordsForPage, $countAll) ?>!
Leo General Help 2 552 06-27-2020, 01:07 AM
    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.
Leo Lounge 49 12,784 06-27-2020, 12:37 AM
    Thread: Help on entities
Post: RE: Help on entities

Thanks! Will try.
Leo CodeIgniter 4 Support 7 782 06-26-2020, 01:32 PM
    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 t...
Leo CodeIgniter 4 Support 7 782 06-26-2020, 07:02 AM
    Thread: Help on entities
Post: RE: Help on entities

(06-25-2020, 03:14 PM)vinezof2 Wrote: $allowedFields is really necessary? i don't got it very well because all attributes where in the entity and this makes me confusedNo, you can set this in yo...
Leo CodeIgniter 4 Support 7 782 06-25-2020, 10:04 PM
    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 contro...
Leo CodeIgniter 4 Support 7 782 06-25-2020, 02:41 PM
    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.
Leo Lounge 3 1,128 06-25-2020, 02:27 PM
    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 aggres...
Leo CodeIgniter 4 Support 16 13,338 05-22-2020, 09:46 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.