Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI download page
Post: CI download page

in https://codeigniter.com/download: "CodeIgniter comes in three flavors: CodeIgniter 3 (current), CodeIgniter 4 (future) and CodeIgniter 2 (legacy)" isn't CI 4 the current version of codeigniter?
3,152 Views
3 Replies
06-04-2021, 10:33 AM
pars1997
    Thread: valid_date not working as expected
Post: RE: valid_date not working as expected

you have to use i for minute (d/m/Y H:i). more info: https://www.php.net/manual/en/datetime.format.php
781 Views
1 Replies
04-14-2021, 11:43 AM
pars1997
    Thread: define Events on custom Controllers
Post: define Events on custom Controllers

is there a way to use Events only for specific Controllers? nothing in the documentation: https://codeigniter.com/user_guide/extending/events.html CI3 had really better User Guide than CI4
862 Views
2 Replies
09-22-2020, 04:35 AM
pars1997
    Thread: Using PDO for database connection
Post: RE: Using PDO for database connection

InsiteFX Wrote: (09-15-2020, 08:28 AM) -- Do a search in the forums here for ( CodeIgniter supported database drivers ) I gave some other user the driver list for version 3 and 4 of CodeIgniter. -- I...
2,893 Views
3 Replies
09-16-2020, 08:32 AM
pars1997
    Thread: Using PDO for database connection
Post: Using PDO for database connection

I'm trying to use PDO driver to access the database:  my database config: PHP Code: -- public $default = [ 'DSN'      => 'pgsql:host=localhost;port=3306;dbname=cipm',//I add this based on docume...
2,893 Views
3 Replies
09-15-2020, 06:35 AM
pars1997
    Thread: Call to undefined method Config\Encryption::creatKey()
Post: RE: Call to undefined method Config\Encryption::cr...

paulbalandan Wrote: (09-06-2020, 11:42 AM) -- $key = \CodeIgniter\Encryption\Encryption::createKey(32); -- Yes. it works, thanks.
916 Views
2 Replies
09-13-2020, 09:45 AM
pars1997
    Thread: Call to undefined method Config\Encryption::creatKey()
Post: Call to undefined method Config\Encryption::creatK...

I read the documentation as wrote my exactly based on the doc. PHP Code: -- $encrypter = \Config\Services::encrypter(); $key = Encryption::creatKey(32); //Class 'App\Controllers\Encryption' no...
916 Views
2 Replies
09-05-2020, 05:26 AM
pars1997
    Thread: validate image file only when uploaded
Post: RE: validate image file only when uploaded

seunex Wrote: (08-22-2020, 03:28 AM) -- $image = $this->request->getFile('input_fiee_name'); if($image->isValid) {   //Your code here } -- I'm looking for an internal validation rule like premi...
973 Views
3 Replies
08-25-2020, 01:56 AM
pars1997
    Thread: validate image file only when uploaded
Post: validate image file only when uploaded

Hi I need to validate an image file only if it was uploaded by the user. I know I can use something like: PHP Code: -- if(isset($_FILE['image'])){ validate(); } -- is there any internal va...
973 Views
3 Replies
08-21-2020, 08:11 AM
pars1997
    Thread: $validationMessages Doesn't work!
Post: RE: $validationMessages Doesn't work!

Is it a bug? Or my code is wrong?
1,638 Views
3 Replies
08-07-2020, 02:57 PM
pars1997
    Thread: $validationMessages Doesn't work!
Post: $validationMessages Doesn't work!

Hi. here is my sample code PHP Code: -- protected $validationRules = [ 'rePassword' => ['rules'=>'required|matches[password]','label'=>'Password repeat'],     ]; protected $validationMes...
1,638 Views
3 Replies
08-05-2020, 09:57 AM
pars1997
    Thread: composer install and direct install
Post: RE: composer install and direct install

jreklund Wrote: (08-01-2020, 06:18 AM) -- That vendor folder gets updated with every version, downloading new copies of e.g. vendor\codeigniter4\framework\app\Config\Mimes.php so that you can copy/me...
2,312 Views
5 Replies
08-01-2020, 12:53 PM
pars1997
    Thread: composer install and direct install
Post: RE: composer install and direct install

MGatner Wrote: (07-28-2020, 05:43 AM) -- You can pretend that the vendor files don’t exist. They are there for reference and some modules may make use of them but they aren’t needed for your project....
2,312 Views
5 Replies
07-31-2020, 01:13 PM
pars1997
    Thread: composer install and direct install
Post: composer install and direct install

Hi I wonder why when I install CI4 via Composer it creates two directories that hold CI files; 1st in the project root and 2nd in  `\vendor\codeigniter4\framework`? can I define controller, settings...
2,312 Views
5 Replies
07-28-2020, 12:03 AM
pars1997
    Thread: CRUD generator (dev-tools)
Post: RE: CRUD generator (dev-tools)

jreklund Wrote: (07-09-2020, 09:47 AM) -- At the moment no, those type of additions aren't on the roadmap for CI4. There are plans however on providing official addons to CI4 when the framework itsel...
5,036 Views
5 Replies
07-09-2020, 10:01 AM
pars1997
    Thread: CRUD generator (dev-tools)
Post: CRUD generator (dev-tools)

hi after learning PHP, I need to choose a PHP framework, I check almost all known frameworks. now I'm not sure which one is a better choice for me between the three frameworks YII2 ubiquity  - https:/...
5,036 Views
5 Replies
07-09-2020, 09:33 AM
pars1997

Theme © iAndrew 2016 - Forum software by © MyBB