Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Managing large recordset and maintaining database (MySQL)
Post: Managing large recordset and maintaining database ...

Hi, Need some help about databases. I'm currently using MySQL as my database and CI as my framework. I created a web page where I can upload a CSV file and insert them to my table. I have CSV file ...
3,734 Views
2 Replies
02-12-2019, 02:25 AM
kaitenz
    Thread: Array Randomizer?
Post: RE: Array Randomizer?

Pertti Wrote: (12-12-2018, 04:07 AM) -- You could use Tetris next block method: PHP Code: -- // list of available user options $users = [20, 47, 25, 210, 194]; // define temp variable $availableU...
5,085 Views
3 Replies
12-12-2018, 08:44 PM
kaitenz
  Wink Thread: Array Randomizer?
Post: Array Randomizer?

Hi everyone. I want to distribute/assign some data randomly but even amount from an array of users to an array of data. Here's an example: I have an array of user ids: PHP Code: -- $users =...
5,085 Views
3 Replies
12-12-2018, 02:17 AM
kaitenz
    Thread: form_open adds index.php to path
Post: RE: form_open adds index.php to path

Fabatka Wrote: (12-07-2018, 02:56 AM) -- Hi, Using form_open('your/path') adds the index.php to the absolute path in the final HTML while using base_url('your/path') does not. Posting form data is no...
2,204 Views
1 Replies
12-12-2018, 02:00 AM
kaitenz
    Thread: Show logo in email inbox
Post: RE: Show logo in email inbox

omid_student Wrote: (10-10-2018, 03:34 AM) -- kaitenz Wrote: (10-09-2018, 11:48 PM) -- Try this: PHP Code: -- $filename = APPPATH.'img/photo1.jpg'; $this->email->attach($filename); $cid = $t...
21,036 Views
16 Replies
10-15-2018, 11:27 PM
kaitenz
    Thread: Show logo in email inbox
Post: RE: Show logo in email inbox

Try this: PHP Code: -- $filename = APPPATH.'img/photo1.jpg'; $this->email->attach($filename); $cid = $this->email->attachment_cid($filename); $this->email->to($address); $this->email->messag...
21,036 Views
16 Replies
10-09-2018, 11:48 PM
kaitenz
    Thread: How to get value from array? message: "Cannot use object of type stdClass as array"
Post: RE: How to get value from array? message: "Ca...

That's easy. PHP Code: -- $details->production_companies[0]->id; // Or $a = ($details->production_companies); $a[0]->id; --
4,991 Views
2 Replies
10-02-2018, 02:50 AM
kaitenz
    Thread: Controller File Size/Length
Post: RE: Controller File Size/Length

I can only say is: Skinny controllers, fat models
6,819 Views
4 Replies
09-30-2018, 10:16 PM
kaitenz
    Thread: Return profiler as an array?
Post: Return profiler as an array?

Hi guys! It's me again. I like the Profiler. It gives me the information I need like benchmarks, queries, etc. But honestly, I don't like how it shows up in my website. Well, at least for me. S...
1,955 Views
1 Replies
09-25-2018, 09:16 PM
kaitenz
    Thread: Running a same query multiple times?
Post: RE: Running a same query multiple times?

Another question guys. I want to create a query that will select ALL the rows from a database table and put/cache the result to an array property (
9,110 Views
6 Replies
09-12-2018, 08:34 PM
kaitenz
    Thread: Running a same query multiple times?
Post: RE: Running a same query multiple times?

To refresh the cache if I will use AJAX, I'll just add either a parameter from get_content($refresh = FALSE) method or a new function called refresh_content_cache()
9,110 Views
6 Replies
09-11-2018, 08:01 PM
kaitenz
    Thread: Running a same query multiple times?
Post: Running a same query multiple times?

Hi, Is it OK to run a single query multiple times? In my profiler, it shows that I ran the same query about 5 times. That query came from my model named "Forms_model" with method name "get_content()...
9,110 Views
6 Replies
09-10-2018, 10:47 PM
kaitenz
    Thread: call one controller to another controller
Post: RE: call one controller to another controller

I think you need HMVC. https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/downloads/ (https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/downloads/) Quote:...
19,101 Views
4 Replies
09-10-2018, 09:43 PM
kaitenz
    Thread: getElemntbyid returns undefined value
Post: RE: getElemntbyid returns undefined value

kvanaraj Wrote: (08-27-2018, 10:52 PM) -- I tried but first row only affected. echo ' '; $("#primaryincome").click(function () {     var primaryincome = $("#primaryincome").val();    // var oth...
12,659 Views
9 Replies
08-28-2018, 04:51 AM
kaitenz
    Thread: getElemntbyid returns undefined value
Post: RE: getElemntbyid returns undefined value

Vitaly83 Wrote: (08-27-2018, 11:36 PM) -- Using of jQuery and other libs will not help if the element with this ID is not exists. -- Using jQuery, you can check whether the element exist. Code: --...
12,659 Views
9 Replies
08-28-2018, 04:45 AM
kaitenz
    Thread: 1 controller = 1 model VS. 1 controller = multiple model
Post: RE: 1 controller = 1 model VS. 1 controller = mult...

Another question. What if I load a model to a specific controller but that model is dependent to the other model? Should I load also the "other model"?
24,969 Views
19 Replies
08-27-2018, 11:12 PM
kaitenz
    Thread: getElemntbyid returns undefined value
Post: RE: getElemntbyid returns undefined value

Have you tried "jQuery"? Quote: -- jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML -- It is free. Give it a try. But if you prefer t...
12,659 Views
9 Replies
08-27-2018, 10:18 PM
kaitenz
    Thread: 1 controller = 1 model VS. 1 controller = multiple model
Post: RE: 1 controller = 1 model VS. 1 controller = mult...

I like the idea of 1 table = 1 model. I created the following models: Form_options_model.php  -  This will deal with the dropdown options from the database (table lookups). Also used in form validat...
24,969 Views
19 Replies
08-27-2018, 09:08 PM
kaitenz
    Thread: 1 controller = 1 model VS. 1 controller = multiple model
Post: RE: 1 controller = 1 model VS. 1 controller = mult...

Hi Pertti, Any advice? How do you separate your models? Any examples based on your projects?
24,969 Views
19 Replies
08-27-2018, 12:03 AM
kaitenz
    Thread: Ideas for Approval Matrix in CI
Post: RE: Ideas for Approval Matrix in CI

InsiteFX Wrote: (08-24-2018, 09:25 AM) -- Maybe this is what your looking for. How to design database request/approval tables (https://stackoverflow.com/questions/12090931/how-to-design-database-r...
8,472 Views
8 Replies
08-25-2018, 10:23 AM
kaitenz

Theme © iAndrew 2016 - Forum software by © MyBB