Welcome Guest, Not a member yet? Register   Sign In
  Paypal Registration Application
Posted by: El Forum - 08-25-2008, 03:30 PM - Replies (12)

[eluser]Jesse Schutt[/eluser]
Hello all!

Sorry to give a disclaimer right off the bat, but I am still working at getting my feet wet with this CI stuff. So please be patient with me!

I am building an application that will be used to register individuals for a particular event. So far I have the forms built, passing the data to my database, and emailing me the results. What I need to do now is implement a PayPal payment gateway. Ideally the payment would happen prior to sending me the email and posting to the database. I'm sure this will entail IPN...

Can someone please give me some general direction as to how to make this happen?

Thanks in advance.

Jesse

PS - I am fairly active in the ExpressionEngine forums, and hoping that the CI forums will be a positive experience :cheese:


  Launched my first CI based site today
Posted by: El Forum - 08-25-2008, 03:27 PM - Replies (1)

[eluser]Josh Giese[/eluser]
I finally did it, my first CodeIgniter based site, http://www.UnderGroundLyricSearch.com

I want to say thank you to all the people that made posts that contributed to me get this project off the ground. This site is a great resource, and makes CI rock that much harder.

I honestly can't think of writing php code outside of CI now.


  Image resize problems
Posted by: El Forum - 08-25-2008, 02:38 PM - Replies (4)

[eluser]louis w[/eluser]
Having problems with the image lib and resizing images proportionally.

This is my config:

Code:
$config['image_library']     = 'gd2';
$config['source_image']     = $file_path;
$config['new_image']         = $resize_file_path;
$config['maintain_ratio']     = TRUE;
$config['master_dim']         = 'auto';
$config['width']         = $this->input->get('w');
//$config['height']         = $this->input->get('h');


When I do this and resize to 100 width, the width is 100, but the height is the original image size. I thought that maintain_ratio would scale the image proportionally?

I did see this post, but I did not have a image_thumb, so not appropriate.
http://ellislab.com/forums/viewthread/84992/

I almost want to do all the the new with/height logic myself, but feel it really should be built in.


  Autoload For Undefined Controllers
Posted by: El Forum - 08-25-2008, 02:23 PM - No Replies

[eluser]Unknown[/eluser]
I'm having an issue with the autoload.php file not being used when an undefined Controller is given. The same issue has been reported here, but I felt as thought it was better suited for this discussion. Is there a possible workaround for this, or perhaps a way of having a custom controller for our error pages? Thanks.

- dimpared


  Sendig code from view to variable and not printing
Posted by: El Forum - 08-25-2008, 01:54 PM - Replies (2)

[eluser]fuksito[/eluser]
Is there a way to take all the html code that prints view into variable.
Like

$content = $this->load->view("menu");

And with no printing to the output.

I know about ob_start, ob_end but I don't think this is right way to do.


  Code Migration/Environment Switch?
Posted by: El Forum - 08-25-2008, 01:52 PM - Replies (1)

[eluser]JCianflone[/eluser]
Hi Everyone,
I have been using CodeIgniter for a couple of months now and I really enjoy it, it has helped me rapidly create some awesome stuff. The one area that seems to be lacking is a quick way to migrate from one environment to another. So, if I am working on my localhost and I need to push everything to staging, there doesn't seem to be an automatic way to do that, like rails.

I guess my question is two-fold:
1. Is there an easy way to switch environments in CI?
2. If not, does anyone use any tools (phing?) to automate that process?

Thanks in advance

Joe


  Can I: get() and count_all_results() within the same $this->db
Posted by: El Forum - 08-25-2008, 01:09 PM - Replies (3)

[eluser]Matrices[/eluser]
Here's my code:

Code:
$this->db->where('username', $_POST['username']);
$this->db->where('password', $_POST['password']);
$query = $this->db->get('accounts');
$rows = $this->db->count_all_results('accounts');

I'm running into a problem where the $rows counted are ALL the rows from the database, which means the filter is only working for the first query, in the 3rd row. Is there a way that I can use the filter created within the first two lines to work for more than just the first query line? Or do I have to reintroduce the filter for the second query?


  Multiple Database Connection Question
Posted by: El Forum - 08-25-2008, 12:14 PM - Replies (1)

[eluser]Tom Schlick[/eluser]
ok, i need to connect to multiple databases... i have read the user guide but i have a question about it...

