Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: [split] Database problem since 3.1.6
Post: RE: [split] Database problem since 3.1.6

Paradinight Wrote: (11-12-2017, 10:24 PM) -- https://github.com/bcit-ci/CodeIgniter/issues/5276 -- Thanks
6,148 Views
4 Replies
11-19-2017, 05:51 PM
phpforever2017
    Thread: [split] Database problem since 3.1.6
Post: [split] Database problem since 3.1.6

Hello, thanks for You work. I'm use PHP Code: -- $this->dbutil->backup -- for backup DB from admin panel. After upgrade, in this a peace of code PHP Code: -- while ($field = $query->result_id...
6,148 Views
4 Replies
11-12-2017, 01:44 PM
phpforever2017
    Thread: Help with database load design
Post: RE: Help with database load design

If I understand you try this PHP Code: -- if ( ! isset( $this->db ) { $this->load->database(); } -- and load all your models. see in model construtor code have this line PHP Code: -- ...
6,065 Views
5 Replies
08-10-2017, 01:29 PM
phpforever2017
    Thread: Multilanguage model
Post: Multilanguage model

Hi guys! The question of multilanguage model. I have the entity Page, PageDescription and models PHP Code: -- class PageModel extends CI_Model {        protected $tableEntity = 'pages';     ...
1,880 Views
0 Replies
08-07-2017, 05:10 AM
phpforever2017
    Thread: A Simple Forum Software built on CI4
Post: RE: A Simple Forum Software built on CI4

Small question This model is created instance of UserModel() https://github.com/lonnieezell/simple-forums/blob/master/application/Domains/Forums/ThreadModel.php#L98 and here https://github.com/lon...
28,057 Views
18 Replies
07-24-2017, 07:42 AM
phpforever2017
    Thread: What is the best way to fill an object with data from a database
Post: RE: What is the best way to fill an object with da...

I already found the answer to my question with the pattern Domain Model and Data Mappers. After sending a request from the controller to the model, I get a object product with all attributes, option, ...
3,423 Views
2 Replies
05-29-2017, 04:54 AM
phpforever2017
    Thread: Multiple Template
Post: RE: Multiple Template

Hello Example  PHP Code: -- $config['template_dir'] = 'my_design'; -- In back end select template dir In controller PHP Code: -- $data['content'] = $this->load->view($template_dir . '/page_t...
3,941 Views
2 Replies
05-28-2017, 07:51 AM
phpforever2017
    Thread: What is the best way to fill an object with data from a database
Post: What is the best way to fill an object with data f...

Hi all What is the best way to fill an array objects with data from a database My code PHP Code: -- class ProductsContentComposite extends AbstractContentComposite {    public function addEl...
3,423 Views
2 Replies
05-28-2017, 12:31 AM
phpforever2017
    Thread: Help with Migration
Post: Help with Migration

Hello guys! When I run migration with this code, up or down PHP Code: -- class Migration_add_field_to_products_to_attribute extends CI_Migration {    public function up()    {        $this-...
1,693 Views
0 Replies
05-24-2017, 07:05 AM
phpforever2017
    Thread: Codeigniter and Composer psr-4
Post: RE: Codeigniter and Composer psr-4

llebkered Wrote: (03-16-2017, 04:51 AM) -- There are 2 ways. One is a simple change to your config. The other is including a link in your index.php. Changing the config is the best because it doensn'...
16,566 Views
10 Replies
03-16-2017, 05:03 AM
phpforever2017
    Thread: Codeigniter and Composer psr-4
Post: RE: Codeigniter and Composer psr-4

Removed from index.php and set in config $config['composer_autoload'] = 'vendor/autoload.php'; Everything works fine, thanks. This is all my inattention.
16,566 Views
10 Replies
03-16-2017, 05:01 AM
phpforever2017
    Thread: Codeigniter and Composer psr-4
Post: RE: Codeigniter and Composer psr-4

Narf Wrote: (03-15-2017, 02:57 AM) -- Setting it to TRUE means that it will look for application/vendor/autoload.php Is that the correct path for your setup? If not, set it to the path to the aut...
16,566 Views
10 Replies
03-16-2017, 03:35 AM
phpforever2017
    Thread: Codeigniter and Composer psr-4
Post: RE: Codeigniter and Composer psr-4

Narf Wrote: (03-14-2017, 11:11 AM) -- Not actually using Composer's autoloader? -- In config set composer autoload true php 5.5 codeigniter 3.1.3. Composer installing. You talk about it require __...
16,566 Views
10 Replies
03-14-2017, 12:43 PM
phpforever2017
    Thread: Codeigniter and Composer psr-4
Post: RE: Codeigniter and Composer psr-4

Narf Wrote: (03-14-2017, 11:11 AM) -- Not actually using Composer's autoloader? -- In config set composer autoload true php 5.5 codeigniter 3.1.3. Composer installing.
16,566 Views
10 Replies
03-14-2017, 11:59 AM
phpforever2017
    Thread: Codeigniter and Composer psr-4
Post: Codeigniter and Composer psr-4

Hi guys composer.json Code: -- {  "autoload": {    "psr-4": {      "App\\": "application/libraries"    }  } } -- application/libraries PHP Code: --
16,566 Views
10 Replies
03-14-2017, 10:24 AM
phpforever2017
    Thread: Problem with returned from the database in class
Post: RE: Problem with returned from the database in cla...

Wouter60 Wrote: (02-27-2017, 12:42 PM) -- Glad to hear that it's working now (???) -- Working, working))))) I still can not understand why the values are set to the closed variable if their name mat...
7,095 Views
6 Replies
02-28-2017, 01:57 AM
phpforever2017
    Thread: Problem with returned from the database in class
Post: RE: Problem with returned from the database in cla...

The problem in the next, is not called __set method if set private or protected propeties. Yet I have done so: PHP Code: -- class User_lib { protected $_customer_id; protected $_email; protect...
7,095 Views
6 Replies
02-27-2017, 05:06 AM
phpforever2017
    Thread: Problem with returned from the database in class
Post: Problem with returned from the database in class

Hello. CodeIgniter 3.1.3 problem in the following PHP Code: -- class User_lib { protected $customer_id; protected $email; protected $firstname; protected $date_added; } -- model PHP...
7,095 Views
6 Replies
02-24-2017, 06:19 AM
phpforever2017

Theme © iAndrew 2016 - Forum software by © MyBB