Hi!
I'm relatively new to CodeIgniter and the MVC philosophy in general, so I'm trying to clarify this before I make any bad habits.
I have an application that registers. Users. Currently, the flow is like this:
User navigates to the "somewebpage/register", which loads the "register" function of the controller
Controller checks to se...
I have local access to files, which I need to get their MIME types. Working in WAMP/LAMP, CodeIgniter, and Zend libraries. What's the best way to get MIME type information?
...
Hi,
I want to send emails using codeignitor email library.My controller is as follows;
Class Users extends Controller
{
function users()
{
parent::Controller();
$this->load->library('email');
}
function testmail()
{
$this->email->to('[email protected]');
$this->email->from('admin@gai...
Am doing a contact management site in codeigniter, i have a function which delete the contact based on id.
For example the page will have all contacts listed. And each contact will have a link saying delete near it. The link will be to the function passing the id, like:
www.site.com/index.php/action/delete/23
So i want a confirmation...
I want to direct viewers to a location on a page with something like mydomain.com/page.html#intro.
How do I specify it in codeigniter?
...
My company is looking at various PHP frameworks to build a customer's site. This is a shop that has some legacy in-house frameworks and we're trying to move away from that. In my spare time, I've coded in CodeIgniter and dabbled a bit in Kohana. I have yet to use a CMS like Joomla or Drupal, but I recognize that they're built using an MV...
I am new to Code Igniter and I wish to know if there is anything that works like MasterPages do on .NET.
Also i was wondering where should i keep my public files, like scripts, styles and images.
Greetings, and Thank you in Advance
...
Say I have a controller, "Articles" but I want it to appear as a sub-folder (e.g. "blog/articles"), I can add a route like this:
$route['blog/articles'] = 'articles';
$route['blog/articles/(:any)'] = 'articles/$1';
This works fine, the only problem now is that example.com/articles and example.com/blog/articles both use the Blog contro...
hello, basicly I would like to read url params in an array so finding params don't depend on their place in url
I have a url for seach with controller/action/paramA/valueparamA/paramB/valueparamB
theses params are optional : I have direct url with search params inside
to read params from url we have to use action(valueparamA, valuepara...
Having a problem with image manipulation in codeigniter - it bombs when I get to $this->image_lib->resize(). I just can't see the error.
Code:
$imagemanip = array();
$imagemanip['image_library'] = 'gd2';
$imagemanip['source_image'] = '/resources/images/butera-fuma-dolce.jpg';
$imagemanip['new_image'] = '/resources/images/thumb_bute...
In my htaccess file my ErrorDocument 404 statement is not redirecting to index.php. Instead, i'm getting a regular 404 error. This is a regular apache installation.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Removes access to the system folder by users.
#Additionally this will allow you to create a System....
I need a cron job to check email accounts and download certain attachments. This cron job will be running every minute. My problem is that when the first script is downloading email attachments, a second (or third or fourth ...) script will most likley be running alongside the previously executed script. The problem is that I am not sure...
Hello there I am having some thoughts on my file structure in codeigniter.What I'm doing right now is creating a folder with the project I'm developing for and name it let's say "myProject"
then I put my codeigiter folder inside that file.And then everything is done normally as by creating a class called myProject again on the controller...
I want to re-populate (i.e refill) values posted from a select form field after validation. I know codeigniter user guide proposed using set_select() function but their example from the guide assume you've hard-coded (in HTML) the array of values for the 'select' form element. In my case I used the Form Helper and my select field values ...
The domain I'm using is
->http://www.domainname.com/admin/users/edit/1
class Cal_Admin extends Controller {
function Cal_Admin()
{
parent::Controller();
$this->load->model('events/model_events');
$this->load->model('users/model_users');
}
function index()
{
$data['events'] = $this->model_events->get_home_entries()...
hi to all
I have a problem with my website. I don't why the index.php was being inserted with the script below. This index.php is part of codeigniter, the framework that I was currently used. Is this inserted thru accessing ftp or thru code. After I was deleted this script I noticed that on the lower left of my browser there is another ...
I need a list of all the files (and associated file sizes) on an FTP server. I can get a list of files using CodeIgniter’s FTP class, but no idea how to get the file size. How do I get the file sizes? Thanks.
...
HI guys,
I building an app using CodeIgniter and I came to a problem. I have a form with a textarea in which the user puts his text using a simple editor powered by jwysiwyg.jquery. The problem is that is need to clean this input of garbage code (link the one that comes with pasting directly from Word).
The form is validated with the ...
Hi. I've started a CI project and I'm going to use it with Doctrine, there is benchmarking system for the latter and I'd like to remove the ability to use native CodeIgniter DB class, since it won't be benchmarked. I though about simply removing the corresponding files, but I'm afraid it could cause CI errors in other places. How can I r...
This below code is not applying the class mentioned in the p tag in chrome but working in IE, Firefox
<p class="p_error"><?php print $this->validation->lastname_error;?></p>
Here CSS ->
.p_error{
color:red;
text-align:left;
font-size:12px;
}
Any hint or reason why its not working?
From the chrome output ->using inspect element ->
<p cl...