Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Naming of Controllers - any names not allowed?
Post: Naming of Controllers - any names not allowed?

I am building an application, and wanted to have one of the controllers called Resources. No matter what I try, my app will not allow me to use this name - when I try to use a link `
3,887 Views
3 Replies
04-30-2019, 12:47 PM
webmachine
    Thread: simple maintenance mode with image
Post: simple maintenance mode with image

I found this code to put in my .htaccess file (codeigniter 3.0.2) to put my application into maintenance mode except for my IP address so that I can continue working on it: PHP Code: -- Options +F...
1,914 Views
0 Replies
04-03-2018, 06:58 AM
webmachine
    Thread: form_validation.php in config and conditional validation rules
Post: RE: form_validation.php in config and conditional ...

Elias Wrote: (02-02-2018, 12:26 PM) -- 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...
10,810 Views
10 Replies
02-02-2018, 03:13 PM
webmachine
    Thread: form_validation.php in config and conditional validation rules
Post: RE: form_validation.php in config and conditional ...

It is an assessment form with numerous sections, and quite a few questions within each section. The method is set up the way Codeigniter suggests - all form validation rules and then, if they pass, on...
10,810 Views
10 Replies
02-02-2018, 09:32 AM
webmachine
    Thread: form_validation.php in config and conditional validation rules
Post: RE: form_validation.php in config and conditional ...

Narf Wrote: (01-30-2018, 12:13 PM) -- 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...
10,810 Views
10 Replies
01-31-2018, 01:02 PM
webmachine
    Thread: form_validation.php in config and conditional validation rules
Post: RE: form_validation.php in config and conditional ...

Here's a snippet of one of my sets of validation rules (currently in the body of the controller). PHP Code: -- $this->form_validation->set_rules('caseworker_contact', '"Contact Case Worker"', 'req...
10,810 Views
10 Replies
01-30-2018, 11:46 AM
webmachine
    Thread: form_validation.php in config and conditional validation rules
Post: form_validation.php in config and conditional vali...

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 folder. It is working fine, but some of my r...
10,810 Views
10 Replies
01-30-2018, 09:42 AM
webmachine
    Thread: Accessing an Independent Application from Withing a CodeIgniter Application.
Post: Accessing an Independent Application from Withing ...

I built a small database resource for a client using vanilla PHP several years ago. I have just completed a custom CRM for the client using CodeIgniter 3. The client wants to be able to access the dat...
2,432 Views
1 Replies
07-15-2016, 08:10 AM
webmachine
    Thread: Production Site and 404's
Post: RE: Production Site and 404's

Although nobody bothered to respond to this post, I thought I would post the solution I finally found - Even though the application worked fine in my test server in a subdirectory, in the producti...
3,772 Views
2 Replies
05-04-2016, 01:37 PM
webmachine
    Thread: Production Site and 404's
Post: Production Site and 404's

I have developed a custom CRM locally on my machine, and have a staging version in a subdirectory of my portfolio site for the client's office manager and me to test - no issues. We're ready to la...
3,772 Views
2 Replies
04-27-2016, 09:49 AM
webmachine
    Thread: Session doesn't end when browser window is closed
Post: RE: Session doesn't end when browser window is clo...

Sorry I took so long to respond - I got hung up in a bunch of work. I do use flash_data for all my validation error messages. However, I checked my config.php file and I had changed $config['ses...
5,502 Views
4 Replies
04-27-2016, 09:34 AM
webmachine
    Thread: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT this set?
Post: RE: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT...

Sorry if this might be off-topic, but under what circumstances would I change this?
60,698 Views
15 Replies
04-19-2016, 11:47 AM
webmachine
    Thread: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT this set?
Post: RE: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT...

What does 'db_debug' => (ENVIRONMENT !== 'production') in database.php do? Does this set the ENVIRONMENT constant, so if I launch an application I could just change this to 'db_debug' => (ENVIRONMENT ...
60,698 Views
15 Replies
04-19-2016, 11:26 AM
webmachine
    Thread: Session doesn't end when browser window is closed
Post: Session doesn't end when browser window is closed

I am building an application that involves a registration form. If I log in, start to fill out the registration form and submit, I get the validation errors that I would expect. But if I then close th...
5,502 Views
4 Replies
04-05-2016, 12:39 PM
webmachine
    Thread: database INSERT and UPDATE converts symbols to html code
Post: RE: database INSERT and UPDATE converts symbols to...

Thank you, Narf! I didn't have that third parameter of set_value set to FALSE. Problem solved for the edit registration form, where the values are coming from the database. PHP Code: -- 'value' =...
14,145 Views
13 Replies
03-11-2016, 12:37 PM
webmachine
    Thread: database INSERT and UPDATE converts symbols to html code
Post: RE: database INSERT and UPDATE converts symbols to...

This is the code I use for the form: PHP Code: --         -- In my controller, this is the only validation rule I am using for this input: PHP Code: -- $this->form_validation->...
14,145 Views
13 Replies
03-11-2016, 07:35 AM
webmachine
    Thread: database INSERT and UPDATE converts symbols to html code
Post: RE: database INSERT and UPDATE converts symbols to...

I am still having the problem with populating my form for editing. I have changed everything to utf8. I am only using standard rules in my form validation such as required, and Regex's. Where else can...
14,145 Views
13 Replies
03-10-2016, 12:44 PM
webmachine
    Thread: database INSERT and UPDATE converts symbols to html code
Post: RE: database INSERT and UPDATE converts symbols to...

The text is being insert properly in the database now, and it is being displayed properly, but when I pre-populate the form for editing, the ' is still being converted. Why is that?
14,145 Views
13 Replies
03-10-2016, 09:53 AM
webmachine
    Thread: database INSERT and UPDATE converts symbols to html code
Post: RE: database INSERT and UPDATE converts symbols to...

keulu Wrote: (03-10-2016, 09:35 AM) -- your table need to be collate utf8_general_ci. your files encoding UTF-8 too add in your layout is that good for you ? -- Thanks for answering so quickly. I'...
14,145 Views
13 Replies
03-10-2016, 09:40 AM
webmachine
    Thread: database INSERT and UPDATE converts symbols to html code
Post: database INSERT and UPDATE converts symbols to htm...

I have a registration form. If I enter a word such as can't, the INSERT and UPDATE functions replace the ' with  in the database. It will display fine, but if I populate the form with database ent...
14,145 Views
13 Replies
03-10-2016, 09:29 AM
webmachine

Theme © iAndrew 2016 - Forum software by © MyBB