I’ve read the official documentation and all they say is that I should have a error_reporting() function located at the top of your main index.php file. But I don’t have index.php file in my project. My base controller is called core so to get to main index I go to www.mysite.dom/core/. So I guess this error reporting function should be
Tag: codeigniter
Codeigniter Environment setting
Codeigniter development environment is not setting. I always use this code in index.php. but i don’t understand why i am getting “production” as output while i am working on localhost. Answer That’s strange. It did the exact same thing for me. Could you try something like this?
cronjob not running with codeigniter
I am sure the answer is right in front of me, but this is driving me crazy. I have searched high and low for the answer and can’t find it. Essentially I am trying to run a script through a cronjob …
How to set cron job url for codeigniter?
I am using Codeigniter for my website. I have to use cron job to run one of controller function. I am using route in website. And also I am not using index.php in url. e.g. http://my-domain.com/…
How to delete cookie on codeigniter
I don’t know how to delete a cookie. I want is when I submit a form. The cookie is also delete. I try the delete_cookie(“name”) but is not working. I think because the cookie I created by javascript. Please check my code to fix this problem. This is my sample text field: and this is the javascript Answer Using Codeigniter,
Codeigniter $this->email->send() not working while mail() does
I can’t figure out why if I try to use the CI Email Class it doesn’t send emails, while if I use the native PHP mail() Class works. Has to be noted that sometimes I get “email sent” while is not …
Codeigniter when i click delete i want pop up notification if if click yes or not
Model: function delete_exchange($ExchangeRateId) { $this -> db -> where(‘ExchangeRateId’, $ExchangeRateId); $this -> db -> delete(‘exchange_rate’); } Controller: function …
codeigniter, result() vs. result_array()
I use both result() and result_array(). Usually i like to get my result as array thats why i use result_array() mostly.. But i want to know which is the better approach that i should follow, Which one of them is more efficient to use in regards to performance? Here is the Example i am talking about in codeigniter queries or
Convert array objects to string and separate the values
I have the following result What i want is to separate the object array values using a comma and return as a string, so as to have this result: I have tried the following This return : How best can this be achieved? Answer You are missing the fact that you are dealing with an array of objects. Looks like
PHP Regular Expression for Bengali Word/Sentence
I am developing a web application using PHP 5.3.x. Everything is working fine, but unable to solve an issue due to regular expression problem with Bengali Punctuation. Following is my code: Whether I pass Bengali word or not, it always returns false. In JavaEE application I used this Regular Expression But in PHP it not working! Anyways how do I