<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Beau Anthony Frusetta &#187; PHP Development</title> <atom:link href="http://beau.frusetta.com/web-development/php-development/feed/" rel="self" type="application/rss+xml" /><link>http://beau.frusetta.com</link> <description>PHP/Ruby on Rails Web Developer &#38; Automotive Enthusiast &#124; Phoenix, AZ</description> <lastBuildDate>Tue, 07 Feb 2012 06:11:56 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Codeigniter &amp; PHP ActiveRecord</title><link>http://beau.frusetta.com/2011/07/07/codeigniter-php-activerecord/</link> <comments>http://beau.frusetta.com/2011/07/07/codeigniter-php-activerecord/#comments</comments> <pubDate>Thu, 07 Jul 2011 18:14:46 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[Codeigniter]]></category> <category><![CDATA[Featured]]></category> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=1208</guid> <description><![CDATA[I recently started using PHP ActiveRecord with a CodeIgniter project at work, and I&#8217;m absolutely in love with it, especially since it now makes CodeIgniter work just like Ruby on Rails when dealing with models. I had previously started writing my own ORM style model that plugged in to CodeIgniter, but after finding PHP ActiveRecord [...]]]></description> <content:encoded><![CDATA[<p>I recently started using PHP ActiveRecord with a CodeIgniter project at work, and I&#8217;m absolutely in love with it, especially since it now makes CodeIgniter work just like Ruby on Rails when dealing with models.</p><p>I had previously started writing my own ORM style model that plugged in to CodeIgniter, but after finding PHP ActiveRecord and then finding a <a title="Spark wrapper for PHP ActiveRecord" href="http://getsparks.org/packages/php-activerecord/versions/HEAD/show">Spark wrapper for PHP ActiveRecord</a> to integrate in to CodeIgniter, I have since abandoned the &#8220;<a title="base_model" href="https://github.com/beaufrusetta/base_model">base_model</a>&#8221; project, and I&#8217;ll show you how to integrate these 2 in this post.</p><p><span id="more-1208"></span></p><p>To integrate PHP ActiveRecord in to your existing CodeIgniter project, follow these steps (from the root of your project &amp; I&#8217;m assuming you already have your database settings set inside application/config/database.php, but <strong>TURN OFF AUTOLOADING</strong> of the Database class if you have it set &#8211; it will cause this to throw errors):</p><p>1. Install the <a title="Sparks Manager Install" href="http://getsparks.org/install">Sparks Manager</a> (if you haven&#8217;t installed it already)</p><pre><code>php -r "$(curl -fsSL http://getsparks.org/go-sparks)"</code></pre><p>2. Install the <a title="PHP ActiveRecord Spark" href="http://getsparks.org/packages/php-activerecord/versions/HEAD/show">PHP ActiveRecord Spark</a></p><pre><code>php tools/spark install -v0.0.1 php-activerecord</code></pre><p>3. Activate PHP ActiveRecord in your controller. (I generally have a &#8220;MY_Controller&#8221; controller setup in between all my controllers and the CI_Controller to create an &#8220;Application Controller&#8221; of sorts. If you are a Rails developer, you know what I&#8217;m talking about. Application controllers give you a global controller to handle things like auth/etc.)</p><pre><code>class MY_Controller extends CI_Controller {
    function __construct() {
        parent::__construct();
        $this-&gt;load-&gt;spark('php-activerecord/0.0.1');
    }
}</code></pre><p>4. Create a table called &#8220;Users&#8221; with a few fields</p><pre><code>DROP TABLE IF EXISTS users;
CREATE TABLE users (
    id BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
    email_address VARCHAR(200) NOT NULL DEFAULT ''
) ENGINE=InnoDB;</code></pre><p>5. Create your &#8220;User&#8221; model in application/models/User.php</p><pre><code> class User extends ActiveRecord\Model {} </code></pre><p>6. Test in one of your controller functions (possibly welcome/index)</p><pre><code>$user = new User(array("email_address" =&gt; "beau.frusetta@gmail.com"));
$user-&gt;save(); 

## This should show you the User record that you just created
print_r($user); 

