Welcome Guest, Not a member yet? Register   Sign In
  enabling database just gives a blank page.
Posted by: El Forum - 10-18-2007, 04:04 PM - No Replies

[eluser]lebe0024[/eluser]
I triple checked my db parameters. My db server is running. CI doesn't report any sort of error.

I can access mysql using my command line. But CI seems to just exit out.


  getting id of just inserted record??? [solved]
Posted by: El Forum - 10-18-2007, 02:32 PM - No Replies

[eluser]mk3[/eluser]
Have a subtle question about codeigniters db class. I need to get id number after insertion. when saying id I mean Index with autoincrement. is this posible to do without queries?


$this->db->insert();
and now I need to get index of inserted entry.

[edit]found solution only 5 threads below take a look here:Thread.[edit]

Sorry for this my post


  I'm tasked with using relative file referencing. Is that even possible w/ CI??
Posted by: El Forum - 10-18-2007, 11:32 AM - No Replies

[eluser]Unknown[/eluser]
Since CI requires slash notation (www.x.com/index.php/a/b/) and URL params also use slash notation (www.x.com/index.php/a/b/c/d/, where c and d are url input parameters) it's totally killing my web page's ability to properly resolve to images. In other words, my web pages refer to images like this:

Code:
<img src="foo.gif" />

Lets imagine that my image appears properly on this page: "www.x.com/index.php/a/b/"

that's great. Now, if I pass a URL parameter (www.x.com/index.php/a/b/c/) my images won't load.

Please note that I must use *relative* file referencing, not absolute. In other words, I am not able to use the following construct:

Code:
<img src="/foo.gif" />

Can someone please help?

Thank you!
Jon


  URL parameters: Why difficult / impossible with CI?
Posted by: El Forum - 10-18-2007, 11:28 AM - No Replies

[eluser]Unknown[/eluser]
I'm writing an application that must take in a few parameters from the URL. That means I must accept them as traditional name/value pairs. Example:

myfile.php?name=jon&color=blue

The end user may want to pass me a few more name/value pairs too.. but the other ones are optional.. for example:

myfile.php?name=jon&color=blue&age=55&state=CA

It seems like code igniter requires me to use slash notation. What's the correct way for me to pass this stuff with CI's slash notation so that the variables are accessable by their names. For example:

$_GET["state"]

Thank you!
Jon


  get insert id - SOLVED - this->db->insert_id()
Posted by: El Forum - 10-18-2007, 11:10 AM - No Replies

[eluser]FuzzyJared[/eluser]
Is there a function for getting the the id of the insert that you just performed?

I am doing a multipart application, and need to get the insert id from one insert before I perform the next one.

I have looked around for this, but I am unclear if this exists within the db class or if I would have just do a sql query by hand.


  Problem with Download
Posted by: El Forum - 10-18-2007, 10:46 AM - No Replies

[eluser]Unknown[/eluser]
Is there a problem with the CodeIgniter 1.5.4 zip? I can only download 145K of the file.

Jim


  Including calendar template throughout multiple controllers
Posted by: El Forum - 10-18-2007, 09:52 AM - No Replies

[eluser]mrtopher[/eluser]
I'm using the CI Calendar library and things are working fine. Only thing is, I need to display the calendar is a couple of different places. I have created a calendar template, as outlined in the documentation, but now I'm trying to find a way to include that template throughout the controllers that need it.

I was looking at the code behind Bamboo Invoice and it looks like they do something similar with including common validation by putting into a file within views and then including it with the following:

Code:
$this->load->view('custom_validation/clients_validation.php', '', FALSE); // field validation

But when I do that with my calendar template it doesn't seem to work. Anyone have any ideas on how I can include this calendar template throughout multiple controllers?


  [image] gd i bmp
Posted by: El Forum - 10-18-2007, 08:35 AM - No Replies

[eluser]Unknown[/eluser]
Hello,
I have problems with GD library and BMP files.

Is it possible to resize bmp with GD?


  _sanitize_globals() causes problems with ExtJs?
Posted by: El Forum - 10-18-2007, 08:31 AM - No Replies

[eluser]Unknown[/eluser]
I am layering ExtJs on top of CI. So far so good. However when I do an XmlHttp request out of ExtJs using POST vars it chokes. The error I get is

Quote:Fatal error: Call to a member function on a non-object in
/usr/local/apache/ssldocs/intranet2/system/libraries/Input.php on line 120

I can get the error to go away if I disable _sanitize_globals altogether although it's not ideal. I've studied a phpinfo() call on this request and I do see that ExtJs has numerous request vars:

_REQUEST["ys-ext-comp-1012"]->'o:collapsed=b&#x3A;0'. If it is choking on these characters, why isn't it issuing an error call rather than just dying? I don't want to disable the entire function due to this. Any clues?


  [solved] MySQL date manipulation
Posted by: El Forum - 10-18-2007, 08:11 AM - No Replies

[eluser]obiron2[/eluser]
Quick question.

If I have object properties which are dates in MySQL format - =>string(10) "2007-10-01"

What is the fastest way to add 1 to the date and then split it into year month day.

Thanks in advance.

Obiron


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

Username
  

Password
  





Latest Threads
hot-reload side effects s...
by grimpirate
2 hours ago
Setting baseURL in Regist...
by grimpirate
Yesterday, 02:20 PM
CRUD Code Generator
by DeanE10
Yesterday, 05:31 AM
CodeIgniter.com - Report ...
by Harry Lyre
05-14-2025, 04:26 AM
Missing closing bracket w...
by abf
05-13-2025, 07:27 PM
Update from 4.6.0 to 4.6....
by FlavioSuar
05-13-2025, 04:17 AM
Sessions old files are de...
by InsiteFX
05-12-2025, 10:30 PM
Ajax post failing with Ty...
by PaulC
05-12-2025, 12:23 AM
intermittent smtp failure...
by InsiteFX
05-11-2025, 11:30 PM
MVC vs MVCS vs CodeIgnite...
by FlavioSuar
05-10-2025, 10:33 AM

Forum Statistics
» Members: 146,396
» Latest member: qq88marketing
» Forum threads: 78,390
» Forum posts: 379,459

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB