Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,395
» Latest member: erudit Vianney
» Forum threads: 66,590
» Forum posts: 417,644

Full Statistics

Latest Threads
communication between con...
Forum: Best Practices
6 minutes ago
» Replies: 2   » Views: 106
input library insansative...
Forum: Installation & Setup
15 minutes ago
» Replies: 4   » Views: 98
how to pass array from vi...
Forum: General Help
1 hour ago
» Replies: 5   » Views: 3,224
IF as Page
Forum: Regional User Groups
3 hours ago
» Replies: 3   » Views: 127
Routing problem on Live s...
Forum: Installation & Setup
5 hours ago
» Replies: 6   » Views: 205
Better update routine?
Forum: General Help
5 hours ago
» Replies: 1   » Views: 73
How to use proxy ips in c...
Forum: General Help
6 hours ago
» Replies: 0   » Views: 23
create cron job for send ...
Forum: General Help
7 hours ago
» Replies: 8   » Views: 1,684
How to Upload Multiple Im...
Forum: General Help
9 hours ago
» Replies: 1   » Views: 57
can i update ci version U...
Forum: General Help
Yesterday, 01:35 PM
» Replies: 3   » Views: 113

  Route Confusion
Posted by: El Forum - 07-12-2007, 07:37 AM - Forum: Archived Development & Programming - Replies (6)

Please excuse me if i am being outright dumb but i just cant grasp how to setup the routes i wish.

Im very new to IC and have always struggled to get to grips with other forms of MCV Frameworks such as CakePHP and so.

I'm setting up a Controller that will handle all Static content pages in my application that do not tie in with anything.

Such as Welcome, about, contact etc...

Im struggling to setup the route correctly as i wish to have the pages on the base of the domain like http://www.site.com/about/ or http://www.site.com/welcome/

How do i go about this without setting up each one manually??

  Mysql database Connection pooling with CI?
Posted by: El Forum - 07-12-2007, 06:39 AM - Forum: Archived Development & Programming - Replies (3)

Has anyone implemented/used connection pooling with MySql through CI? Appreciate some comments.....

  URIs and optional parameters
Posted by: El Forum - 07-12-2007, 06:33 AM - Forum: Archived Development & Programming - Replies (12)

[eluser]adrian westlake[/eluser]

Just starting to write my first commercial application in CI, but have a questions regarding the segment url format as opposed to the traditional query string.

What if I have a function with two optional parameters. In other words each one has a default value if not passed.

