Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Multiple primary keys for protected $primaryKey
Post: Multiple primary keys for protected $primaryKey

PHP Code:protected $primaryKey = 'priKey1'; // normal for a table having 1 pri key  I have a combination of 3 pri key Then how shou...
bustersg CodeIgniter 4 Support 6 3,068 10-05-2019, 09:56 AM
    Thread: Call Model function from Controller
Post: Call Model function from Controller

While I know the concept of MVC but I am not sure if I am doing this the most 'efficient' way I have sql function in Model, I wan call it from Controller to pass it to View Below is how I do the 'flow...
bustersg CodeIgniter 4 Support 4 2,381 09-27-2019, 08:24 PM
    Thread: CI4 and Bootstrap
Post: CI4 and Bootstrap

Is there any built in component for bootstrap 4 such that you can activate conveniently in <head>? Or is still same as CI3 where one has to create assets/css folders in folder public Code:<!...
bustersg CodeIgniter 4 Support 2 3,667 09-21-2019, 08:28 PM
    Thread: How to load Configuration Files as Array?
Post: How to load Configuration Files as Array?

I am passing some environment settings to a view template but how do I pass it as an Array to avoid below error? TypeError Argument 2 passed to view() must be of the type array, object given PHP Cod...
bustersg CodeIgniter 4 Support 1 669 09-18-2019, 09:16 AM
    Thread: Best way to use db table prefix
Post: Best way to use db table prefix

So I include $db = ... in every functions and in each RAW $sql, I use $db->prefixTable('table_name') It works but is this the ideal way of coding it in CI4? PHP Code:function get...
bustersg CodeIgniter 4 Support 1 1,705 09-17-2019, 08:52 AM
    Thread: Where to store common 'global' functions?
Post: RE: Where to store common 'global' functions?

(09-16-2019, 11:34 AM)kilishan Wrote: If you want them loaded all of the time, you can add them App/Common.php. If you want them to be available to load just when needed, treat them as a Helper. Y...
bustersg CodeIgniter 4 Support 3 1,307 09-16-2019, 11:59 AM
    Thread: Where to store common 'global' functions?
Post: Where to store common 'global' functions?

I have a bunch of functions on common.php (no class just pure functions) Now migration to CI4 framework, where should I park this bunch of functions? Some or most functions does interact with database...
bustersg CodeIgniter 4 Support 3 1,307 09-16-2019, 10:04 AM
    Thread: Model return Undefined variable: table
Post: Model return Undefined variable: table

I get ErrorException Undefined variable: table APPPATH/Models/OptionsModel.php at line 22 Code:22: $option_value = $table->find($item); app/Models/OptionsModel.php Code:<?php namesp...
bustersg CodeIgniter 4 Support 1 909 09-15-2019, 08:50 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.