Welcome Guest, Not a member yet? Register   Sign In
  Question about 404
Posted by: El Forum - 07-18-2008, 08:38 AM - Replies (1)

[eluser]Asinox[/eluser]
hello, i hav another question about CI, my local url for my project is http://localhost/ci, is fine, but http://localhost/ci/index.php is fine too, but how ill redirect if somebode try to go to http://localhost/ci/pagesX and this page dont exists?

Thanks


  Multidimensional arrays
Posted by: El Forum - 07-18-2008, 08:20 AM - Replies (9)

[eluser]PvOostrom[/eluser]
Hello there,

I have been struggling with this one for quiet some time now, but still can't get it done somehow in CodeIgniter.

Any idea on how, and if it is even possible to generate the following array from my database:

Code:
- [0]
   -[client_details]
          -name
          -adress
          -etc
   -[client_sites]
          -[0]
               -name
               -url
               -ftp
               -etc
          -[1]
               -name
               -url
               -ftp
               -etc
          -[2]
               -name
               -url
               -ftp
               -etc
   -[client_contacts]
          -[0]
               -firstname
               -lastname
               -address
               -phone
          -[1]
               -firstname
               -lastname
               -address
               -phone
- [1]
   -[client_details]
          -name
          -adress
          -etc
   -[client_sites]
          -[0]
               -name
               -url
               -ftp
               -etc
          -[1]
               -name
               -url
               -ftp
               -etc
   -[client_contacts]
          -[0]
               -firstname
               -lastname
               -address
               -phone
          -[1]
               -firstname
               -lastname
               -address
               -phone
          -[2]
               -firstname
               -lastname
               -address
               -phone

Any idea if there is some kind of libary or function for this available in codeigniter?

Thanks in advance


  (Deleted)PHP Multi-Loops Need Assist
Posted by: El Forum - 07-18-2008, 08:18 AM - Replies (1)

[eluser]zimco[/eluser]
Deleted--no longer want to look at this code ever again.


  ajax forms
Posted by: El Forum - 07-18-2008, 08:00 AM - Replies (2)

[eluser]xpix[/eluser]
Hi all,


Is there a theory on how to validate ajax loaded forms in codeigniter.

Thx


  JS problem
Posted by: El Forum - 07-18-2008, 07:38 AM - Replies (3)

[eluser]Mitja[/eluser]

Code:
<tr>
<td class="arrangementPluspayments">
<table class="arrangementPluspayment">
<tr><td>Fotka: &lt;?php if (isset($error_pluspayment)) echo $error_pluspayment;?&gt;&lt;input type="file" id="file" name="pluspayment_title_photo" /&gt;&lt;/tr>
<tr><td>Opis: <br />&lt;textarea name="pluspayment_description"&gt;&lt;/textarea></tr>
</table>
</td>
</tr>
<tr><td><a href="[removed]addArrangementPluspayment()">[+] dodaj novo</a></td></tr>

JS code

Code:
var number = 1;
function addArrangementPluspayment() {
var pluspayment = $(".arrangementPluspayment:first").clone(true);
$(pluspayment).children().children("input").val("");
$(pluspayment).children().children("input").name = 'pluspayment_title_photo' + number;
$(".arrangementPluspayments").append(pluspayment);

number++;

}


  domxml issue
Posted by: El Forum - 07-18-2008, 07:26 AM - Replies (1)

[eluser]nirbhab[/eluser]
domdocument::domdocument() expects at least 1 parameter, 0

guys i am getting this error, on my script, when i went for php info.
I found domxml enabled, could not get any more help!
Please thanx in advance!

I have PHP Version 5.2.6. XAMPP latest.
What should i do?


  Default value is not available
Posted by: El Forum - 07-18-2008, 05:49 AM - Replies (1)

[eluser]Unknown[/eluser]
Hi,

I am using codeigniter framework and want to obtain DEFAULT value for a column in mysql database for a table.
In this regard i am using function field_data() .
I am calling a function like this :

$fields = $this->db->field_data($table);

here $table is the name of the table .

This function------field_data($table) -- in tern calls the function below

in from the directory : codeIgniter/system/database/driver/mysql/mysql_result.php

function field_data()
{
$retval = array();

while($field = mysql_fetch_field($this->result_id))
{
$F = new stdClass();
$F->name = $field->name;
$F->type = $field->type;
$F->default = $field->def;
$F->max_length = $field->max_length;
$F->primary_key = $field->primary_key;

$retval[] = $F;
}

return $retval;
}

Here i get all the attributes of a column like (column name, type ...etc) but i did not get default value.

Please help me to gid rid of this problem.

Regards
Alok


  Resize image only when it is too big
Posted by: El Forum - 07-18-2008, 05:28 AM - Replies (1)

[eluser]Unknown[/eluser]
I want to resize image only when it is to big, and leave it unchanged, when width and height are proper. How can I do this using CI Image library?


  HMVC - Calling view (and other resources) that is located in another module
Posted by: El Forum - 07-18-2008, 04:08 AM - Replies (5)

[eluser]ckissi[/eluser]
Hello,

I need to call view that belongs to other module .so e.g.

I want to call /modules/blog/views/view_detail.php from /modules/news/views/view_news.php

How can I do that ?

Also ... In global... how can I load resources from module if those belongs to other modules ?
I mean views,models or controllers..

Thank you in advance.


  CI functionality from outside
Posted by: El Forum - 07-18-2008, 03:46 AM - Replies (2)

[eluser]Unknown[/eluser]
Can i use some of the CI functionality from outside the framework , for instance can i use/create CI sessions from external scripts ?


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

Username
  

Password
  





Latest Threads
SQL server connection not...
by falagar2k
1 hour ago
Validation | trim
by Gary
1 hour ago
Problem with session hand...
by Julesb
2 hours ago
External script access to...
by PomaryLinea
2 hours ago
Is it possible to go back...
by Bosborne
3 hours ago
VIRUS reported after Chro...
by InsiteFX
7 hours ago
Codeigniter4 version 4.5....
by kenjis
Yesterday, 04:10 PM
Cannot access protected p...
by xsPurX
Yesterday, 02:10 PM
Update to v4.5.1, same us...
by xsPurX
Yesterday, 08:31 AM
How to use Codeigniter wi...
by kenjis
Yesterday, 05:06 AM

Forum Statistics
» Members: 85,462
» Latest member: webskittersltd
» Forum threads: 77,582
» Forum posts: 376,014

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB