Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Smarty with CI4
Post: RE: Smarty with CI4

Ok, I got something working :) Well I decided to go with Twig, but I think the same idea will work for Smarty. Source info: https://twig.symfony.com/doc/3.x/intro.html#basic-api-usage First ...
266 Views
2 Replies
02-11-2024, 07:06 AM
n2fole00
    Thread: Smarty with CI4
Post: Smarty with CI4

Hi, I'm trying to get Smarty (v4) working with CI4. Googling around, I found this https://forum.codeigniter.com/showthread.php?tid=76323&pid=377901#pid377901 but it seems to be missing ThirdParty/Smar...
266 Views
2 Replies
01-08-2024, 08:55 AM
n2fole00
    Thread: Anyone using HTMX with CI?
Post: RE: Anyone using HTMX with CI?

datamweb Wrote: (02-22-2023, 11:54 AM) -- A powerful package for use in Codeigniter has been published by one of the members of Codeigniter. https://github.com/michalsn/codeigniter-htmx -- Cool, I ...
2,183 Views
6 Replies
02-22-2023, 03:29 PM
n2fole00
    Thread: Anyone using HTMX with CI?
Post: Anyone using HTMX with CI?

Hi, I've recently discovered and am having fun with https://htmx.org/ I was wondering if anyone has used it in their CI projects and if so, have you organised your code in any particular way? ...
2,183 Views
6 Replies
02-22-2023, 10:32 AM
n2fole00
    Thread: PHP 8.0/8.1 Support
Post: RE: PHP 8.0/8.1 Support

TheAdmiral Wrote: (06-22-2022, 05:01 AM) -- OP here. In case anyone is curious, I installed latest CI3 a couple months ago and combined it with PHP 8.1. No errors/warnings/notices. Thanks everyone. -...
10,619 Views
12 Replies
10-09-2022, 09:35 AM
n2fole00
    Thread: Error Unable to De-Activate Account when registering a new user
Post: Error Unable to De-Activate Account when registeri...

After updating to Ion-Auth 3, I'm getting the error Code: -- Unable to De-Activate Account -- when trying to register a new user. Here is the code I'm calling. PHP Code: -- $user_id = $this...
1,830 Views
0 Replies
02-25-2019, 11:08 AM
n2fole00
    Thread: Suppress switching the language for the form validation
Post: RE: Suppress switching the language for the form v...

jreklund Wrote: (09-14-2018, 11:33 AM) -- Or just copy the English ones. -- :D What a obvious solution! I can't believe I didn't think of this. Thanks.
2,913 Views
2 Replies
09-14-2018, 11:54 AM
n2fole00
    Thread: Suppress switching the language for the form validation
Post: Suppress switching the language for the form valid...

Hi, I'm setting up a translation for my site and needed to change the system's config language item to use with ion auth's translations. After changing the the config language to Finnish, I get this e...
2,913 Views
2 Replies
09-14-2018, 10:10 AM
n2fole00
    Thread: Can not find the form language for authentication
Post: RE: Can not find the form language for authenticat...

Have you included PHP Code: -- $this->load->library('form_validation'); -- in your controller?
1,773 Views
1 Replies
09-14-2018, 04:24 AM
n2fole00
    Thread: Differences in session variable declaration
Post: RE: Differences in session variable declaration

php_rocs Wrote: (09-13-2018, 03:20 PM) -- @n2fole00, I can't believe I missed this.  The issue is your if condition.  see... https://stackoverflow.com/questions/137487/null-vs-false-vs-0-in-php I w...
8,580 Views
11 Replies
09-13-2018, 09:24 PM
n2fole00
    Thread: Differences in session variable declaration
Post: RE: Differences in session variable declaration

php_rocs Wrote: (09-13-2018, 02:08 PM) -- @n2fole00, What was the exact var_dump for each variable? -- PHP Code: -- $site_lang2 = $_SESSION['site_lang']; $site_lang = $ci->session->site_lang...
8,580 Views
11 Replies
09-13-2018, 02:48 PM
n2fole00
    Thread: Differences in session variable declaration
Post: RE: Differences in session variable declaration

php_rocs Wrote: (09-13-2018, 07:51 AM) -- @n2fole00, They both are null but one causes an errors and the other doesn't?  That can't be right.  There is a difference.  That is the only reason why o...
8,580 Views
11 Replies
09-13-2018, 01:54 PM
n2fole00
    Thread: Differences in session variable declaration
Post: RE: Differences in session variable declaration

php_rocs Wrote: (09-12-2018, 02:22 PM) -- @n2fole00 It could be what value is returned between the two.  You could do a var_dump on both values and see what is returned that should give you the an...
8,580 Views
11 Replies
09-12-2018, 03:53 PM
n2fole00
    Thread: Differences in session variable declaration
Post: RE: Differences in session variable declaration

InsiteFX Wrote: (09-12-2018, 02:20 PM) -- When using: PHP Code: -- $CI =& get_instance(); -- Your getting CodeIgniter's Controller Class. Are you loading the Session library in the Controller ...
8,580 Views
11 Replies
09-12-2018, 03:40 PM
n2fole00
    Thread: Differences in session variable declaration
Post: Differences in session variable declaration

Hi, I have the following hook PHP Code: -- class LanguageLoader {  function initialize() {    $ci =& get_instance();    $ci->load->helper('language');    $site_lang = $_SESSION['site_l...
8,580 Views
11 Replies
09-12-2018, 01:22 PM
n2fole00
    Thread: Setting sess_save_path correctly
Post: RE: Setting sess_save_path correctly

Hey, thanks. Minus the typo, it works fine.
48,770 Views
12 Replies
05-28-2018, 04:25 AM
n2fole00
    Thread: Setting sess_save_path correctly
Post: RE: Setting sess_save_path correctly

Oh, I see BASEPATH points to the system folder and APPPATH points to the application folder. I assumed BASEPATH would be one level up from the application folder (so the root folder). It's probably wi...
48,770 Views
12 Replies
05-26-2018, 03:40 PM
n2fole00
    Thread: Setting sess_save_path correctly
Post: RE: Setting sess_save_path correctly

Hey, I just wanted to add this as a reminder to myself, as I had trouble with it again on shared hosting... Creating a sessions folder and doing this Code: -- $config['sess_save_path'] = 'sess...
48,770 Views
12 Replies
05-25-2018, 03:38 PM
n2fole00
    Thread: Is input->post meant to strip tabs?
Post: RE: Is input->post meant to strip tabs?

Ok, thanks. I think it's coming together now. Actually, the input->post by itself is fine now. I must have been doing something weird to get that original output when I tested it.
8,540 Views
5 Replies
09-05-2017, 08:15 AM
n2fole00
    Thread: Is input->post meant to strip tabs?
Post: RE: Is input->post meant to strip tabs?

InsiteFX Wrote: (09-04-2017, 09:35 AM) -- You could try this, not tested. PHP Code: -- $this->input->post(htmlspecialchars('tabbed_content')); -- -- Yes, that worked, but it's still confusing beca...
8,540 Views
5 Replies
09-04-2017, 11:52 PM
n2fole00

Theme © iAndrew 2016 - Forum software by © MyBB