if i do connect to two databases calling them DB1 & DB2 do i have to call $DB1->query if DB1 is my default connection? i know i will have to with DB2 but since CI already loads it will there be any miscommunication if i just call $this->db for DB1?

thanks in advance


  US 50 States Dropdown Array for you - Happy Monday!
Posted by: El Forum - 08-25-2008, 11:01 AM - Replies (15)

[eluser]Chad Crowell[/eluser]
Since I had to do this manually, maybe it will save you some time...

Code:
$options = array (
                    ''                    => 'Select',
                    'Alabama'             => 'Alabama',
                    'Alaska'             => 'Alaska',
                    'Arizona'             => 'Arizona',
                    'Arkansas'             => 'Arkansas',
                    'California'         => 'California',
                    'Colorado'             => 'Colorado',
                    'Connecticut'         => 'Connecticut',
                    'Delaware'             => 'Delaware',
                    'Florida'             => 'Florida',
                    'Georgia'             => 'Georgia',
                    'Hawaii'             => 'Hawaii',
                    'Idaho'             => 'Idaho',
                    'Illinois'             => 'Illinois',
                    'Indiana'             => 'Indiana',
                    'Iowa'                 => 'Iowa',
                    'Kansas'             => 'Kansas',
                    'Kentucky'             => 'Kentucky',
                    'Louisiana'         => 'Louisiana',
                    'Maine'             => 'Maine',
                    'Maryland'             => 'Maryland',
                    'Massachusetts'        => 'Massachusetts',
                    'Michigan'             => 'Michigan',
                    'Minnesota'         => 'Minnesota',
                    'Mississippi'         => 'Mississippi',
                    'Missouri'             => 'Missouri',
                    'Montana'             => 'Montana',
                    'Nebraska'             => 'Nebraska',
                    'Nevada'             => 'Nevada',
                    'New Hampshire'     => 'New Hampshire',
                    'New Jersey'         => 'New Jersey',
                    'New Mexico'         => 'New Mexico',
                    'New York'             => 'New York',
                    'North Carolina'     => 'North Carolina',
                    'North Dakota'         => 'North Dakota',
                    'Ohio'                 => 'Ohio',
                    'Oklahoma'             => 'Oklahoma',
                    'Oregon'             => 'Oregon',
                    'Pennsylvania'         => 'Pennsylvania',
                    'Rhode Island'         => 'Rhode Island',
                    'South Carolina'     => 'South Carolina',
                    'South Dakota'         => 'South Dakota',
                    'Tennessee'         => 'Tennessee',
                    'Texas'             => 'Texas',
                    'Utah'                 => 'Utah',
                    'Vermont'             => 'Vermont',
                    'Virginia'             => 'Virginia',
                    'Washington'         => 'Washington',
                    'West Virginia'     => 'West Virginia',
                    'Wisconsin'         => 'Wisconsin',
                    'Wyoming'             => 'Wyoming'
                    );
                
                echo '<p>State: ' . form_dropdown('state', $options) . '</p>';


  What header to use for redirect?
Posted by: El Forum - 08-25-2008, 10:58 AM - Replies (7)

[eluser]mvdg27[/eluser]
Hi guys,

In my CMS I've come up with the concept of symbolic links, to be used in the menu. Normally every menu item just loads a page, but an item with a symbolic link redirects the user to another page (e.g. a to a different language version of the website, or to the photo album).

Now from a SEO perspective, I'm wondering what header I should use for this redirect, is a 301 appropriate here?

Hope someone has some advice on this!

Michiel


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

Username
  

Password
  





Latest Threads
Update to v4.5.1, same us...
by xsPurX
38 minutes ago
SQL server connection not...
by falagar2k
4 hours ago
How to use Codeigniter wi...
by kenjis
4 hours ago
CVE-2022-40834 SQL Inject...
by kenjis
5 hours ago
Retaining search variable...
by pchriley
5 hours ago
Disable debug output in v...
by groovebird
6 hours ago
CI 4.5.1 CSRF - The actio...
by kenjis
8 hours ago
CodeIgniter v4.5.0 Releas...
by kenjis
8 hours ago
Cache best practice?
by BhambriRohunu
9 hours ago
Bug with sessions CI 4.5....
by InsiteFX
10 hours ago

Forum Statistics
» Members: 85,350
» Latest member: topnhacaiuytinart
» Forum threads: 77,578
» Forum posts: 375,998

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB