Hello all,
I have turned a normal PHP class into a library so I can use it in Codeigniter as a library. I can load it and call the functions I need in that class. Here is that class to help with the question.
However, there are quite a few points where I have to call functions in my class. These functions reside in the model that inst...
Hello,
I am using codeigniter and looking a way to enable directly editting of doc or xls files.
Is there any free library or something to make it possible? Or something like google docs
In google docs I think uploading files remotely from site is available only for paid and still not sure of editting too, never used google docs.
...
Hi
I exported data from php page to word document but the problm is the header is not available in all pages
I got the same problem while i am exporting the datas to pdf but i got the result for that one by using fpdf library
In pdf i got the results like this
ex page1
slno name
1 ...
Hey Guys, I’ve stucked with a problem.
Can any body help me for….. “How to use foreach() in any controller function of Codeigniter”. Actually, i’ve a piece of codes which are placed in a Controller function in whihc i’m using foreach(). Here is the piece of code…..
$this->load->model('board/dboard_members_model');
$data['query4'] = $thi...
Hi all,
I wanted to write following query through codeigniter's db helper class, guide me plz
query : SELECT * FROM table where column like binary "abc";
i tried
$this->db->select("*");
$this->db->from("table");
$this->db->like("column","binary abc");
$this->db->get();
but it produces
SELECT * FROM table WHERE column like '%binary ...
Hi friends,
I use CodeIgniter, and having trouble with hacking :( is it possible to make SQL Injection to the login code below:
function process_login()
{
$username = mysql_real_escape_string($this->input->post('username'));
$password = mysql_real_escape_string(MD5($this->input->post('password')));
//Check user ta...
I have a series of checkbox inputs and corresponding text area inputs to allow specification of quantity.
Here's what the two fields look like when the item is static (i.e. only 1):
<input type="checkbox" name="measure[checked][]" value="<?=$item->id?>">
<input type="hidden" name="measure[quantity][]" value="1" />
Here's what the inp...
I'm working with code igniter and for some reason, the url http://mysite.com/account/100 gives me a 404 error but http://mysite.com/account actualy works. Here's what my controller account.php looks like.
class account extends Controller {
function account()
{
parent::Controller();
}
function index()
{
...
I'm not getting back data from my DB like I'm expecting. I know that I can get data from the DB because I have other functions working. With this page, what I'm trying to do is the following:
If no postback, then I would like it to echo "No Category Selected"
If a category has been chosen, then I would like for it to get that data from...
Hi,
i wa trying to do mail with php codeigner, but unfortunately its not working. the error which i got was the following; somebody please help me..
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to localhost:8025 (Connection refused)
Filename: libraries/smtp.php
Line Numb...
Hi
I am exporting data from php page to word,, there i get 'n' number of datas in each page ....
How to set the maximum number of data that a word page can contain ,,,,
I want only 20 datas in a single page
This is the coding i use to export the data to word
In mysql_table.php the table for the pdf document is be generated
<?...
I'm almost losing it, i really hope someone can help me out!
I'm using Doctrine with CodeIgniter. Everything is setup correctly and works until I generate the classes and view the website.
Fatal error: Class 'BaseObjecten' not found in /var/www/vhosts/domain.com/application/models/Objecten.php on line 13
I'm using the following bo...
Hey
Can anybody suggest me a good free open source address importer which I can use in my project? Good in the sense that, it should be easy to use and integrate (using Codeigniter framework), and also lightweight.
After a long searching i’ve got one: OpenInviter. But, I don’t know how efficient it is.
...
I have a model, view and controller not interacting correctly, and I do not know where the error lies.
First, the controller. According to the Code Igniter documentation, I'm passing variables correctly here.
function view() {
$html_head = array( 'title' => 'Estimate Management' );
$estimates = $this->Estimatemodel->ge...
Ok, I followed the instructions in the example perfectly. Ultimately, pagination works, kind of.
I get all of the pages listed: 1 | 2 | > | Last. Etc.
The first one is active, like it should be. I did the querying correctly as well, because each link will result in the correct query.
However, when I click on number 2, it will show ...
I have a table that describes a variety of objects in my system (ie. umbrella, boots, satchel, whatever). Each one of these objects needs to have a distinct prevalence or incidence. For example, the umbrella is rarer than the boots. Based on those factors, I need to randomly select a single object (including a blank or 'no object found')...
Hi, when I am trying to give a relationship to user->group I get an error here is my code
<?php
class User extends Doctrine_Record {
public function setTableDefinition() {
$this->hasColumn('username', 'string', 255, array('unique' => 'true'));
$this->hasColumn('password', 'string', 255);
$this->hasColumn('em...
Currently I am creating a project with CodeIgniter that is contained within a subdirectory of my domain. For this example we'll call it domain.com/test.
I also have Wordpress installed on this domain, and all of its files are in the root. For instance, if you navigate to my domain.com then it pulls up the Wordpress blog. I currently hav...
Hi I am exporting data from php page to word,, there i get 'n' number of datas in each page .... How to set the maximum number of data that a word page can contain ,,,, I want only 20 datas in a single page
This is the coding i use to export the data to word
i got the data in word format but the headers are not available for all the pag...
I'm running Windows 7. Within, I'm running Virtualbox and Ubuntu. Within Ubuntu, I'm running Apache and using PHP codeigniter. To reference our CSS and JS files, we use this syntax:
<?php echo site_url('css/styles.css'); ?>
When viewing the site locally (within Ubuntu VM) that resolves to:
http://localhost/styles.css
So works fine....