Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,438
» Latest member: ikibiki
» Forum threads: 66,612
» Forum posts: 417,758

Full Statistics

Latest Threads
transaction doesn't work ...
Forum: CodeIgniter 3.x
20 minutes ago
» Replies: 3   » Views: 79
autogenerator
Forum: Addins
2 hours ago
» Replies: 0   » Views: 17
CodeIgniter 3.1.5 Release...
Forum: News & Discussion
10 hours ago
» Replies: 44   » Views: 33,075
Project Update - 2017.07....
Forum: News & Discussion
Yesterday, 07:05 AM
» Replies: 19   » Views: 12,178
Using existing session da...
Forum: General Help
Yesterday, 04:05 AM
» Replies: 11   » Views: 197
Make custom driver
Forum: Libraries & Helpers
Yesterday, 03:00 AM
» Replies: 4   » Views: 180
Rewrite on Windows Server
Forum: Installation & Setup
09-23-2017, 10:18 AM
» Replies: 1   » Views: 92
CI 2.1.4 - PHP 5.6.30 - p...
Forum: CodeIgniter 2.x
09-23-2017, 03:21 AM
» Replies: 2   » Views: 102
All links give a 500 Erro...
Forum: General Help
09-22-2017, 10:44 PM
» Replies: 4   » Views: 212
H1,H2 headings are to big
Forum: Lounge
09-22-2017, 05:58 PM
» Replies: 8   » Views: 216

 
  autogenerator
Posted by: sagar313 - 2 hours ago - Forum: Addins - No Replies

Hello, fellow developer i created new package to generate coodeigniiter 3 controller models and views using cli tool. The package is not ready to real apss right now but have a look at it.
https://github.com/sagarkaurav/codeigniter-cli-minion

contribution and suggestion are most welcome.


  transaction doesn't work properly
Posted by: vahid.vdn - Yesterday, 08:02 AM - Forum: CodeIgniter 3.x - Replies (3)

I'm looking for a case how `transaction` do it's job. In first case I write a `sleep(10000)` between two queries, then turn of the wamp server:

PHP Code:
$this->db->trans_begin();
$q1 $this->db->query("INSERT INTO `test`(`test_col`) VALUES ('aaaaaa')");
sleep(100000);
$q2 $this->db->query("INSERT INTO `test`(`test_col`) VALUES ('bbbbbb')");
$this->db->trans_complete(); 


But first record is saved without second one. Then I tried with another case, that first query fails because of duplicated value:

PHP Code:
$this->db->trans_begin();
$q1 $this->db->query("INSERT INTO `test`(`test_col`) VALUES ('duplicated')");
$q2 $this->db->query("INSERT INTO `test`(`test_col`) VALUES ('new row')");
$this->db->trans_complete(); 



But again the new one exist in the database. Any idea? Is there anything I'm missing?


Also `trans_rollback`  doesn't work.

PHP Code:
if ($this->db->trans_status() === FALSE)
{
 
   // I get this line, but trans_rollback doesn't work
 
   $this->db->trans_rollback();


  Rewrite on Windows Server
Posted by: Wouter60 - 09-23-2017, 04:32 AM - Forum: Installation & Setup - Replies (1)

Not really a CodeIgniter question, but maybe someone can answer it.

I'm working in a project on Windows Server. There already are several web applications on it, written in native php.
For a new application, I want to use CodeIgniter.
All is going well, except hiding the index.php in the URL's. To make that possible, we need to use the rewrite extension (and set rules for it in a web.config file).
The rewrite extension voor Windows Server hasn't been installed yet.
The server operator is willing to do that, but he wants to be sure that the existing web applications will not be affected.

Is there any risk in merely installing the rewrite extension on the server?


  CI 2.1.4 - PHP 5.6.30 - problem in using session
Posted by: riham13 - 09-22-2017, 10:18 PM - Forum: CodeIgniter 2.x - Replies (2)

$this->session->set_userdata() OR $this->session->unset_userdata() causing 500 Internal Server Error.

okay in localhost. only causing problem in server.

CI Version : 2.1.4
PHP Version : 5.6.30
PHP Error : 500 Internal Server Error
Js Error: 502 Bad Gateway


  Messaging
Posted by: InsiteFX - 09-22-2017, 09:33 AM - Forum: Lounge - No Replies

If you users want to message someone and get a reply then
you need to allow Private Messaging.


  Using existing session data from a non-CI website in a CodeIgniter website
Posted by: happyape - 09-22-2017, 09:04 AM - Forum: General Help - Replies (11)

I have two websites on the same server -
1) subdomain.mydomain.com where users log in. I setup a session cookie with domain as .mydomain.com
2) my second website is at mydomain.com which is a CI powered website and I got a plain php file at mydomain.com/plain.php

In subdomain.mydomain.com/login.php I setup session cookie as

PHP Code:
session_name('mysess');
session_set_cookie_params(0'/''.mydomain.com');
session_start(); 


In http://mydomain.com/Plain.php

PHP Code:
session_name('mysess');
session_set_cookie_params(0'/''.mydomain.com');
session_start();
echo 
'<pre>'print_r($_SESSION); 

In My CodeIgniter website http://subdomain.mydomain.com/application/config.php

PHP Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'mysess';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '.mydomain.com'
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE


Once users login at subdomain.mydomain.com I can see the session data at mydomain.com/plain.php without any issues but as soon as I view any page on mydomain.com/mycontroller/mymethod it overwrites the session data and I lose all the session data set after login at subdomain.mydomain.com

I need that data to see that if a user is logged in or not. I don't want users to login twice that's why I setup cookie as above.
What changes do I need to make in CI config to be able to get that data?


  Problem with large records
Posted by: Germanikus - 09-21-2017, 10:57 PM - Forum: Regional User Groups - Replies (5)

Hello,
I'm just about to create a setup from my old database to the new database.
Now I have the problem and do not know where I can change that.
One of my tables has stored more than 9000 records and if I want to run it, I get an error message and that is in it.

Fatal error: Maximum execution time of 60 seconds exceeded in ....\test\system\database\drivers\mysqli\mysqli_driver.php on line 305

Can I change the 60 sec?


Rainbow H1,H2 headings are to big
Posted by: CodeNoobGniter - 09-21-2017, 01:27 PM - Forum: Lounge - Replies (8)

I have big H1, H2, H3, H4, H5, H6 Headers.
How can I reduce that with CSS or there's another way.
I know i'm a beginner and seems stupid question.


  Error 500
Posted by: ana - 09-21-2017, 01:21 PM - Forum: Installation & Setup - Replies (3)

Hi my friends, i have a problem witch my new hosting error 500,  change the  database connection and config.php line 17 change path  $config['base_url'] = 'http://...'

What is my mistake?, i nedd your help.

link : http://kmt-test.keepmoving.com.mx/donrenton/.

thanks.


  Load custom language file BF $this->lang->load
Posted by: canado - 09-21-2017, 12:39 PM - Forum: CodeIgniter 4 Support - Replies (1)

Hi everyone

Before I forcing a custom language to load with

$this->lang->load("name_of_my_file_lang.php")

What would be the new method to achieve the same result in the new CI4 ?

Thanks



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