Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Unnecessary Files Loaded in Production Environment - Codeigniter 4.1.1
Post: RE: Unnecessary Files Loaded in Production Environ...

ojmichael Wrote: (02-21-2021, 08:48 PM) -- Assuming you're using Docker, the composer commands listed above should be part of your Dockerfile, and you don't need to include the vendor folder in the i...
1,170 Views
9 Replies
02-21-2021, 10:35 PM
myo
    Thread: Unnecessary Files Loaded in Production Environment - Codeigniter 4.1.1
Post: RE: Unnecessary Files Loaded in Production Environ...

iRedds Wrote: (02-20-2021, 09:25 PM) -- Code: -- composer install --no-dev composer update --no-dev composer require package/name --update-no-dev -- -- It means PRODUCTION environment optio...
1,170 Views
9 Replies
02-21-2021, 06:06 AM
myo
  Star Thread: Unnecessary Files Loaded in Production Environment - Codeigniter 4.1.1
Post: Unnecessary Files Loaded in Production Environment...

Hi, Mostly I have been using CI without composer by directly downloading. Today I wanted to add TWIG so I decided to use composer.  To my surprise the number of loaded files increased by 25 even in ...
1,170 Views
9 Replies
02-20-2021, 12:40 PM
myo
  Star Thread: PHP 8 Readiness - Codeigniter 4
Post: PHP 8 Readiness - Codeigniter 4

Hi Seniors, When we can expect working version of Codeigniter 4 for PHP 8 ? Regards
526 Views
0 Replies
12-05-2020, 08:19 AM
myo
  Star Thread: API Exceptions & Detailed Errors Shown in Production Environment CI 4.04
Post: API Exceptions & Detailed Errors Shown in Producti...

Hi, I am using version. 4.04 I created some restful APIs and was checking the exception handling by using wrong controller names etc in PRODUCTION environment. To my surprise its showing detaile...
381 Views
1 Replies
11-22-2020, 10:46 AM
myo
  Star Thread: How to use all methods of PHP Redis with Codeigniter 4
Post: How to use all methods of PHP Redis with Codeignit...

