Validation form
Hello, When trying to validate my form I think there is going something wrong, required fields shows messages on the first run. But when entering the Firstname and Passwords the Lastname doesn't...
View ArticleBest practice selecting data from related models
I'm trying to figure out what is the best practice with selecting data from related model. I have a model (and a db table) "person" and then i have a model (and a db table) comment. There may be...
View ArticleinsertID()
Hello, Getting the following exception back when using the insertID() function. Quote:Call to undefined method CodeIgniter\Database\MySQLi\Builder::insertID() Don't know if i'm using it the wrong way...
View Articlesome wrong with upload
view file PHP Code: <form method="post" action="" enctype="multipart/form-data"><input type="file" name="f1"><input type="submit" name="submit"></form> Controllers file PHP...
View ArticleCodeigniter JQUERY
On my codeigniter project, the user can insert a image by url or upload it per normal. I generate some text using jquery html() Code: <script type="text/javascript"> standardhtml = '';...
View ArticleCodeIgniter CRUD Generator
Hello everyone! To speed up development process I created CRUD generator for CodeIgniter it just take json structure of table & generate controller, model, views & server validations....
View Articleannoying session/interface problem
hello in codeigniter v3 i'm facing an annoying problem related to session and recently appears much times which become annoying PHP Code: Fatal error: Class CI_Session_files_driver contains 1 abstract...
View ArticleCreating routing class "MY_Router"
Hello, I'm creating a translation system for my application based on browser language detection of the user. I need to create a class MY_Router to make Routing and accept the language parameter passed...
View ArticleGet the value
Hi guys, please tell me how to get the value form these below dates: Code: $sql = "SELECT start_date, deadline FROM projects WHERE id =7"; $result = $conn->query($sql); if ($result->num_rows >...
View Articlehow to set the url of Pagination?
in CI4, i use $pager->makelinks() it seems that the default url of pagination is "?page=" How can I define my own url style? Thanks! I prefer "controller/function/page" than...
View Articlevariables
i need to used a variable for two functions . one function needs to assign data to the variable and next function needs to read that variable. how can I do this?
View Articleabout $view->setData($data);
i have an very strange problem. $view->setData($data) and $pager->makelinks() could not be exist in same controller. I don't know why. once put them into same controller, the variable of setData...
View Articleauthentification for main folder
Hi, my website is in /var/www/website In website there is all CI code with the .htaccess include. So i would know how to set an authentification by .htaccess + .htpasswd to access to main folder...
View ArticleSMTP Email Setup and Troubleshooting
Hello, CI 3.x I have created a /config/email.php config file. I have this set: PHP Code: $config['protocol'] = 'smtp';// $config['mailpath'] = '/usr/sbin/sendmail';$config['charset'] =...
View ArticleCI 2.x->3.x file name changes cause url not work
i'm trying to upgrade CI from 2.2.6 to 3.0.0, i see that i will be changing all controller filename, E.g: old: application/controllers/land.php change to: application/controllers/Land.php it will cause...
View ArticleError in using IPv6 in session database driver MySQL 5.7
Hi! I am getting this error: Quote:ERROR - 2016-11-20 09:59:03 --> Severity: Warning --> mysqli::query(): (42000/3057): Incorrect user-level lock name...
View ArticleCode completion suggestion
Because CI uses dynamic class members for every loaded thing PHP Code: foreach (is_loaded() as $var => $class){ $this->$var =& load_class($class);} IDEA like PHPStorm have difficulty with...
View ArticleCI3 lifespan
After CI4 has been released, for how long will CI3 get bug fixes and security updates? Will there be any new features backported from CI4 to CI3?
View ArticleHelp me with "MY_Router" Controller
Hello, I'm creating a translation system "l10n" for my application developed with CodeIgniter. I need help to create a controller "MY_Router" to accept the language passed by the URL before the DEFAULT...
View ArticleStrange case sensitive problem with autoload own libraries
Try to load a library 'MY_Userbundle.php' with the autoload config. The class name of 'MY_Userbundle.php' is 'class MY_Userbundle' . When i do this in my localhost with : Code: $autoload['libraries'] =...
View Article