Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Routing Issue: Optional ID and Named Routes in CodeIgniter 4
Post: RE: Routing Issue: Optional ID and Named Routes in...

Yeah! I found it! It seems like a bug. There is a conflict of custom names and URI paths. I have URI "edit" and named URI "edit/(:num)" as "edit". So, name "edit" and the path "edit" intersects. These...
440 Views
4 Replies
03-27-2025, 11:49 AM
Elias
    Thread: Routing Issue: Optional ID and Named Routes in CodeIgniter 4
Post: RE: Routing Issue: Optional ID and Named Routes in...

Thank you for the tip! I’ve implemented something similar to your suggestion for generating URLs: PHP Code: -- public function getUrl(): string {     if (empty($this->id)) {         return url...
440 Views
4 Replies
03-26-2025, 12:33 PM
Elias
    Thread: Routing Issue: Optional ID and Named Routes in CodeIgniter 4
Post: Routing Issue: Optional ID and Named Routes in Cod...

Hi everyone, I’ve encountered an issue with routing and I’m not sure whether it’s a bug or expected behavior not clearly explained in the documentation. I like to handle form processing in the sam...
440 Views
4 Replies
03-26-2025, 04:18 AM
Elias
    Thread: Toolbar on error pages
Post: Toolbar on error pages

Why doesn't the debug toolbar show up on error pages (like 404, 403)?
585 Views
0 Replies
01-15-2023, 01:22 PM
Elias
    Thread: CodeIgniter 3.1.9 released
Post: RE: CodeIgniter 3.1.9 released

Thank you CI team!
120,060 Views
49 Replies
06-16-2018, 12:36 AM
Elias
    Thread: Add a function to the array helper
Post: RE: Add a function to the array helper

InsiteFX Wrote: (03-30-2018, 12:48 PM) -- You can add it yourself. Just create a MY_array_helper.php and add your method to it. -- Yes, I understand it. But I think that this function can be hel...
4,694 Views
3 Replies
03-30-2018, 01:04 PM
Elias
  Lightbulb Thread: Add a function to the array helper
Post: Add a function to the array helper

Hello CI team and community! How about add a function to the array helper? PHP Code: -- if ( ! function_exists('array_combine_different')) { /** * Array Combine Different * * Return...
4,694 Views
3 Replies
03-30-2018, 12:20 PM
Elias
    Thread: CodeIgniter 3.1.8 Released
Post: RE: CodeIgniter 3.1.8 Released

Thank you!
96,776 Views
40 Replies
03-23-2018, 12:40 PM
Elias
    Thread: [Snippet] Switch language with URL
Post: RE: [Snippet] Switch language with URL

It's a good solution! Thank you for that!
20,664 Views
7 Replies
03-21-2018, 09:30 AM
Elias
    Thread: Upload multiple files
Post: RE: Upload multiple files

Narf Wrote: (02-14-2018, 11:18 AM) -- 2. Pass 'user[photo]' instead of 'user' ... -- Ok, in my controller I do this: PHP Code: -- $uploaded = []; for($i = 0; $i < 3; $i++) { if ( $this->upl...
7,587 Views
3 Replies
02-21-2018, 10:59 AM
Elias
    Thread: form_validation.php in config and conditional validation rules
Post: RE: form_validation.php in config and conditional ...

webmachine Wrote: (01-30-2018, 09:42 AM) -- I have made a CRM in CodeIgniter that I am working on improving, and want to move all the form validation rules to a form_validation.php file in the config...
13,100 Views
10 Replies
02-17-2018, 02:59 AM
Elias
    Thread: XSS replaces in the documentation
Post: RE: XSS replaces in the documentation

Narf Wrote: (02-14-2018, 11:28 AM) -- Anything that has an 'src' attribute can link external resources and trigger their execution, and thus - XSS. -- Ok, string Code: -- -- has src and xss_clean...
17,657 Views
12 Replies
02-15-2018, 08:01 AM
Elias
    Thread: Redirect Problem
Post: RE: Redirect Problem

Add a trailing slash: $config['base_url'] = 'http://vc-rp.net/';
5,627 Views
6 Replies
02-15-2018, 07:37 AM
Elias
    Thread: Upload multiple files
Post: Upload multiple files

Hi, I want to do upload multiple files and  I can do this in cycle. But first I looked source code of Upload library and found the part (https://github.com/bcit-ci/CodeIgniter/blob/develop/system/li...
7,587 Views
3 Replies
02-13-2018, 06:09 AM
Elias
    Thread: XSS replaces in the documentation
Post: RE: XSS replaces in the documentation

Narf Wrote: (02-12-2018, 06:24 AM) -- Not a bug. -- Why? Tags like or not replaces... What's a normal input string for xss_clean() ? Thanks for answers :)
17,657 Views
12 Replies
02-12-2018, 07:21 AM
Elias
    Thread: One login for many codeigniter webapps?
Post: RE: One login for many codeigniter webapps?

Use one Redis or Memcached server for storage user sessions and just connect to it on all your sites.
5,617 Views
2 Replies
02-12-2018, 02:37 AM
Elias
    Thread: XSS replaces in the documentation
Post: RE: XSS replaces in the documentation

I want to filter a part of output HTML code thats contains user data (link to a video file). I do not filter all output through xss_clean, just tag. I do this because filtering only link not clea...
17,657 Views
12 Replies
02-11-2018, 09:57 AM
Elias
    Thread: XSS replaces in the documentation
Post: RE: XSS replaces in the documentation

And as it seems to me, I found a bug in xss_clean() function/method: xss_clean() translates Code: -- -- to Code: -- <video poster="http://vseprosto.top/wp-content/uploads/2016/10/CodeIgniter-...
17,657 Views
12 Replies
02-10-2018, 12:46 PM
Elias
    Thread: form_validation.php in config and conditional validation rules
Post: RE: form_validation.php in config and conditional ...

1st option: Callback documentation https://codeigniter.com/user_guide/libraries/form_validation.html#callbacks-your-own-validation-methods 2nd option: Create config, load that and get item of that ht...
13,100 Views
10 Replies
02-02-2018, 11:35 PM
Elias
    Thread: form_validation.php in config and conditional validation rules
Post: RE: form_validation.php in config and conditional ...

You can move simple part of validation rules definitions to config and in controller getting this config item and do array_merge with hard validations rules. Or you can hold custom validations methods...
13,100 Views
10 Replies
02-02-2018, 12:26 PM
Elias

Theme © iAndrew 2016 - Forum software by © MyBB