Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Adding translations installs all dev packages
Post: RE: Adding translations installs all dev packages

jreklund Wrote: (08-22-2020, 02:59 AM) -- Hi, you install it like this. Code: -- composer require --update-no-dev codeigniter4/translations -- https://getcomposer.org/doc/03-cli.md#require -- ...
1,469 Views
2 Replies
08-22-2020, 03:14 AM
Martin7483
    Thread: Adding translations installs all dev packages
Post: Adding translations installs all dev packages

Hi all! I'm getting up to speed with CI4 and want to install it using composer and the --no-dev option. No problem doing that. But when I install the translation package, all the dev packages are th...
1,469 Views
2 Replies
08-22-2020, 02:39 AM
Martin7483
    Thread: Select Query remove space automatically
Post: RE: Select Query remove space automatically

Elias Wrote: (02-01-2018, 08:26 AM) -- Hi! You need to pass table name to select() method. Table name can't contents spaces. Look at this https://www.codeigniter.com/userguide3/database/query_b...
7,112 Views
5 Replies
02-01-2018, 08:35 AM
Martin7483
    Thread: Access to model functions throught custom library
Post: RE: Access to model functions throught custom libr...

This is a code piece from CI itself. It is used in the CI_Model. PHP Code: -- /** * __get * * Enables the use of CI super-global without having to define an extra variable. * * @access...
6,103 Views
5 Replies
02-01-2018, 07:31 AM
Martin7483
    Thread: post data between controllers
Post: RE: post data between controllers

You want the form values passed from controller to controller?
15,132 Views
7 Replies
12-01-2017, 06:59 AM
Martin7483
    Thread: How do I have a global array in __construct() ?
Post: RE: How do I have a global array in __construct() ...

I would advise you, stop what you are doing and please read up on basic OOP and PHP. What you are asking is basic OOP knowledge. If you don't have that you are going to keep making the same mistakes ...
15,675 Views
5 Replies
08-03-2017, 06:15 AM
Martin7483
    Thread: Allow more environments
Post: RE: Allow more environments

You have described 3 environments if I am not mistaken. So why can't you do this? Development office                 => CI_ENV = "development" Development production server => CI_ENV = "testin...
7,593 Views
5 Replies
08-02-2017, 09:12 AM
Martin7483
    Thread: Database relationships
Post: Database relationships

Hi, When using one of the following relationships between models ; one to one many to one one to many If I would like my query to return all records including the relations is this stateme...
2,354 Views
1 Replies
08-02-2017, 01:18 AM
Martin7483
    Thread: Adding multiple variables to calendar days
Post: RE: Adding multiple variables to calendar days

From the documentation PHP Code: -- $this->load->library('calendar'); $data = array(        3  => 'http://example.com/news/article/2006/06/03/',        7  => 'http://example.com/news/arti...
14,756 Views
18 Replies
08-01-2017, 11:27 AM
Martin7483
    Thread: Problems with extending CI_Form_validation
Post: RE: Problems with extending CI_Form_validation

That approach will only look for the method scanEmail in the controller where the rule was set.
15,779 Views
15 Replies
07-31-2017, 01:15 PM
Martin7483
    Thread: Problems with extending CI_Form_validation
Post: RE: Problems with extending CI_Form_validation

Try using the subclass_prefix MY_
15,779 Views
15 Replies
07-31-2017, 02:38 AM
Martin7483
    Thread: Image manipulation
Post: RE: Image manipulation

Tinypng.com for JPG and PNG lossless compression. Even supports animated PNG Service is free up to 500 compressions per month. Really easy to use with CodeIgniter
8,623 Views
6 Replies
07-31-2017, 12:43 AM
Martin7483
    Thread: Setting csrf_regenerate as TRUE
Post: RE: Setting csrf_regenerate as TRUE

june123 Wrote: (07-31-2017, 12:19 AM) -- Like this, other drop-down boxes are filled up through ajax call.  Now when I try to submit the form, again "Action you have requested is not allowed" mess...
14,513 Views
11 Replies
07-31-2017, 12:38 AM
Martin7483
    Thread: Problems with extending CI_Form_validation
Post: RE: Problems with extending CI_Form_validation

How are you loading the validation library?
15,779 Views
15 Replies
07-31-2017, 12:32 AM
Martin7483
    Thread: Problems with extending CI_Form_validation
Post: RE: Problems with extending CI_Form_validation

Rename your class AdvancedValidation to Form_validation Rename the file from AdvancedValidation.php to Form_validation.php When loading CI_Form_validation the extended Form_validation will be auto...
15,779 Views
15 Replies
07-30-2017, 04:03 AM
Martin7483
    Thread: Problems with extending CI_Form_validation
Post: RE: Problems with extending CI_Form_validation

That I didn't spot this from the start :S It's your class name AdvancedValidation. This is not autoloaded, so your rule is not available. That is why it is returning FALSE. When not available, you...
15,779 Views
15 Replies
07-30-2017, 02:48 AM
Martin7483
    Thread: Problems with extending CI_Form_validation
Post: RE: Problems with extending CI_Form_validation

Problem 1: PHP Code: -- $this->form_validation->set_rules('email', '', 'scanEmail|required'); var_dump($this->form_validation->run()); // ALWAYS RETURNS FALSE -- You have set two rules, bu...
15,779 Views
15 Replies
07-30-2017, 02:11 AM
Martin7483
    Thread: Setting csrf_regenerate as TRUE
Post: RE: Setting csrf_regenerate as TRUE

First I spotted this on the jQuery website regarding ajaxSetup Set default values for future Ajax requests. Its use is not recommended. If I understand correctly, the use of this function will eff...
14,513 Views
11 Replies
07-29-2017, 06:47 AM
Martin7483
    Thread: Setting csrf_regenerate as TRUE
Post: RE: Setting csrf_regenerate as TRUE

First Why don't you use the PHP function json_encode? Your two foreach loops can be done in 1 foreach and there is no need to create a json string in that manner. Second I'm not going to write t...
14,513 Views
11 Replies
07-28-2017, 01:58 AM
Martin7483
    Thread: Setting csrf_regenerate as TRUE
Post: RE: Setting csrf_regenerate as TRUE

First I'm asuming you are using jQuery ;) Your AJAX code should have a success and error handler for responses. The controller/method that is called via the AJAX could respond with JSON output ...
14,513 Views
11 Replies
07-27-2017, 10:47 AM
Martin7483

Theme © iAndrew 2016 - Forum software by © MyBB