function myFunction($param1 = "default", $param2 = "default"){


With the traditional GET method it is fine as it associates the keys and values.

But with the segment method if I passed


How would I know if the param was for the first or second optional parameter. In other words I have to pass all parameters for a function to ensure I know which is which. Does that make sense???

  Interface questions : Displaying user-friendly results
Posted by: El Forum - 07-12-2007, 05:51 AM - Forum: Archived Development & Programming - Replies (18)

Hi there !

First let me say that CI is just great to enter the MVC logic. Powerful and simple.

Then, my issue.

I'm currently designing some tools to handle data coming from a database. I was wondering if something already existed or if some reflexions were available concerning the interface. I don't know how to display queries' results in a useful yet good-looking way.

I want easy ordering (ASC or DESC), maybe filters for every column.

If anyone can bring some clues, would be greatly appreciated.

  Sessions not working as expected...
Posted by: El Forum - 07-12-2007, 01:52 AM - Forum: Archived Development & Programming - Replies (6)

Well, hello to everybody!

One more time I will need the super heroes of this forum.

All I want to do is to write a session with a language field and it doesn;t work as expected. I do exactly the example as shown at the manual. But it seems that it stores the session only from the page the session data is created and then to the next page. In the third click all session data are lost!

I am using Freak Auth LIght and DB_session class so I tried to write my session data to the database but I don't really find a way to do that. Also in my data base my session table is filled with records, Its time i click to a new page a new record is written.

Maybe some one can point me in the right direction or give me some tips?

Thanks in advance for your help

  This site sure is slooooooooooooooooooooow
Posted by: El Forum - 07-12-2007, 01:17 AM - Forum: Archived General Discussion - Replies (12)

[eluser]Chad Crowell[/eluser]
I'm totally into CI, but is it just me that has ALWAYS experieced that EVERY CLICK throughout the CI website leads to a very slow page load? This has been annoying me since I first ran across EE. Time for a server or pipe upgrade there Ellislab?

  'Array" showing up all over my app
Posted by: El Forum - 07-12-2007, 01:14 AM - Forum: Archived General Discussion - Replies (8)

[eluser]Chad Crowell[/eluser]

Notice at the top of the form the word Array? Also it shows up im my header in several places.

Anyone know why??

Here is the code that starts the form:

<?=$attributes = array('class' => 'form', 'id' => 'sellform');
echo form_open('sell/images', $attributes);?>

And the search area of the header:
<?=$attributes = array('class' => 'form', 'id' => 'searchform');
                echo form_open('search', $attributes);?>
                <?=$data = array(
                  'name'        => 'txtsearch',
                  'id'          => 'txtsearch',
                  'value'       => '',
                  'maxlength'   => '',
                  'size'        => '',
                  'style'       => '',
                echo form_input($data);?>

                <?=$options = array(
                    ''      => 'In All Categories',
                    #foreach($categories as $category):
                    #    $category->shortname    => $category->category_name,;
                echo form_dropdown('searchcat', $options);?>

                <?echo form_close();?>

Why does CI keep printing out the word 'Array'?

  URL problem when click page number
Posted by: El Forum - 07-12-2007, 12:53 AM - Forum: Archived General Discussion - Replies (2)

I'm having trouble paginating, when I click page number ( 1 2 3 > Last ›), I get 404 error. so i tried to type link "../app/0" in address bar,i get same error. If i remove number 0, the application work normally,and the page show number item what i want (per page).
here my controllers:
function index($offset=0)
// echo "$offset";
$config['base_url'] = base_url().'radio/';
$config['total_rows'] = $this->dealer->getUserCount($offset);
$config['per_page'] = PAGE_RECORD;

$this->view->set('total_rows', $config['total_rows']);
$orders = $this->dealer->getUserList($offset);
$this->view->part('content', 'radio/list.php');
$this->view->set('radioList', $orders);
$this->view->set('contentTitle', "Radio > Daftar Radio ");

function getUserList
function getUserList($user_id='', $role_id='', $offset=0)
$this->db->select('u.*, r.kode AS kode_radio')->from('smsp.users u');
$this->db->join('smsp.smsp_referer r', 'u.id=r.user_id', 'left');
$rs = $this->db->get();
$rv = $rs->result_array();

return $rv;
anyone help me..? please

  Re-populate session?
Posted by: El Forum - 07-11-2007, 06:05 PM - Forum: Archived Development & Programming - No Replies


I am using a flash uploader object to upload files in my CI app. Unfortunately, due to limitations in the flash object, the session information is not passed on to the upload script. Actually that happens only in FF, but anyways.

My question. I want to pass on the session id as GET variable to my CI upload script. I am reading out the GET vars with:


But how do I actually re-populate the session to access my session vars?

Any takers?


  Werid Database Issue
Posted by: El Forum - 07-11-2007, 04:10 PM - Forum: Archived General Discussion - Replies (2)

So I'm having some werid issues with a function. All of the code is bellow. I can explain what the freakauth stuff does if needed Wink.

This is how the table is setup: id,nick,from,subject,date,message,new

Here is my function:

function send_new()
        $data['nick'] = $this->freakauth_light->getUserName();
        $data['base_url'] = $this->config->item('base_url');
        $this->db->insert('messages', $_POST);


Here is my view:

    <?=form_hidden('id', '');?>

    <p>To:&lt;input type="text" name="nick" /&gt;</p>

    &lt;?=form_hidden('from', $this->freakauth_light->getUserName());?&gt;
    <p>Subject:&lt;input type="text" name="subject" /&gt;</p>
    <p>Date:&lt;input type="text" name="date" /&gt;</p>
    <p>Message:<br />&lt;textarea name="message" rows="15" cols="60" &gt;&lt;/textarea&gt;</p>
    &lt;?=form_hidden('new', '1');?&gt;

    <p>&lt;input type="submit" value="Send Message" /&gt;</p>

and here is my error:
An Error Was Encountered
Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from, subject, date, message, new) VALUES ('', 'Eckypro', 'CodyPChristian', 'Sub' at line 1

INSERT INTO messages (id, nick, from, subject, date, message, new) VALUES ('', 'Eckypro', 'CodyPChristian', 'Subject here', '7/11/2007', 'message here ;)', '1')

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.