## Now do a simple find by email address
$user = User::find_by_email_address("beau.frusetta@gmail.com");
print_r($user); 

## Now do a simple find by primary key
$user = User::find(1);
print_r($user); </code></pre><p>And that&#8217;s basically it. There is tons of functionality built in to PHP ActiveRecord &#8211; check out the documentation to find everything you might need, and if you have any questions, let me know with a comment below.</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2011/07/07/codeigniter-php-activerecord/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHPFog &#8211; Cloud Hosting for PHP</title><link>http://beau.frusetta.com/2011/03/11/phpfog-cloud-hosting-for-php/</link> <comments>http://beau.frusetta.com/2011/03/11/phpfog-cloud-hosting-for-php/#comments</comments> <pubDate>Fri, 11 Mar 2011 18:48:21 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[PHP Development]]></category> <category><![CDATA[cloud hosting]]></category> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=945</guid> <description><![CDATA[I discovered this little gem yesterday in an email from Kenny. Looks like this is a &#8220;heroku&#8221; for PHP &#8211; I wonder if they&#8217;ll offer a &#8220;free&#8221; account like Heroku does on sign up? Basically, I haven&#8217;t quite gotten in to it just yet. We just got our account setup for GetSparks.org, so it looks [...]]]></description> <content:encoded><![CDATA[<p><a title="Beta Signup for PHPFog" href="http://signup.phpfog.com/?r=escgql"><img class="aligncenter size-large wp-image-946" title="phpfog" src="http://beau.frusetta.com/wp-content/uploads/2011/03/phpfog-550x186.jpg" alt="" width="550" height="186" /></a></p><p>I discovered this little gem yesterday in an email from Kenny. Looks like this is a &#8220;heroku&#8221; for PHP &#8211; I wonder if they&#8217;ll offer a &#8220;free&#8221; account like Heroku does on sign up?</p><p>Basically, I haven&#8217;t quite gotten in to it just yet. We just got our account setup for <a title="Sparks Package Management for Codeigniter" href="http://getsparks.org">GetSparks.org</a>, so it looks like we&#8217;ll be testing it over the next few days, but so far, it looks pretty slick!</p><p><a title="PHPFog Beta Signup" href="http://signup.phpfog.com/?r=escgql">Sign up for the beta today</a> and see what it&#8217;s all about! When you get your invite, let me know what you think about it.</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2011/03/11/phpfog-cloud-hosting-for-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Legacy &gt; Money</title><link>http://beau.frusetta.com/2011/03/02/legacy-money/</link> <comments>http://beau.frusetta.com/2011/03/02/legacy-money/#comments</comments> <pubDate>Wed, 02 Mar 2011 16:06:09 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[Codeigniter]]></category> <category><![CDATA[Good Stuff]]></category> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[codeigniter]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[sparks]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=901</guid> <description><![CDATA[As a developer, I lose motivation on projects from time to time &#8211; and I think that&#8217;s the norm for a lot of web developers &#8211; you just get burnt out. You&#8217;d think that the high hourly wage would be a great motivator, but honestly, to me, it&#8217;s not &#8211; I want to work on [...]]]></description> <content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-902" title="cash" src="http://beau.frusetta.com/wp-content/uploads/2011/03/cash-300x225.jpg" alt="" width="240" height="180" />As a developer, I lose motivation on projects from time to time &#8211; and I think that&#8217;s the norm for a lot of web developers &#8211; you just get burnt out. You&#8217;d think that the high hourly wage would be a great motivator, but honestly, to me, it&#8217;s not &#8211; I want to work on cool stuff&#8230;something fun&#8230;something exciting.</p><p>For whatever reason, and without any monetary compensation, I dove in to <a title="Package Management for Codeigniter" href="http://getsparks.org">GetSparks.org</a>&#8230;because it is fun, it&#8217;s exciting, and I&#8217;m being helpful to fellow developers across the world. I&#8217;m not making any money on it, and honestly, I don&#8217;t care. I&#8217;m developing something that will eventually help thousands of developers out there, that use the <a href="http://codeigniter.com">Codeigniter MVC framework</a>, to easily install &amp; update the libraries they build their sites with. It will help them put together a site faster then before &#8211; and they will look like rockstars because of it!</p><p>I can make money other ways, but there aren&#8217;t too many opportunities to be a part of something that big &#8211; something that has taken off (in day 3 now) as <a title="Package Management for Codeigniter" href="http://getsparks.org">GetSparks.org</a> has already.</p><p>Fucking amazing &#8211; loving it right now.</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2011/03/02/legacy-money/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Sparks Package Management</title><link>http://beau.frusetta.com/2011/02/28/sparks-package-management/</link> <comments>http://beau.frusetta.com/2011/02/28/sparks-package-management/#comments</comments> <pubDate>Mon, 28 Feb 2011 17:32:44 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[Codeigniter]]></category> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[codeigniter]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[sparks]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=881</guid> <description><![CDATA[So, many of you that read this blog (that are in the software dev industry) might have heard about PEAR packages or RubyGems once or twice. I think we can do better then that. PEAR is a centralized package management system for PHP that has thousands of libraries built by developers all over the world. [...]]]></description> <content:encoded><![CDATA[<p>So, many of you that read this blog (that are in the software dev industry) might have heard about PEAR packages or RubyGems once or twice. I think we can do better then that.</p><p>PEAR is a centralized package management system for PHP that has thousands of libraries built by developers all over the world. They have these nifty little commands you can run to install packages to your system, and with some configuration, your PHP project can then use these packages at will&#8230;although, I can&#8217;t tell you the last time I used PEAR, because it&#8217;s rather archaic in my opinion, and the times that I have had to use it, it was quite difficult to get it to &#8220;work the right way&#8221;.</p><p>Now &#8211; RubyGems are fantastic! RubyGems.org is a centralized package management system for the Ruby language. I&#8217;ve used this many times, and I love it. It&#8217;ll handle dependencies and install everything you need to your system, so all you have to do is call it up in your Ruby project, and you can use it. Hmm&#8230;like!</p><p><strong>Finding Codeigniter libraries is kind of difficult.</strong> There are tons of fantastic libraries built for CodeIgniter out on the net, but it&#8217;s sometimes hard to find them, and it&#8217;s even hard to know if they suck or not without popping them in to your code and giving them a try.</p><p><strong>Setting up ANOTHER system every time I move code is a pain in the ass.</strong> I&#8217;ve done it several times &#8211; when working in a new environment, you have to install all these libraries to your system, waste more time getting setup to go, and get all invasive with yet another environment. That sucks.</p><p><a href="http://getsparks.org"><img class="aligncenter size-large wp-image-884" title="sparks_alpha" src="http://beau.frusetta.com/wp-content/uploads/2011/02/sparks_alpha-550x37.jpg" alt="" width="550" height="37" /></a></p><p>Cue in <a href="http://getsparks.org">Sparks &#8211; the Package Management System for Codeigniter</a>. First off, it solves 2 things right off the bat &#8211; it&#8217;s <strong><a href="http://getsparks.org/packages/browse/latest">easy to find new packages</a></strong> (we&#8217;re finishing up the search in the alpha phase), and everything is <strong>attached to your project &#8211; not your system</strong>.</p><p>Sweet&#8230;a portable Codeigniter project with libraries that can be added/updated from a central repository in 1 command?!?!?!</p><p>A group of 4 of us came up with this idea, and put it together in a matter of a few weeks. It&#8217;s in <strong>ALPHA</strong> release right now, so we&#8217;re still finding/squashing bugs &amp;amp; adding new features. I would write more and more about how Sparks works in detail, but I&#8217;ll go ahead and <a href="http://getsparks.org">let the site do the talking</a> and let you experience it for yourself. Feel free to give us some feedback!</p><p>This is gonna change everything with Codeigniter!</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2011/02/28/sparks-package-management/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Codeigniter 2, Capistrano, &amp; Phake</title><link>http://beau.frusetta.com/2010/11/16/codeigniter-2-capistrano-phake/</link> <comments>http://beau.frusetta.com/2010/11/16/codeigniter-2-capistrano-phake/#comments</comments> <pubDate>Tue, 16 Nov 2010 17:34:00 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[capistrano]]></category> <category><![CDATA[codeigniter 2]]></category> <category><![CDATA[phake]]></category> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=669</guid> <description><![CDATA[Well &#8211; it was time for me to finally make a contribution to the PHP community &#8211; so here it is &#8211; my extended version of Codeigniter 2 &#8211; a little &#8220;rails-ified&#8221;. Basically, I wanted to capitalize on some of the features of rails (that I love so much) and put them in to PHP [...]]]></description> <content:encoded><![CDATA[<p>Well &#8211; it was time for me to finally make a contribution to the PHP community &#8211; so here it is &#8211; my <a title="Codeigniter 2 Extended" href="http://codeigniter.alexidom.com">extended version of Codeigniter 2</a> &#8211; a little &#8220;rails-ified&#8221;.</p><p><span id="more-669"></span></p><p>Basically, I wanted to capitalize on some of the features of rails (that I love so much) and put them in to PHP to make dev times that much faster. I added things such as <a title="Codeigniter 2 Modifications &amp; Additions" href="http://codeigniter.alexidom.com/codeigniter-2-modifications-additions">default functions on models</a> (find, all, create, destroy), added in <a title="Codeigniter 2 Deployment with Capistrano" href="http://codeigniter.alexidom.com/codeigniter-and-capistrano">deployment with Capistrano</a>, and added the ability to <a title="Codeigniter 2 Phake Tasks" href="http://codeigniter.alexidom.com/codeigniter-and-phake">run &#8220;Phake&#8221; tasks</a> &#8211; similar to rake tasks.</p><p>Setup is really easy &#8211; I&#8217;ve written up some basic installation instructions with the documentation I&#8217;ve put together.  Would love to hear what you think/comments/questions/whatever.  I&#8217;ll definitely be adding to this site &amp; framework every once in a while &#8211; now I just gotta figure out git tagging so I can tag the versions right on Github.</p><p>PEACE!</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2010/11/16/codeigniter-2-capistrano-phake/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>No&#8230;I don&#8217;t have a resume&#8230;</title><link>http://beau.frusetta.com/2010/07/29/no-i-dont-have-a-resume/</link> <comments>http://beau.frusetta.com/2010/07/29/no-i-dont-have-a-resume/#comments</comments> <pubDate>Fri, 30 Jul 2010 01:55:15 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[Phoenix]]></category> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[php development]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=551</guid> <description><![CDATA[&#8220;Corporate America&#8221; bugs the hell out of me. Today, I get an email titled &#8220;Opportunity Knocks&#8221; from a local company in town, giving the same old canned message that was spruced up a little to be marginally personalized.  I was told he searched for &#8220;php developer phoenix&#8221; and he found me (I rank #1 for [...]]]></description> <content:encoded><![CDATA[<h2>&#8220;Corporate America&#8221; bugs the hell out of me.</h2><p>Today, I get an email titled &#8220;Opportunity Knocks&#8221; from a local company in town, giving the same old canned message that was spruced up a little to be marginally personalized.  I was told he searched for &#8220;php developer phoenix&#8221; and he found me (I rank #1 for that search term).  Ok &#8211; I read on &#8211; and it was basically a soft recruitment letter &#8211; pretty standard.</p><p>I responded back that I wasn&#8217;t looking for full time work, but I&#8217;d be open to any contract/freelance work, as I had recently left a company to go back out on my own. He responded shortly after and said, &#8220;How about sending me a resume and I&#8217;ll set up a few face-to-face meetings with the peeps here?&#8221;.</p><h2>Hmmm&#8230;</h2><p>Well, I don&#8217;t have a resume, I haven&#8217;t updated my resume in years. Hell, the resume I used to desperately get a job with 944 Magazine was the same resume I had that I made in high school &#8211; clearly it worked, but it was old, outdated, and is a constant reminder of &#8220;old business&#8221;.  If you know me&#8230;Craig&#8230;this is directed at you haha&#8230;you know that I loathe &#8220;old business&#8221; methodologies &#8211; not all, but most.  I still prefer the good old &#8220;hand shake and a promise&#8221; &#8211; something about that just screams &#8220;business&#8221; to me, but everything else, meh, I can do without.</p><p>Apparently I said something to ruffle the feathers, because after my response of &#8220;Look at the links in my sig &#8211; that&#8217;s my resume &#8211; I&#8217;m pretty confident in the wealth of information you&#8217;ll find about me as a person/developer/etc on google&#8221;, I was told that I was &#8220;being arrogant, cocky and feeling entitled&#8221; and that those &#8220;are not a qualities we are interested in&#8221;.</p><p>Whoa&#8230;what?</p><blockquote><p> Whoa what?  Being arrogant and cocky?  I think you completely misunderstood my last email, and now you&#8217;re telling me that I&#8217;m an &#8220;apprentice&#8221; because I told you I don&#8217;t have a formal &#8220;resume&#8221; anymore?  I&#8217;m not an old dude with a pony tail &#8211; nor a web developer that wasted years in college and have 9 million microsoft/google/etc certifications &#8211; it&#8217;s all worthless &#8211; real world experience is where it&#8217;s at.</p><p>Wow &#8211; this went downhill pretty quick&#8230;and FYI, in the &#8220;real world&#8221;, a piece of paper listing accomplishments is still just a piece of paper &#8211; the proof is in the pudding, and you&#8217;ve yet to see any of my work (you&#8217;ve seen my blog and probably DateDesigner.com) &#8211; neither of which I care to &#8220;defend&#8221; to you.</p><p>The only arrogant person in this conversation is you right now&#8230;you probably need to chillax a little.  An apology for flying off the handle is appreciated.</p></blockquote><p>It gets better &#8211; I just got this response:</p><blockquote><p> Fair enough:  I apologize for &#8220;flying off the handle&#8221;.  Let me get back on my broomstick (apparently, I&#8217;m a witch?).</p><p>We do require a resume.  Sorry, I can&#8217;t ask other managers and the co-founders of this company to &#8220;Look at the links in my sig &#8211; that&#8217;s my resume&#8221;.  Seriously, that doesn&#8217;t cut it.  To dignify and respect their time, they should only have to review a single-source document of your accomplishments (aka a &#8220;resume&#8221;).  Everything they read online *could* be 100% BS (just as a resume could be), but it starts the process down the right road.  No one has time to look at countless websites that have some reference to who you might be.  Down the road, if we were truly interested, we would dig deeper (verify work history, check references, etc.).</p><p>You&#8217;re right, never saw any pudding.  Also, I wasn&#8217;t being arrogant, I was being condescending (which was wrong and I apologize for that, too).  Guess I was expecting to somehow be &#8220;wowed!&#8221; by your  claim of being a &#8220;jQuery Expert&#8221;.</p><p>I reached out to you because you appeared to have an acceptable amount of experience in web development.  I failed to conclude that you were a master of your craft.  Being that you are, you are clearly out of our league as we are really just looking for someone who is pretty darn good at what they do.</p><p>Sorry to have bothered you.</p></blockquote><p>And my response:</p><blockquote><p> Again with the &#8220;crafty&#8221; email response &#8211; and a dodge at just apologizing, tucking your tail, and moving on.</p><p>I never claimed to be a jQuery expert, I mentioned that my budd had said that.  That was meant to be a joke, but clearly that wasn&#8217;t conveyed &#8211; or understood.  I don&#8217;t claim to be an expert at anything &#8211; I do however know that I&#8217;m pretty f***in good at the skills I do possess.</p><p>My flip flops, t-shirts, and bedazzled jeans don&#8217;t do well in corporate culture &#8211; neither do resumes and obviously me &#8211; this is why I&#8217;m a full time freelancer.  I loathe &#8220;old school&#8221; business methodologies, and can&#8217;t stand to be a part of them.</p><p>A bit of advice &#8211; especially in an ever competitive tech industry, hire people, not resumes.  You could have easily brought me in to &#8220;meet the peeps&#8221; with a bit of information about me &#8211; you know, doing your job with recruiting, you gather information and report it back to those that control your strings.  But now, you&#8217;ll just be on the hunt for another drone &#8211; another resume submitter&#8230;someone whom which I&#8217;ll never be again.</p><p>Thank you again for yet another captivating response XXXXX, I&#8217;m really looking forward to the next one!</p></blockquote><p>Yes &#8211; now I&#8217;m just being an ass, but hey, it&#8217;s the amusement that I needed today. Back to the grind &#8211; see ya on the flip side!</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2010/07/29/no-i-dont-have-a-resume/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Remove index.php from Codeigniter URL&#8217;s</title><link>http://beau.frusetta.com/2010/06/22/remove-index-php-from-codeigniter-urls/</link> <comments>http://beau.frusetta.com/2010/06/22/remove-index-php-from-codeigniter-urls/#comments</comments> <pubDate>Tue, 22 Jun 2010 22:06:25 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[codeigniter]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[tricks]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=528</guid> <description><![CDATA[I&#8217;m sure this already exists out on the net, but I found a little gem today.  When you are working with Codeigniter, you can remove the index.php from your URL&#8217;s by creating an .htaccess file with the following information: RewriteCond $1 !^(index\.php&#124;sitemap\.xml&#124;robots\.txt&#124;user_guide&#124;blog&#124;public&#124;favicon\.ico&#124;LiveSearchSiteAuth\.xml) RewriteRule ^(.*)$ /index.php/$1 [L] If you notice, I have some other stuff in [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;m sure this already exists out on the net, but I found a little gem today.  When you are working with Codeigniter, you can remove the index.php from your URL&#8217;s by creating an .htaccess file with the following information:</p><pre>
RewriteCond $1 !^(index\.php|sitemap\.xml|robots\.txt|user_guide|blog|public|favicon\.ico|LiveSearchSiteAuth\.xml)
<div id="_mcePaste">RewriteRule ^(.*)$ /index.php/$1 [L]
</pre><p>If you notice, I have some other stuff in there to not exclude from passing to index.php like a sitemap.xml, the user_guide directory, the blog directory, a &#8220;public&#8221; directory (that I use for css/images/js), etc.</p><p>You set that in your .htaccess file first, then go into your config.php file and set this:</p><pre>$config['index_page'] = "";</pre><p>Basically, what that does, is that removes the whole site from processing through index.php in the URL bar (it still goes through there as far as I know, but doesn&#8217;t show it), specifically when using Codeigniter built-in functions like redirect().</p><p>Figured I&#8217;d share that little nugget of knowledge&#8230;happy coding!</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2010/06/22/remove-index-php-from-codeigniter-urls/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CodeIgniter &amp; jQuery &#8211; A match made in web heaven&#8230;</title><link>http://beau.frusetta.com/2009/07/29/codeigniter-and-jquery-match-made-in-web-heaven/</link> <comments>http://beau.frusetta.com/2009/07/29/codeigniter-and-jquery-match-made-in-web-heaven/#comments</comments> <pubDate>Thu, 30 Jul 2009 00:43:52 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[N3rd Talk]]></category> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[codeigniter]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=354</guid> <description><![CDATA[Honestly, a year ago, I wasn&#8217;t a fan of either CodeIgniter or jQuery &#8211; because I really didn&#8217;t look at them deep enough. CodeIgniter &#8211; PHP MVC Framework My first shot at CodeIgniter was with DateDesigner.com (by persistent recommendation from @strebel).  Wow&#8230;once you grab the concept of the MVC framework, CodeIgniter makes your life tremendously [...]]]></description> <content:encoded><![CDATA[<p>Honestly, a year ago, I wasn&#8217;t a fan of either <a title="CodeIgniter | PHP MVC Framework" href="http://codeigniter.com">CodeIgniter</a> or <a title="jQuery | Javascript Framework" href="http://jquery.com">jQuery</a> &#8211; because I really didn&#8217;t look at them deep enough.</p><h3>CodeIgniter &#8211; PHP MVC Framework</h3><p>My first shot at CodeIgniter was with <a title="Date Ideas | DateDesigner.com" href="http://datedesigner.com">DateDesigner.com</a> (by persistent recommendation from<a title="The Man, The Myth, The Legend" href="http://twitter.com/strebel"> @strebel</a>).  Wow&#8230;once you grab the concept of the MVC framework, CodeIgniter makes your life tremendously easier when throwing together a site.  I literally thumbed through documentation and built DateDesigner.com in 30 days (scratch to launch).  I have learned how to set it up better and have learned a lot after putting together a few more sites with it (<a title="Twitter Tweet Ranking | Twitrratr.com" href="http://twitrratr.com">Twitrratr.com</a>, <a title="Local Doggy Play Date Finder" href="http://findmydogadate.com">FindMyDogADate.com</a>, <a title="Cabo San Lucas &amp; Baja Vacation Home Rentals" href="http://bajasurvacationrentals.com">BajaSurVacationRentals.com</a>), so now when I go back through some of the DateDesigner.com code, I curse myself a little as I refactor.</p><p>Have you built any sites with CodeIgniter?  Do you have an cool plug-in&#8217;s for CodeIgniter that you can suggest?</p><h3>jQuery &#8211; Javascript Framework</h3><p>Now &#8211; I have sucked at javascript for going on&#8230;ummm&#8230;ever?  It was actually <a title="Twitter All Star" href="http://twitter.com/chuckreynolds">@chuckreynolds</a> that intro&#8217;d me to jQuery, but at the time, I still didn&#8217;t get it &#8211; because I was just too lazy to take a good look at it.  Well, again, my first shot at jQuery was on a simple interface tweak in DateDesigner.com, but it has spurred off on to nearly every site I work on now (including all of the <a title="Fashion, Entertainment, &amp; Lifestyle" href="http://944.com">944</a> web sites internal/external).  There are a plethora plug-in&#8217;s available for jQuery &#8211; I&#8217;ve recently worked with jCarousel and a few others.</p><p>Do you have any jQuery plug-in recommendations?  Anyone know of any where I could essentially paginate images in 2 columns like a book/magazine w/o using flash?</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2009/07/29/codeigniter-and-jquery-match-made-in-web-heaven/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Site Launch &#8211; Cabo San Lucas Vacation Rentals</title><link>http://beau.frusetta.com/2009/04/17/site-launch-cabo-san-lucas-vacation-rentals/</link> <comments>http://beau.frusetta.com/2009/04/17/site-launch-cabo-san-lucas-vacation-rentals/#comments</comments> <pubDate>Fri, 17 Apr 2009 14:22:45 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[cabo rentals]]></category> <category><![CDATA[cabo san lucas rentals]]></category> <category><![CDATA[cabo vacation rentals]]></category> <category><![CDATA[cabo villa rentals]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=271</guid> <description><![CDATA[I recently launched a new site for a friend of mine &#8211; BajaSurVacationRentals.com. The original site was created in ColdFusion and has been active for quite some time, however, the good people at BajaSurVacationRentals.com were experiencing not only downtime, but they have been overspending with Google Adwords to essentially &#8220;buy traffic&#8221; (not conversions), and have [...]]]></description> <content:encoded><![CDATA[<p><img class="alignleft" title="Cabo Vacation Rentals" src="http://www.bajasurvacationrentals.com/public/img/rentals/417.jpg" alt="" width="300" height="200" />I recently launched a new site for a friend of mine &#8211; <a title="Cabo Rentals | BajaSurVacationRentals.com" href="http://bajasurvacationrentals.com/">BajaSurVacationRentals.com</a>.</p><p>The original site was created in ColdFusion and has been active for quite some time, however, the good people at <a title="Cabo Rentals | BajaSurVacationRentals.com" href="http://bajasurvacationrentals.com/">BajaSurVacationRentals.com</a> were experiencing not only downtime, but they have been overspending with Google Adwords to essentially &#8220;buy traffic&#8221; (not conversions), and have been hitting a cap when trying to expand.</p><p>My friend Erica, who is the Director of Sales &amp; Marketing there, approached me about how they could expand because she was consistently hitting a wall with their current developer.  I took a look at the site and suggested that the site be written in PHP using the CodeIgniter framework to ensure that even if I get hit by a bus, there are more PHP developers out there than there are ColdFusion developers, and PHP is not so much of a dying technology.</p><p>Erica wanted to keep the look &amp; feel of the site, so I basically spruced it up a little, and completely re-wrote the whole site (custom CMS included) in PHP &amp; CodeIgniter.</p><p>We&#8217;re currently working on an SEO strategy to build traffic mainly organically instead of paying thousands of dollars buying traffic from Google.  After a little over 1 week after launch, the site is ranking quite highly on popular keywords for <a title="Cabo San Lucas Rentals | BajaSurVacationRentals.com" href="http://www.bajasurvacationrentals.com">cabo rentals</a> per my reports from the best <a title="Keyword Ranking Tool" href="http://authoritylabs.com">keyword ranking tool</a> out there.</p><p>I&#8217;ve heard there are some good deals to be had on both airfare and <a title="Villa Rentals in Cabo" href="http://bajasurvacationrentals.com/rentals">villa rentals in cabo</a> these days&#8230;maybe you should go check the site out and plan a trip down to cabo?</p><p>Oh yeah&#8230;they also are on twitter as <a title="BajaSurVacationRentals.com Twitter Account" href="http://twitter.com/caborentals">@caborentals</a> &#8211; follow them for special announcements and so forth.</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2009/04/17/site-launch-cabo-san-lucas-vacation-rentals/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Wanna save money on development costs?  Stop using Internet Explorer!!!</title><link>http://beau.frusetta.com/2009/03/11/wanna-save-money-on-development-costs-stop-using-internet-explorer/</link> <comments>http://beau.frusetta.com/2009/03/11/wanna-save-money-on-development-costs-stop-using-internet-explorer/#comments</comments> <pubDate>Wed, 11 Mar 2009 20:11:38 +0000</pubDate> <dc:creator>Beau Frusetta</dc:creator> <category><![CDATA[Funny Stuff]]></category> <category><![CDATA[N3rd Talk]]></category> <category><![CDATA[PHP Development]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[internet explorer]]></category> <category><![CDATA[recession]]></category> <category><![CDATA[safari]]></category> <category><![CDATA[save money]]></category><guid isPermaLink="false">http://beau.frusetta.com/?p=260</guid> <description><![CDATA[It goes without saying really that we are in a recession, and many people and businesses are looking to save some money.  I&#8217;ve got a great idea to help out&#8230;STOP USING INTERNET EXPLORER! As a web developer, I have many things that I factor in when developing a new site, or adding on to an [...]]]></description> <content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-261" title="firefox_and_internet_explorer" src="http://beau.frusetta.com/wp-content/uploads/2009/03/firefox_and_internet_explorer.jpg" alt="firefox_and_internet_explorer" width="280" height="271" />It goes without saying really that we are in a recession, and many people and businesses are looking to save some money.  I&#8217;ve got a great idea to help out&#8230;<strong>STOP USING INTERNET EXPLORER</strong>!</p><p>As a web developer, I have many things that I factor in when developing a new site, or adding on to an existing site, and you know, people could really save some cash if I didn&#8217;t have to spend extra time making Internet Explorer play nice like the other browsers do with no &#8220;extra&#8221; help.</p><p>Let&#8217;s say that some normal markup would take about 10 hours&#8230;well I&#8217;ll quote it out as 13+ just because of that extra bit I&#8217;m going to have to spend on making Internet Explorer display the same way that the other browsers do just because they conform to standards.</p><p>So do yourself a favor&#8230;if you want to save some development costs, spread the word, Internet Explorer is the devil as far as XHTML/CSS is concerned &#8211; it just HAS to be different and it is costing YOU more money.</p><p>I think Microsoft did it that way, because you know you didn&#8217;t pay for that Office software you are using&#8230;so they are just stickin&#8217; it to ya in another way! hahahaha</p><p><a title="Download Firefox" href="http://www.mozilla.com/en-US/firefox/">Download Firefox</a> or <a title="Download Safari" href="http://www.apple.com/safari/">Download Safari</a> &#8211; and save your soul!!!</p> ]]></content:encoded> <wfw:commentRss>http://beau.frusetta.com/2009/03/11/wanna-save-money-on-development-costs-stop-using-internet-explorer/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using memcached

Served from: beau.frusetta.com @ 2012-02-07 17:51:29 -->
