Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Configure database config from function
Post: RE: Configure database config from function

keulu Wrote: (02-29-2016, 08:36 AM) -- yes you can in your database config file add as many configuration groups as the numbers of your databases: PHP Code: -- $db['a']['hostname'] = 'localhost'...
4,568 Views
4 Replies
02-29-2016, 08:39 AM
vertisan
    Thread: Configure database config from function
Post: Configure database config from function

Hi! Is possible to set database config from normal form? Normal config has this option - ok, but now I need to set database config (hostname, user, password, etc.)
4,568 Views
4 Replies
02-29-2016, 06:02 AM
vertisan
    Thread: Get config item in model
Post: RE: Get config item in model

PHP Code: -- class Notification_model extends ENC_Model { protected $SectionTable = $this->config->item( 'TableSections' ); public function __construct() { parent::__construct(); } ...
15,833 Views
6 Replies
02-26-2016, 12:18 AM
vertisan
    Thread: Get config item in model
Post: Get config item in model

Like in subject, I need to get some values from config. Normally I using PHP Code: -- $this->config->item( 'MyOption' ); -- but in model (normal file and MY_Model) I getting Code: -- Parse error...
15,833 Views
6 Replies
02-25-2016, 04:33 PM
vertisan
    Thread: Get all stored sessions
Post: RE: Get all stored sessions

Narf Wrote: (02-15-2016, 03:44 PM) -- Don't do that ... trust me, there are too many things to go in a complete driver. You only need to extend sess_regenerate(). -- Ok, but ... How do this? I nee...
14,387 Views
9 Replies
02-16-2016, 06:54 AM
vertisan
    Thread: Get all stored sessions
Post: RE: Get all stored sessions

I do something like this: Code from model (I using IonAuth): $this->db->insert( 'ci_sessions', array( 'logged_id' => $user->id ) ); $this->session->set_userdata($session_data); but now, when I'm lo...
14,387 Views
9 Replies
02-15-2016, 01:56 PM
vertisan
    Thread: Get all stored sessions
Post: RE: Get all stored sessions

Narf Wrote: (02-15-2016, 08:09 AM) -- vertisan Wrote: (02-15-2016, 06:45 AM) -- Narf Wrote: (02-15-2016, 05:49 AM) -- That all_userdata() doesn't do what you think it does. -- So how can i do thi...
14,387 Views
9 Replies
02-15-2016, 09:33 AM
vertisan
    Thread: Get all stored sessions
Post: RE: Get all stored sessions

Narf Wrote: (02-15-2016, 05:49 AM) -- That all_userdata() doesn't do what you think it does. -- So how can i do this? Normally foreach table from DB? If yes, so how can I get data from 'BLOB' column...
14,387 Views
9 Replies
02-15-2016, 06:45 AM
vertisan
    Thread: Get all stored sessions
Post: Get all stored sessions

Hi! I want to create list of logged users. I set to store sessions in DB and I tried to use PHP Code: -- $this->session->all_userdata(); -- but I getting only data for logged account (ex. when I'm o...
14,387 Views
9 Replies
02-15-2016, 04:20 AM
vertisan
    Thread: Where insert loop? Controller or model?
Post: Where insert loop? Controller or model?

Hi! Which way to put the loop will be better? Controller PHP Code: -- for ( $i=0; $i < $MaxI; $i++ ) { $variable[] = $this->Name_model->GetItem(); } -- Model PHP Code: -- fo...
5,197 Views
4 Replies
02-01-2016, 12:20 PM
vertisan
    Thread: The best auth library
Post: The best auth library

Hi guys! I looking for the best auth library for my app. I found: IonAuth = https://github.com/benedmunds/CodeIgniter-Ion-Auth Aauth = https://github.com/emreakay/CodeIgniter-Aauth Community A...
18,121 Views
13 Replies
01-01-2016, 05:33 PM
vertisan
    Thread: Check if exist in array (all in foreach)
Post: RE: Check if exist in array (all in foreach)

Var_dump $SectionsList: PHP Code: -- array(5) {  [0]=>  object(stdClass)#33 (3) {    ["ID"]=>    string(1) "1"    ["Title"]=>    string(8) "Section1"    ["Description"]=>    string...
7,960 Views
4 Replies
12-11-2015, 12:42 PM
vertisan
    Thread: Check if exist in array (all in foreach)
Post: Check if exist in array (all in foreach)

Hi! I have little problem. I need to check every row in another array, and if exist - do something. This is my code: PHP Code: -- ...
7,960 Views
4 Replies
12-11-2015, 09:27 AM
vertisan
    Thread: External DB - error from __construct
Post: External DB - error from __construct

Hi! I need to connect my app to external database, but when I chage parameters I getting error from __construct function: Code: -- Unable to connect to database server using the specified set...
2,224 Views
1 Replies
11-12-2015, 04:13 PM
vertisan
    Thread: CI Calendar with multiple events per day
Post: CI Calendar with multiple events per day

Hi! I have something like this: http://iv.pl/images/35021795344086662308.png Now, I need to display more than 1 event on the same day, how do this? Controller: PHP Code: -- public functi...
3,853 Views
2 Replies
10-24-2015, 04:09 AM
vertisan
    Thread: Send value from view to method and vice versa
Post: Send value from view to method and vice versa

Hi! I need send value from view to function in controller and return to view. Example on code: VIEW: PHP Code: -- echo 'Count: ' . AddNumber(2); -- CONTROLLER: PHP Code: -- function...
5,046 Views
3 Replies
09-11-2015, 12:57 PM
vertisan
    Thread: Form_validation doesn't work ...
Post: RE: Form_validation doesn't work ...

Diederik Wrote: (08-16-2015, 01:00 PM) -- I think their is a small issue with the logic in your controller. Try: Code: -- $this->form_validation->run() !== FALSE -- One other thing I noticed ...
4,610 Views
3 Replies
08-17-2015, 09:29 AM
vertisan
    Thread: Form_validation doesn't work ...
Post: Form_validation doesn't work ...

Hi! I have controller with method: PHP Code: -- public function AddPost() { if ( isset( $_POST ) ) { $this->form_validation->set_rules('TitlePostField', 'Tytuł', 'trim|required|xss_cle...
4,610 Views
3 Replies
08-16-2015, 12:36 PM
vertisan
    Thread: Error on IonAuth change address
Post: Error on IonAuth change address

I have problem with my app. I have login page and I set route: PHP Code: -- $route['logowanie'] = 'Back/index/Login'; -- But when I get error on login, my address set: Code: -- mydomain.com/B...
2,410 Views
1 Replies
08-14-2015, 11:00 AM
vertisan
    Thread: Get data from controller by AJAX
Post: Get data from controller by AJAX

Hi! I tried get data from controller by AJAX but I wrote something wrong. Here is my code: CONTROLLER: PHP Code: -- $data['AcceptedServices'] = $this->AdminServices_model->GetAcceptedServicesAdmin...
44,358 Views
3 Replies
08-09-2015, 04:24 AM
vertisan

Theme © iAndrew 2016 - Forum software by © MyBB