Hi all I am trying to use redis cache in Codeigniter 4 with PECL PHP REDIC .  Codeigniter 4 documentation (https://codeigniter.com/user_guide/libraries/caching.html) shows only few methods like ...
578 Views
0 Replies
10-21-2020, 06:05 AM
myo
    Thread: How to use Minify in Codeigniter 4 - Namespace Issues
Post: RE: How to use Minify in Codeigniter 4 - Namespace...

Thanks captain, its working fine now. I already had path converter. Issue was in namespace.
775 Views
4 Replies
10-21-2020, 03:58 AM
myo
  Star Thread: How to use Minify in Codeigniter 4 - Namespace Issues
Post: How to use Minify in Codeigniter 4 - Namespace Iss...

Hi, I am trying to use matthiasmullie/minify (https://github.com/matthiasmullie/minify) in Codeigniter 4. But so far I am getting errors due to wrong namespacing. Following is what I did so far: ...
775 Views
4 Replies
10-20-2020, 04:59 AM
myo
  Star Thread: PECL Extension Solr PHP extension with Codeigniter 4
Post: PECL Extension Solr PHP extension with Codeigniter...

Hi, I tried to use Solr PHP extension. I downloaded 7.4 Thread Safe (TS) x64 (https://windows.php.net/downloads/pecl/releases/solr/2.5.1/php_solr-2.5.1-7.4-ts-vc15-x64.zip) and placed php_solr.dll ...
591 Views
1 Replies
09-20-2020, 02:24 AM
myo
  Star Thread: Using Solarium PHP Solr client with Codeigniter
Post: Using Solarium PHP Solr client with Codeigniter

Hi, I was trying to use Solarium PHP Solr client with Codeigniter 4 but having issues. I used composer to download all dependencies at my desktop & then copied whole folder in app/ThirdParty. Th...
543 Views
0 Replies
09-19-2020, 10:50 AM
myo
    Thread: FrameworkException::forInvalidFile / CORS Issues
Post: RE: FrameworkException::forInvalidFile / CORS Issu...

Hi, I dig into this and found that the "$this->loader->locateFile" is raising exception in System/View/View at line: 222 PHP Code: -- if (! is_file($this->renderVars['file'])) { $this->renderVa...
5,164 Views
7 Replies
08-16-2020, 06:23 AM
myo
    Thread: FrameworkException::forInvalidFile / CORS Issues
Post: RE: FrameworkException::forInvalidFile / CORS Issu...

Hi, I did this & following are details: CodeIgniter\View\Exceptions\ViewException SYSTEMPATH/Exceptions/FrameworkException.php at line 17 Response Status    500 - Internal Server Error lo...
5,164 Views
7 Replies
08-15-2020, 04:35 AM
myo
  Star Thread: FrameworkException::forInvalidFile / CORS Issues
Post: FrameworkException::forInvalidFile / CORS Issues

Hi, My site was working fine at local machine but when I uploaded to web host some of my views are not loading & I am getting following error: Code: -- CodeIgniter\Exceptions\FrameworkException...
5,164 Views
7 Replies
08-15-2020, 12:33 AM
myo
    Thread: Call to undefined method respond()
Post: Call to undefined method respond()

Hi, I created a controller as following. It works fine but when I send API request through Postman I get error "Call to undefined method respond()". What mistake I am making?  PHP Code: -- use ...
1,286 Views
1 Replies
08-07-2020, 05:48 AM
myo
    Thread: Using Controller Filters to add data to Views
Post: RE: Using Controller Filters to add data to Views

InsiteFX Wrote: (08-04-2020, 03:59 AM) -- Filters are for Controllers not views. What you want to look at is View Cells. -- Documentation says about AFTER filters: "This does allow you to modify th...
569 Views
3 Replies
08-04-2020, 10:22 AM
myo
    Thread: Using Controller Filters to add data to Views
Post: Using Controller Filters to add data to Views

Hi, I read about Controller Filters but still unsure how to send data to Views using AFTER filter as per documentation AFTER Filter "Allows to inspect and modify the response" In controllers we ...
569 Views
3 Replies
08-04-2020, 01:06 AM
myo
    Thread: Myth Auth - Why its used: $appConfig = new App()
Post: Myth Auth - Why its used: $appConfig = new App()

Hi Was going through Myth Auth: class AuthenticationBase function rememberUser I found this line: $appConfig = new App(); I could not understand why its used? Can anyone explain it. Thanks...
342 Views
0 Replies
08-01-2020, 04:06 AM
myo
    Thread: Scalable Design of Codeigniter 4
Post: Scalable Design of Codeigniter 4

Hi, Can you guys share your experience about scalable designs? While there is a lot out there & anyone can research using google but an advice from experienced users who have already used certain t...
973 Views
1 Replies
06-13-2020, 02:30 AM
myo
    Thread: How to add React JS files in Codeigniter 4 Views while keeping js files in Views fold
Post: How to add React JS files in Codeigniter 4 Views w...

Also posted on stackoverflow: https://stackoverflow.com/questions/62307694/how-to-add-react-js-files-in-codeigniter-4-views-while-keeping-js-files-in-views (https://stackoverflow.com/questions/6230769...
1,423 Views
1 Replies
06-10-2020, 08:57 AM
myo
    Thread: Codeigniter 4 - Naming Convention & Style Guide
Post: RE: Codeigniter 4 - Naming Convention & Style Guid...

dave friend Wrote: (06-01-2020, 08:02 AM) -- I answered this on SO. I think you're right about method names when it comes to Controllers. For any other class use lowerCamelCase as specified in the...
2,618 Views
5 Replies
06-01-2020, 08:28 AM
myo

Theme © iAndrew 2016 - Forum software by © MyBB