Welcome Guest, Not a member yet? Register   Sign In
  Finally, my first site submission! Cheers!!
Posted by: El Forum - 10-09-2007, 08:12 PM - No Replies

[eluser]stevefink[/eluser]
Wow, I feel like I just gave birth.

So there's certainly some bugs left which I'm tweaking out, but I've finally delivered not only my first web application -- but also a Code Igniter powered one!

A little background and some words of inspiration. On resume, I'm a systems administrator / network engineer. I was recently approached by an individual I went to highschool with that just remembers me being a typical computer geek and asked me if I can program. I told him I'm up for any challenge and alas the following was born:

http://www.f1autoimports.com

I've always had a background in programming with my CS education and ofcourse, writing automated scripts in any systems/network environment I've been thrown at, mostly perl/bash based.

Let me tell you, never have I had more fun before, despite all the cross browser frustrations when writing front-end code, than doing web development. I'm slowly switching my career to doing development full time and hoping I have the opportunity to code more sites. The design here has been mostly put together by a colleague of mine -- I did all of the javascript/PHP/database design, he did 90% of the CSS/HTML, I did the other 10%.

Most of the "juice" for this site is in the administrative lounge. For obvious reasons I can't deliver f1auto's, but I do have a demonstration site up anyone can login to and have fun with at:

http://devel.phpgeek.org/console
login: admin
pass: f1auto

There's a mixture of jQuery+ExtJS objects floating around the site. This thing also pushes all of this companies inventory AUTOMAGICALLY every morning through a cron job to autotrader.com and cars.com. They no longer have to put in their inventory manually!

I plan on writing an eBay extension soon as well using their API.

Wow, there's still a lot of room for improvement. But I'm excited as hell. Nothing like getting paid to do what you love. I can't wait to be doing this full time.

Leave some love! :-) If you've got hate, leave it also, it'll give me more inspiration to work harder on bug fixes and my next project. :-)

-- Steve Finkelstein
zuez on EFnet / FreeNode IRC


  Cross Site Request Forgeries
Posted by: El Forum - 10-09-2007, 07:32 PM - No Replies

[eluser]schnoodles[/eluser]
Hello i was wondering if CI has anyway of stopping CSRF ( Cross Site Request Forgeries ) on sites, i know of the method with having a hidden input field on every form you have on your site, but the problem is my site is nearly finished and has ALOT of forms, i kind of dont want to go back and forth rewriting them all.

Does anyone use another way, is there a plugin for CodeIgniter i could use?

How does everyone get around this?


  A little "bug" on the documentation about rewrites
Posted by: El Forum - 10-09-2007, 05:48 PM - No Replies

[eluser]Unknown[/eluser]
Hi there. I'm new to CodeIgniter (sorry for not doing a proper presentation on the appropriated forum, i'm too lazy for that Smile), and as i was starting out i found something which i consider a little "bug" on the documentation.

Not that much of a bug, consider it more as a suggestion.

On the "CodeIgniter URL's" section, on "Removing the index.php file" it should be added what's on the config.php on the $config['index_page'] comment:

Quote:If you are using mod_rewrite to remove the page set this
variable so that it is blank.

I actually found it quickly but i believe some people might loose a few minutes trying to figure out why mod_rewrite isn't doing what it should.

Hope i might've been of some help Smile


  Increment Variable in View
Posted by: El Forum - 10-09-2007, 05:37 PM - No Replies

