how to dynamically change lang
my lang file like this: PHP Code: <?php$lang['db_invalid_connection_str'] = '无法从连结取得数据库设定.';$lang['db_unable_to_connect'] = '无法连结数据库.';$lang['db_unable_to_select'] = '无法选择指定数据库: %s';…… in...
View Articleproblem of link
Hello here my difficulty: I want to establish a link towards another view with this code: PHP Code: <H2 class="centrage"><A href="<?php echo site_url('Curriculum'); ?>">Contactez moi...
View ArticleCI 2.x->3.x Class Names?
I'm upgrading from CI 2.x to 3.x. I see that I will be changing the case of class names to make them have initial caps. E.g.: PHP Code: application/libraries/mylibrary.php becomes: PHP Code:...
View ArticleCI 2.x->3.x Redirect?
I'm upgrading from CI 2.x to CI 3.x. I have this line in my default controller for users who aren't logged in: PHP Code: redirect('/auth/login/'); This used to redirect to:...
View ArticleHow to load Model?
Code: $usermodel = new \App\Models\UserModel(); Code: $usermodel = new UserModel(); are they the same? which one is correct? thanks
View ArticleV1.7.1 to current v3 upgrade
Hi all, I've looked and I haven't see any solid info on upgrading multiple versions. Essentially, I have a project that was originally built on CI 1.7. I'm looking to bring it up to CI 3.1.x. So, my...
View ArticleA very strange occurance.
I've been using codeignitor off and on since pre 1.5 days if I remember right. I occasionally use it to help write utilities on personal web servers for private use mostly. I've always loved it....
View ArticleUnable to get routing to work correctly
I have a site that I am using to learn PHP and CodeIgniter. I have an .htaccess file <IfModule authz_core_module> Require all denied </IfModule> <IfModule !authz_core_module>...
View Article$this->db->limit() working differently?
Hi I had to fix an application while upgrading from version 3.1.0 to 3.1.2 because active record $this->db->limit() apparently works differently: Code: Code: $this->db->limit(0,1);...
View ArticleIntegrating MVC framework to CMS (CodeIgniter)
Hello there, Call me Angel. Recently, am having trouble with the project a client gave me. It's an existing website which primarily built from Codeigniter MVC framework. However, the client wants to...
View ArticleSome questions...
Hi, I've a few questions regarding CodeIgniter 3.1.2 and, in fact, CodeIgniter in general. 1. What are the requirements for CodeIgniter? i.e. Recommended PHP version, WAMP, LAMP etc 2. Why doesn't the...
View ArticleCodeIgniter 3.x with RedBean PHP ORM
So im gonna share this stuff to you guys, this is about how to use readbean php ORM to your codeigniter 1. First download the latest version here ReadBeanPHP Latest 2.Extract the contents and copy the...
View ArticleCandidate Vote by Selected ID
Hai, i want to create vote candidate by selected ID. i already create function, when select the first candidate and i want to change to other candidate it always show the first candidate that im click...
View ArticleSQLSTATE[08006] [7] invalid connection option "charset"
Hello I'm trying to connect with PDO to my database. Here is the error message : A Database Error Occurred SQLSTATE[08006] [7] invalid connection option "charset" Filename:...
View Articlecodeigniter and joomla together on nginx webserver
hello. i have a site that main domain is created by joomla , i make another folder with name newashosite and paste my codeigniter in it , then , i change configuration settings and im sure they are...
View ArticleError with CI 3.1.2
New error popping up when upgraded to CI 3.1.2. Code: Error Number: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use...
View ArticleLibrary -Object - Hydrate
Hello, I'm trying to understand a logic but I'm maybe far far away... In my previous tutorials I learned to create an object by using a specific class. Something like : PHP Code: <?phpclass...
View Articleform_helper function
Hello, Recently working to develop my CI 3 application into CI 4, but on the start with the form helper function i'm bumping on a error message. ci-4.png (Size: 55.68 KB / Downloads: 18) Loaded...
View Articleinsert bug(CI4)
here I insert the follow data to mysql. PHP Code: $data['password']='$2y$10$ErQlCj/Mo10il.FthAm0WOjYdf3chZEGPFqaPzjqOX2aj2uYf5Ihq' when I check the database, the data was changed to Code:...
View Articleproblem with insert upload file
i have problem with my implode function when i try to insert just one line with come it always store many lines need helps this is my code $config["upload_path"] = $this->upload_path;...
View Article