Hi,
How can I retrieve the current date and time within a view in Codeigniter?
Thanks.
EDIT : What I'm trying to do is to subtract the current date/time from posted date/time and display it as "posted x days ago"
...
Hi,
Is it possible to sort the values retrieved from MySQL, in say descending id?
Thanks.
...
Hi,
I have default values set on form inputs and the form submits because the onlt rule I need to apply in this case is trim|required. How can I check if the submitted value is equal to the default and display an error?
Thanks
...
Hello.
I have a problem with CodeIgniter .htaccess file and hope that somebody can help me!
I don't know regular expressions or how to use the .htaccess, I'm very new with this things!
My Problem is:
I have this structure of files (multi application):
- application
- admin
- site
- system
- index.php
- admin.php
And this .h...
I have this controller set up for a login:
<?php
class Login extends Controller {
function __construct() {
parent::Controller();
$this->form_validation->set_error_delimiters('', '');
$this->output->enable_profiler(TRUE);
}
function index(){
redirect('/login/terminal');
}
function ...
Hey,
I'm looking to track users average time on a website (in the same way that Google analytics does) for internal administration.
What's the easiest way to do this?
...
Hello,
I try to make an app. I'm using Ion Auth for it.
What I mean is I want to make use of the library.
Current structure of the app:
Posts -ID(pk), Title, Desc,
post_author, post_date
Comments
-Comment_id(pk), Comment_post_id, comment_author, comment_content
Backend
Let's say my name is Lisa, Lisa submit a post. It uses the...
Hi,
What does the trim form validation rule actually do and when should I use it?
Thanks
...
Hi guys,
I'm trying to implement a search for my project , but i can't figure it out how to use ajax and get data to the view, can some one help me with this?
(this is my first project using codeignter and jquery)
regards,
Rangana
...
Hello
i am going to develop a social networking(like facebook) website for a company for internal
use only but i am confused between Drupal and codeigniter that which one i should use.
so please suggest me that which one is better to make a robust and high quality social
networking website in short time period.
My website included...
Dear Programmers,
I want to make a website that would be like craiglist.org. If you go the site and click on any of the city it will redirects you to the city subdomain. And after that anytime you go to the craiglist.org it will redirect you to the city subdomain. So I need to keep the city/country name to my client's machine.
At first...
In codeigniter I am trying to make an application which will accept a URI of an arbitrary length, such as:
http://example.com/files/some/arbitrary/length/uri
In the routes.php file i have the following rule to get the first URI segment:
$route['files/(:any)'] = "files/uri/$1";
How would I be able to get the rest of the address as a...
Hi,
I have a form which has 5 file input fields, all works fine with my CRUD methods if the file field is not empty, however the client now wants to set some of the fields to be non mandatory.
This is how I am trying to do it in my code, the problem I am encountering is declaring a null variable(to insert a blank value in the respectiv...
Hey, i've created a few helpers to catch any php errors and then send a curl post which will create a ticket with my bug tracking software.
But i can't get it to work with code igniter.
Here is my code.
<? function phpErrorHandler($errno, $errstr, $errfile, $errline, $errcontext){
//If is a notice do nothing.
if($errno == E...
To preface this, let me says that I'm.. 'newish' to jQuery. I have the concept and most of the usage downpat, but I'm not perfect with all these brackets and functions yet.
Hence why I'm probably making an amateur mistake here. I am using the following code to submit some data, move to the next section of the page and then attempting to...
I am using codeIgniter and I am trying to pass an array of data. I have written like this:
$data['username']="Dumbo";
I also wrote this:
$data['shouts']=$this->Musers->getShout(); // retrieve data from table
Then I write:
$this->load->view("welcome_message", $data);
In view page, I wrote:
<?php echo $username;
foreach ($...
I am creating a modular CMS using the codeigniter framework, the main asset directory is:
/public/assets/[admin|public]/[css|images|js]
my current htaccess routes everything except requests starting with 'public' to the index.php file.
The new module system allows each module to have its own assets which would be located at
applica...
I am working with jcrop and codeigniter to allow users to crop images that they upload, I want to the image t crop to a size of 90x60 but what ever I try nothing seems to work, my current code looks like this,
CONTROLLER
function save_crop() {
$this->load->library('image_lib');
$config['image_library'] = 'gd2';
...
A drop-box directory for image files has collected variants by letter-case, for example:
Bonsai.jpg, BONSAI.jpg, Bonsai.JPG, bonsai.jpg
I am making a web app using CodeIgniter to manage these documents on a remote server. This means using
file_exists() or is_file() to verify
a file's presence
HTML img tag to display the file grap...
How to remove the controller/method for cleaner URL in codeIgniter.
The original url is below
www.mydomain.com/controllers/method/variable
and I want my url look like this
www.mydomain.com/variable
or
www.mydomain.com/friendly-url-description/5
where 5 is key or id of the table, and the friendly-url-description is description o...