[eluser]n00bPhpCoder[/eluser]
<?php foreach($articleEntry as $myarticle):?>
<h3><span>&lt;?=$myarticle->title;?&gt;<br/>(&lt;?=$myarticle->author;?&gtWink on
&lt;?=$myarticle->dateposted;?&gt;</span></h3><br/>
&lt;?=auto_link($myarticle->content);?&gt;<br/>
&lt;?php endforeach ?&gt;<br/>

Hi that is a code from my view. I want to increment a counter on every loop can i do that? It says variable is not defined since variables are passed from controller to view right? Is there a way i can do it like this?

&lt;?php foreach($articleEntry as $myarticle):?&gt;
&lt;?php
if($ctr==5){
?&gt;
HTML Here
&lt;?php
}
?&gt;

<h3><span>&lt;?=$myarticle->title;?&gt;<br/>(&lt;?=$myarticle->author;?&gtWink on
&lt;?=$myarticle->dateposted;?&gt;</span></h3><br/>
&lt;?=auto_link($myarticle->content);?&gt;<br/>
&lt;?php
$ctr++;
?&gt;
&lt;?php endforeach ?&gt;<br/>

is this possible?


  unable to connect to database
Posted by: El Forum - 10-09-2007, 04:23 PM - No Replies

[eluser]Unknown[/eluser]
i am using the following function to initialize db:

Code:
$this->load->database();

application\config\ files well defined with connection strings

when i execute:
Code:
$this->db->insert('blog', $data);

i get an error msg:

Quote:A PHP Error was encountered
Severity: Notice

Message: Undefined property: Blog::$db

Filename: controllers/blog.php

Line Number: 75

Fatal error: Call to a member function insert() on a non-object in D:\1wwwroot\system\application\controllers\blog.php on line 75

what should i do
thanks in advance


  Which template system should I use ?
Posted by: El Forum - 10-09-2007, 03:52 PM - No Replies

[eluser]miau[/eluser]
Hello,

I'm about to start a new project and I need to choose a template system for it.
I used Template Parser Class from CI and it was fine, but now I'll need some more functionality, like simple template logic:

Code:
[this is page template]
<b> blabla </b>
{if logged_in} Hello, {user} {else} Please login {endif}
...

I know smarty can do that. Anybody tried to use smarty with CI ? How about speed?
Or is there any other lib which can do that?

Thanks!
miau

ps. I don't want to use CI views with PHP code fragments, because it can easily lead to mess in templates. specially in teams Wink


  Can we embed HTML Table Library functions in our Form Helper Files located in the helper directory?
Posted by: El Forum - 10-09-2007, 03:25 PM - No Replies

[eluser]Unknown[/eluser]
Can we embed HTML Table Library functions in our Form Helper Files located in the helper directory?

Thanks in advance
Amir


  Any iphone apps?
Posted by: El Forum - 10-09-2007, 02:21 PM - No Replies

[eluser]mohrt[/eluser]
I'm not sure if there are any iPhone apps running on Code Igniter out there yet, but we threw one up on Motortopia. It is an auto lease calculator. Although it probably works ok in a normal browser, it looks and works much better on an iPhone. Smile

http://www.motortopia.com/mobile/lease


  HTTP request failed! 404 Not Found - But it's there
Posted by: El Forum - 10-09-2007, 02:20 PM - No Replies

[eluser]Muppit[/eluser]
Hey guys, I'm pretty new to the idea of this framework, so working few a thru teething issues, forgive the ignorance if I'm way out on logic and sensible problem finding here, but this issue has been doing my head in the last 3 days and search has turned up nothing...

The problem is I've set up FCKEditor to work within a simple CMS I'm building, and I've had great success locally, integrating the required files, done both thru the traditional method and via the inclusion as the editor as a library using form_fckeditor() function. They've both worked brilliant.

However, since shifting from local to remote [site is currently posted on the back of my own to demo to client] it's throwing a 404 Not Found error, yet if I copy/paste the URL of the 'unfound' file from the error message into it's own browser window it's there, live and kicking.

What am I misssing? has anyone else had this problem before? I've tried everything, from base_url(), to PHP's own server path 'discoverers', to using a straight cut server path and it STILL doesn't want to take it...I'm starting to wonder if it's my PHP code, or the setup on our server, but I *can* *not* find the problem and client is getting a little impatient.

The URL is here, note it's the beginnings of my CMS, but take a look at the 'lost' URL, copy & paste it and you'll see FCK's own php files being hit and outputting the messages there. Any ideas on what I'm missing??

Lost File....

Thanks,

G

******************* EDIT
After more research on a more broader scale I'm finding it's possibly an issue between IIS & PHP, [the overall 404 errors also being returned] so most likely I'm in the wrong website...still, I'll post any findings and solutions if they happen in case anyone else runs into this problem...cheers.


  Stopping Spam with a Honeypot
Posted by: El Forum - 10-09-2007, 02:15 PM - No Replies

[eluser]Michael Wales[/eluser]
I just read a quick article from Phil Haack about utilizing a Honeypot Captcha. Basically, its as simple as including a form field, which you hide via CSS, that you expect to be empty (and check against that during Validation).

Bots love form fields and will rarely leave one blank (unless there is quite a bit of influence from a real user as to how the bot should react to a particular form). When the bot fills in this form field, you instantly know it wasn't a real user, and you can simply ignore the request.

I like this idea and I believe I will implement it on my next project, if nothing else to see how it works. The beauty of it all is that it requires very little work on the part of the programmer!


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

Username
  

Password
  





Latest Threads
hot-reload side effects s...
by PaulC
Today, 05:09 AM
CodeIgniter.com - Report ...
by Harry Lyre
Today, 04:26 AM
Setting baseURL in Regist...
by michalsn
Today, 12:09 AM
Update from 4.6.0 to 4.6....
by FlavioSuar
Yesterday, 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
CodeIgniter Shield 1.0.0 ...
by timesprayer
05-10-2025, 05:22 AM
Website Traffic Drop Afte...
by InsiteFX
05-10-2025, 04:23 AM

Forum Statistics
» Members: 146,002
» Latest member: georgemanilo
» Forum threads: 78,389
» Forum posts: 379,450

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB