So I'm setting up SVN on my home server (Ubuntu 9.1), and want the ability to view any changes made to my CodeIgniter app immediately.
So, my working copy lives in /home/myname/environments/development/appname.
My Vhost is accessible at dev.appname.myname.ca, and the config looks like this:
DocumentRoot /home/myname/environments/deve...
I just re-opened a website I'm developing, and my submit buttons are freaking out!
I really don't have any idea what happened, and rather than root around the 20+ components I've been working on, I thought I'd ask the experts first.
What can cause this? Any ideas?
...
I have a page with three forms.
I'd like to run different db calls corresponding to the button clicked.
I have a 2 lib functions. One validates, and the passes it to the _submit function...
How can I separate the _submit function based on which submit button is clicked?
...
I have search the existing question here, but haven't get the specific detail that I need, so I'm asking my own question.
I use Ubuntu Linux (current version 9.10) and use Eclipse Galileo PDT to develop web application using CodeIgniter. I can make the autocomplete worked for CodeIgniter's libraries and model using this comment in my co...
Hello.
I'm using Code Igniter to build a simple website, one thing about Code Igniter its that its pretty easy to do Rewrite Rules. But anyway, that ain't the problem.
But lets consider this situation, in this website most webpage itens, if the name its to be spelled correctly the name as special characters ( á à é è .... mostly used i...
I'm new to code igniter. I'm going to create some generic functions like random_string($length), row_color($evenStyle, $oddStyle) etc...
Where do I put these functions such that they are accessible to my controller and view files?
...
I want my error_404.php to show up in my site template views. I have extended the CI_Exceptions class (MY_Exceptions) and overridden the show_404() and show_error() methods. Now what I want to do is be able to load a view file in there. Optimally, I would like to load the _header() and _footer() methods in MY_Controller class. Is thi...
Hi... i just got this doubt about models...
This is my first 100% MVC project (kind of)... my doubt is...when ill do a join, union or whatever function with more than one table... how i do this? use the same model file of the "main table" or i need to create a new model file using the two or whatever tables??
Tkz...
Roberto!
...
Hi ..., Im trying to implement pagination using multiple searching criteria.
Supposed I Have student table. I also use pagination when the list of student displayed.
The pagination link is. site_url . '/student/page/'; so I use $config['uri_segment'] = 1;
so the pagination link will be
<a href="http://mysite/index.php/student/page/0">...
Is it possible to delete a SQL db row after a period of time?
ie. I have a row that has an expiration date and it needs to be deleted on that day?
If I'm displaying info to a user, is it better practice to just hide "expired" entries and keep the data?
...
Here is my code so far, it all works except when I try to make 'company' = $company there's something im missing, and id love to know what
if($query) // if the user's credentials validated///
{
$this->db->where('username');
$this->db->select('company');
$company = $this->db->get('user');
$data = arra...
I am using NANO editor, and moving back and forth between MVC is really painful.
i tried notepad++ but still i have to click back and forth b/t MVC
is there something like Mac's TextMate ?
...
Hi ..., Im trying to implement pagination using multiple searching criteria.
Supposed I Have student table. I also use pagination when the list of student displayed.
The pagination link is. site_url . '/student/page/'; so I use $config['uri_segment'] = 1;
so the pagination link will be
<a href="http://mysite/index.php/student/page/0">...
I've developed a website with the idea of using a single codebase for multiple sites each with their own DB. Currently one is live, with many (up to 100) to follow.
My question is about the ideal, best-practice way of managing this kind of architecture (not necessarily the easiest or most realistic, but the ideal from which I can work b...
I have the following function that checks to make sure the code entered matches one in a database.
If it does, it adds one credit to the user, and subtracts one from the corresponding row.
else if ($code_enter != NULL){
$code_check = $this->CI->db->select('code')->from('be_coupons')->where('code', $code_enter)->limit(1)->g...
Does using a PHP framework (CodeIgniter, Zend) require special server side setup? And if yes, is there a PHP framework which doesn't require that?
The intention would be to use a hosting server which supports plain PHP only (no framework installed - if that makes sense), and use the mentioned framework on the development machine only, w...
I am trying to simplify the process of inserting data into my database, so I have constructed a model that handles the variable extraction and data inserting.
I understand that this model embodies a function, and then you call this function (such as /controller/model) and pass the relevant data through the model for processing. However,...
I'm developing from my Windows laptop but need to test my development on my shared Linux hosting. I have thrown together the following in place of the normal $application_path = "application"; line.
$env['laptop']['ip'] = '127.0.0.1';
$env['laptop']['host'] = 'MATT-WINDOWS7';
$env['laptop']['path'] = 'private';
$env['mattpotts']['ip'] ...
I need the functionality of a radio selection, without the style.
How can I style something (anything) to work like a radio button, and capture the input in a form?
...
In the codeigniter manual writes the following.
$this->db->select() accepts an
optional second parameter. If you set
it to FALSE, CodeIgniter will not try
to protect your field or table names
with backticks. This is useful if you
need a compound select statement.
$this->db->select('(SELECT SUM(payments.amount) FROM paym...