Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: When creating an image class, it throws an error!
Post: When creating an image class, it throws an error!

Hi!  When creating an image class, it throws an error!!! Code: -- $image = Config\Services::image(); -- Error Class 'App\Controllers\Config\Services' not found [hr] CI version 4.0.0-rc.3
1,944 Views
2 Replies
12-31-2019, 01:56 AM
videoproc
    Thread: How to extend class Email?
Post: RE: How to extend class Email?

Thanks! Everything works! In the file \ app \ Config \ Services.php added: Code: -- class Services extends CoreServices { public static function email($config = null, bool $getShared = true) { ...
6,260 Views
14 Replies
12-23-2019, 10:11 PM
videoproc
    Thread: How to extend class Email?
Post: RE: How to extend class Email?

InsiteFX Wrote: (12-23-2019, 04:22 AM) -- To use one of your own system classes instead of a default one, ensure that the Autoloader can find your class, that your new class extends the appropriate i...
6,260 Views
14 Replies
12-23-2019, 04:47 AM
videoproc
    Thread: How to extend class Email?
Post: RE: How to extend class Email?

Hi! Earned the test1 method! File: \app\Libraries\Email.php: Code: --
6,260 Views
14 Replies
12-23-2019, 01:15 AM
videoproc
    Thread: How to extend class Email?
Post: RE: How to extend class Email?

Does not work! File: \app\Libraries\Email.php: Code: -- use CodeIgniter\Email\Email as BaseEmail; namespace App\Email; class Email extends BaseEmail { public function test1() { ech...
6,260 Views
14 Replies
12-20-2019, 05:49 AM
videoproc
    Thread: How to extend class Email?
Post: RE: How to extend class Email?

Of course I determined! I expect her to volunteer! Created a file \app\Libraries\Email.php: ---------------------------------------- Code: -- namespace App\Libraries; use CodeIgniter\Email\Em...
6,260 Views
14 Replies
12-19-2019, 12:17 AM
videoproc
  Tongue Thread: How to extend class Email?
Post: How to extend class Email?

Hello colleagues! Created a file \app\Libraries\Email.php: ---------------------------------------- namespace App\Libraries; use CodeIgniter\Email\Email; class Email extends Email { public ...
6,260 Views
14 Replies
12-18-2019, 05:04 AM
videoproc
    Thread: HTML Table Class new error!
Post: RE: HTML Table Class new error!

Updated CI to the latest version! It was beta 4.2. It all worked! I apologize for your concern!
3,747 Views
8 Replies
07-17-2019, 12:23 AM
videoproc
    Thread: HTML Table Class new error!
Post: RE: HTML Table Class new error!

Use php 7.3 My code: PHP Code: -- CRITICAL - 17.07.2019 09:17:23 --> Class 'CodeIgniter\View\Table' not found #0 C:\_OpenServer\OSPanel\domains\xxx.ru\app\Controllers\Cron.php(59): App\Control...
3,747 Views
8 Replies
07-16-2019, 11:21 PM
videoproc
    Thread: HTML Table Class new error!
Post: RE: HTML Table Class new error!

This is good in CI3! I try it in CI4 and there such code does not work! Help me please!
3,747 Views
8 Replies
07-16-2019, 05:54 AM
videoproc
    Thread: HTML Table Class new error!
Post: HTML Table Class new error!

Hello! Please help! Added lines to controller method: PHP Code: -- $table = new \CodeIgniter\View\Table(); $data = array(        array('Name', 'Color', 'Size'),        array('Fred', 'Blue'...
3,747 Views
8 Replies
07-16-2019, 05:15 AM
videoproc
    Thread: Change the paginate method
Post: RE: Change the paginate method

You know better! But now the following code accesses the database 3 times and this is not correct: PHP Code: -- $segment  = 3; $perPage  = 10; $page  = (int)$params[0]; if(!$page)$page++; $te...
1,876 Views
2 Replies
05-30-2019, 11:56 PM
videoproc
    Thread: Change the paginate method
Post: Change the paginate method

Hi! Since the manual numbering of pages in the method  $ pager->makeLinks ($page, $perPage, $total) is $total, I propose to change the paginate method in the System/Model.php: PHP Code: -- public...
1,876 Views
2 Replies
05-25-2019, 02:10 AM
videoproc
    Thread: Where did the email class go to CI4?
Post: Where did the email class go to CI4?

Hi! Where did the email class go to CI4? :huh:
1,279 Views
1 Replies
05-10-2019, 11:02 PM
videoproc
    Thread: the created model does not work 'User'
Post: RE: the created model does not work 'User'

Understood! id_user nothing to do with! \ Models \ UserModel.php: protected $useSoftDeletes = false; or protected $useSoftDeletes = true; but add to the database table field: `deleted` t...
1,869 Views
3 Replies
05-07-2019, 10:41 PM
videoproc
    Thread: the created model does not work 'User'
Post: the created model does not work 'User'

Hello, friends! dump:  Code: -- CREATE TABLE IF NOT EXISTS `user` (  `id_user` int(10) unsigned NOT NULL AUTO_INCREMENT,  `login` char(50) DEFAULT NULL,  `name` char(50) DEFAULT NULL,  `e...
1,869 Views
3 Replies
05-07-2019, 12:52 AM
videoproc

Theme © iAndrew 2016 - Forum software by © MyBB