->insert losing hash chars
In CI4 I insert a hash $2y$10$trkKDMz5PR6xv0tV2UUoOeGpsIwMi5DEt6Hfvmc5RjcIsp2zeNXD. When I look in the db it is y$trkKDMz5PR6xv0tV2UUoOeGpsIwMi5DEt6Hfvmc5RjcIsp2zeNXD. Here's the code: } else {...
View ArticleCall model from MY_Controller
Is it OK to call a model from MY_Controller? This means that all controllers can call this model. Is this OK or am I breaking a "heavy rule" here?
View ArticleThe best login and authorization concept
I'm trying to make login and authorization for CI4 applications. I would like to make my own system and I am more concerned with the general concept which will be most suitable for CI4. From what I...
View ArticleMake the program more correct
Good day! This is a simple view of my program. I have many controllers that look something like this PHP Code: class Home extends CI_Controller { private $data; public function __construct() {...
View ArticleLanguage key values can't be seen in template parser loop
I have a problem to read global variables (like lenguage array keys) in the loop useing Template parser.. example: Model_news.php for action Edit return $news data, basic and multi-language for...
View ArticleResize with crop and spaces
hi, i want to ask how can i do like this through codeigniter "Crop keep proportions but outputting a fixed size Image is cropped as above, but the output is padded to fit the specified size. Please...
View Articleretain the values of a registration page after captcha mismatch
After captcha mismatch, how to fill/retain the values of a registration page? Controller code is Code: if (!$captcha_text_matched) { $this->session->set_flashdata(...
View ArticleCI_Session_redis_driver contains 2 abstract methods
On huge loads we are getting the below error on creation session on Redis server. Severity: Error --> Class CI_Session_redis_driver contains 1 abstract methods and must therefore be declared...
View ArticleSession Timeout
Suppose a loggedin user sitting idle for 1 hour.After that if he/she click on any link then logout controller will be called and redirect to login controller.Then how to implament it? Actually how to...
View ArticleDelete cascade ?
Hello, I have an article table and a comment table. I hope that the comments of the article also disappear, how to do? Thank you in advance
View ArticleCodeIgniter3 and tcpdf
Hello guys I have upgraded my CodeIgniter 2.1.3 project to CodeIgniter 3.1.4. I am facing problem in generating pdf files in the new version whereas I could do it in CodeIgniter 2.1.3. Now only a blank...
View Articleis loading through static class is bad idea?
hi i use following class to load the views like Load::view("welcome.php"); is it bad idea? or its fine? i am not sure for using lots of instances? <?php Class Load{ static function...
View ArticleHow does a form validation know about the form?
I might have missed something fundamental here! I was looking at the CI tutorial for form validation (https://www.codeigniter.com/userguide3/l...n-tutorial) and I can't work out how the rules know...
View Article[Tutorial] Create a Simple Template Engine in CI4
I just posted a new blog post that takes a quick look at how you might start creating a template engine in CI4 using the Parser. This is just one possible implementation, and is very basic in what's...
View ArticleDisplay result by date and or reply date
On my topics list I can display the latest topics by there date_created. But lets say if there has been a topic created example two days ago with no reply and then some one reply's to it. How to make...
View ArticleStop controller at this point, run other method
In index of my Main.php controller I have something like this: PHP Code: $check = $this->Logier->check_address($url);if( $check === 1 ){$this->show_page($url);}elseif( $check === 2...
View ArticleCodeigniter custom route and parameters passed via url.
Hello guys, I have a problem with parameter passed to controller function: PHP Code: <?phpclass App extends CI_Controller { public function __construct() { parent::__construct(); }...
View ArticleStop controller at this point, run other method
In index of my Main.php controller I have something like this: PHP Code: $check = $this->Logier->check_address($url);if( $check === 1 ){$this->show_page($url);}elseif( $check === 2...
View Article"Unable to locate the specified class: Session.php"...
Hi Guys, After some years developing with CI i'm here to write about an issue i experiencing with v3.1.4 Starting with my code: application/core PHP Code: class FF_Controller extends CI_Controller{...
View ArticleUnable to load the requested class: Url
hi , my codeigniter version is 3.1.4 , in autoload i have : Code: $autoload['libraries'] = array('url','form'); but i have this errors . HOw can i solve ?
View Article