Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: unlikely...
Post: RE: unlikely...

All in all we decided to go "altering methods" way, inserting check function call wherever necessary... Looks like it's a downside of URI-segment routing: when there is no "&id=" you can't be sure th...
6,640 Views
5 Replies
12-30-2015, 01:25 AM
Rashid
  Brick Thread: unlikely...
Post: unlikely...

Very unlikely that it is possible, but.. There are many methods in my controllers that have a specific param: $webinar_id Most of the time it is the only parameter (but not always). Can I somehow CHE...
6,640 Views
5 Replies
12-29-2015, 10:11 AM
Rashid
    Thread: Need tips about authentication check (cookies)
Post: RE: Need tips about authentication check (cookies)

sintakonte Wrote: (11-03-2015, 04:45 AM) -- PHP Code: -- $hook['pre_controller'][] = array( "class" => "AppCookieValidator", "function" => "initialize", "filename" => "AppCookieValidator.php", ...
6,097 Views
4 Replies
12-29-2015, 09:02 AM
Rashid
    Thread: set_header() file download problem
Post: RE: set_header() file download problem

Download Helper works well, btw. Here is what I received: Code: -- HTTP/1.1 200 OK Date: Tue, 29 Dec 2015 13:45:38 GMT Server: Apache/2.2.29 (Win32) mod_ssl/2.2.29 OpenSSL/1.0.1j PHP/5.4.36 X...
5,960 Views
4 Replies
12-29-2015, 06:50 AM
Rashid
    Thread: set_header() file download problem
Post: RE: set_header() file download problem

Commenting exit() and letting function end normally does not solve the problem, i guess it IS a bug, yet.. Here is a full code: PHP Code: -- public function download($format, $str) { $get_stri...
5,960 Views
4 Replies
12-29-2015, 06:37 AM
Rashid
  Exclamation Thread: set_header() file download problem
Post: set_header() file download problem

CI 3.0.3. Here is my question on stackoverflow: http://stackoverflow.com/questions/34432663/chrome-opens-file-instead-of-downloading-if-size-n-kb Further investigation revealed the fact that CI's set...
5,960 Views
4 Replies
12-29-2015, 02:38 AM
Rashid
  Smile Thread: wtf is "Query Builder"?
Post: wtf is "Query Builder"?

Where Active Record has gone? Is it just a rename issue? ('Active Record' === 'Query Builder') is TRUE?
3,121 Views
2 Replies
11-23-2015, 01:38 AM
Rashid
    Thread: /application/core/MY_Controller.php
Post: /application/core/MY_Controller.php

Hello, what if I need two (or more) different MY_Controller classes in a core folder? CodeIgniter allows creation only one "extended" version? :( I tried PHP Code: -- class MY_AuthController exte...
13,713 Views
5 Replies
11-03-2015, 07:58 AM
Rashid
    Thread: Need tips about authentication check (cookies)
Post: RE: Need tips about authentication check (cookies)

Thank you, guys!
6,097 Views
4 Replies
11-03-2015, 06:17 AM
Rashid
    Thread: Need tips about authentication check (cookies)
Post: Need tips about authentication check (cookies)

What is the most common and robust auth check pattern in CI? I personally see two ways: 1) insert check routine into a hook-function ('pre_controller' or 'post_controller_constructor' ?) - one for a...
6,097 Views
4 Replies
11-03-2015, 02:21 AM
Rashid
    Thread: Need refactoring advice
Post: RE: Need refactoring advice

mwhitney, thank you for being responsive! Quote: -- Another alternative would be to set the $webinar_id as a property of the model itself, then load the model specific to the webinar. Whether that ...
4,339 Views
3 Replies
10-16-2015, 01:37 AM
Rashid
    Thread: Need refactoring advice
Post: Need refactoring advice

Hello, all. Here is my model superclass (used by several child models): PHP Code: --
4,339 Views
3 Replies
10-15-2015, 06:53 AM
Rashid
    Thread: filtering HTML form
Post: filtering HTML form

Hello, all. In a form there is a  field containing HTML formatted data, which get damaged after PHP Code: -- $this->input->post('text'); -- Some sub-strings replaced by '[removed]'. The temp...
2,218 Views
1 Replies
09-09-2015, 07:17 AM
Rashid
    Thread: Insert-or-update function
Post: Insert-or-update function

Hello, i'm interested in a combined "insert-if-not-exists-else-update" model's function. How to make it effectively using CodeIgniter? PHP Code: -- public function set_settings($id, $data) {   ...
6,167 Views
2 Replies
09-08-2015, 09:20 AM
Rashid
    Thread: Switching databases
Post: RE: Switching databases

Thank you! db_select() is what i need.
7,685 Views
5 Replies
09-03-2015, 02:22 PM
Rashid
    Thread: Switching databases
Post: RE: Switching databases

CroNiX Wrote: (09-03-2015, 09:19 AM) -- I think its more resource intensive to open a new db connection. I only use multiple connections if there are actually different db servers I'm interfacing wit...
7,685 Views
5 Replies
09-03-2015, 11:34 AM
Rashid
    Thread: Switching databases
Post: Switching databases

Is it safe to constantly switch between multiple databases using "USE ..." query? For instance, $this->db->query("USE webinar_" . $webinar_id); ... do some work ... $this->db->query("USE main_db"...
7,685 Views
5 Replies
09-03-2015, 12:52 AM
Rashid

Theme © iAndrew 2016 - Forum software by © MyBB