Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI 4 Output Compression
Post: RE: CI 4 Output Compression

In your Controller you can call for negotiator service to set gzip encoding. PHP Code: -- service('negotiator')->encoding(['gzip']); -- In your public/.htaccess you may define other resources by f...
2,081 Views
5 Replies
09-02-2021, 12:19 AM
stopz
    Thread: Loading vendor helper into global namespace
Post: RE: Loading vendor helper into global namespace

InsiteFX Wrote: (05-31-2021, 08:58 PM) -- Look in the root of the app folder just under the Views folder see the file Common.php that is for loading things you need first. -- I've looked into Comm...
615 Views
2 Replies
06-01-2021, 02:22 AM
stopz
    Thread: Loading vendor helper into global namespace
Post: Loading vendor helper into global namespace

Hey! Is there a convenient way to load a helper from vendor package into global namespace? Currently what works (and what I could not find anywhere by googling) is to set it into App/Config/Autoloa...
615 Views
2 Replies
05-31-2021, 12:53 AM
stopz
    Thread: .mo file support in CodeIgniter
Post: RE: .mo file support in CodeIgniter

Alright i solved my issue. So what helped me alot was https://stackoverflow.com/questions/1949162/how-could-i-parse-gettext-mo-files-in-php4-without-relying-on-setlocale-locales (https://stackoverflow...
1,595 Views
4 Replies
05-29-2021, 01:40 PM
stopz
    Thread: .mo file support in CodeIgniter
Post: RE: .mo file support in CodeIgniter

InsiteFX Wrote: (05-29-2021, 05:15 AM) -- This would never be put into the framework this is an addon to the application. -- Which has nothing to do with what I was looking for :) Anyone else has a...
1,595 Views
4 Replies
05-29-2021, 07:34 AM
stopz
    Thread: .mo file support in CodeIgniter
Post: .mo file support in CodeIgniter

I'm making Composer packages for CodeIgniter and next step is to translate them into few languages using .mo files. Let me explain why .mo is important: * Easier standard to work with across companie...
1,595 Views
4 Replies
05-29-2021, 12:40 AM
stopz
    Thread: Issue with HTTP Feature Testing
Post: RE: Issue with HTTP Feature Testing

Alright i found an aswer for my own question. I think it has to do with Quote: -- The $params array does not make sense for every HTTP verb, but is included for consistency. -- as written in the...
314 Views
2 Replies
05-27-2021, 03:40 AM
stopz
    Thread: orderBy() function is not working when delete() function is used in query builder.
Post: RE: orderBy() function is not working when delete(...

I've looked in to your situation and i could say that ->orderBy not taken into delete query account is a bug. In order to benefit from CodeIgniter deleted_at perks: your temporary solution for you wo...
752 Views
5 Replies
05-26-2021, 11:49 AM
stopz
    Thread: Issue with HTTP Feature Testing
Post: Issue with HTTP Feature Testing

I'll try to be as short with this as i can: so I have a test file with contents: PHP Code: --
314 Views
2 Replies
05-26-2021, 11:14 AM
stopz
    Thread: Bug? Vendor Routes are loaded before Filters
Post: RE: Bug? Vendor Routes are loaded before Filters

MGatner Wrote: (05-24-2021, 04:33 AM) -- If you workaround is something appropriate for a core solution then I encourage you to submit it as a Pull Request! Our team relies on the community for work ...
1,064 Views
9 Replies
05-24-2021, 02:41 PM
stopz
    Thread: Bug? Vendor Routes are loaded before Filters
Post: RE: Bug? Vendor Routes are loaded before Filters

iRedds Wrote: (05-22-2021, 10:51 PM) -- It also does not work in version 4.1.1. -- I'm working with 4.1.2 and this bug is kinda rock in my way- made a quick workaround for myself here but thanks for...
1,064 Views
9 Replies
05-24-2021, 01:18 AM
stopz
    Thread: Bug? Vendor Routes are loaded before Filters
Post: Bug? Vendor Routes are loaded before Filters

I have an issue where i am trying to set up a route filter in vendor/myname/packagename Autoloader works fine everything gets discovered but i get Code: -- my-auth filter must have a matching ali...
1,064 Views
9 Replies
05-21-2021, 07:16 AM
stopz
    Thread: Call to a member function validate() on a non-object using own library
Post: RE: Call to a member function validate() on a non-...

try: Code: -- $result = $this->generate_token->generate(); --
10,876 Views
0 Replies
01-26-2015, 04:29 AM
stopz
    Thread: How to loop through userdata?
Post: RE: How to loop through userdata?

RobertSF Explained the technical reason why you are not getting any output by calling Code: -- $this->session->userdata[$j]; -- cause Code: -- $j = 17 -- but Code: -- array_key = '17' -- there's...
3,581 Views
0 Replies
01-26-2015, 04:26 AM
stopz
    Thread: Call to a member function validate() on a non-object using own library
Post: RE: Call to a member function validate() on a non-...

I'm assuming this error means $CI is not an object. Like its not being defined like Code: -- $CI = New Generate_token(); -- If you loaded this like Code: -- $this->load->library('generate_token'); -...
10,876 Views
0 Replies
01-26-2015, 04:15 AM
stopz
    Thread: Auto Login in / remember me function
Post: RE: Auto Login in / remember me function

I would save a cookie like Code: -- remember = 'HyWE32' //expires next week -- And then have mysql table with Code: -- remember_id[VARCHAR(6)], user_id[INT], expires[DATETIME] -- And onVisit i ...
11,160 Views
0 Replies
01-26-2015, 02:51 AM
stopz
  Exclamation Thread: core/Lang.php
Post: core/Lang.php

I'm trying to extend CI native Lang class to use MySQL Database. My problem is, i cant connect to DB or do $this->load->database or load anything. I'v tried adding these classes manually like this:...
4,356 Views
0 Replies
01-26-2015, 02:34 AM
stopz
    Thread: Meta tag helper with Open Graph tags
Post: RE: Meta tag helper with Open Graph tags

You are loading template with an array where ['post'] is your meta data? Is this template loader suppose to replace some meta tags with data or generate meta data @ some point of file. I assume you...
2,632 Views
0 Replies
01-26-2015, 02:26 AM
stopz

Theme © iAndrew 2016 - Forum software by © MyBB