This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
//<![CDATA[ | |
var image_url = '<?=base_url()?>public/shared/images/products/'; | |
$(document).ready(function() | |
{ | |
/* hide some divs */ | |
$('.wall, .window, .multiple_windows, .cart').hide(); | |
/* disable checkout buttons */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* dZero authentication library | |
* | |
* @package dZero Auth Library | |
* @category authentication | |
* @author Daniel Nolan (daniel.nolan@dZerodesign.com) & Brandon Cordell (brandon.cordell@dZerodesign.com) | |
* @copyright Copyright (c) 2009 dZero Web Design & Development. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* dZero image library | |
* | |
* @package dZero Image Library | |
* @category Image Manipulation | |
* @author Daniel Nolan (daniel.nolan@dZerodesign.com) & Brandon Cordell (brandon.cordell@dZerodesign.com) | |
* @copyright Copyright (c) 2009 dZero Web Design & Development. | |
* @link http://dzerodesign.com | |
* @version 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Link Helper | |
* | |
* @copyright Copyright 2010, Brandon Cordell | |
* @author Brandon Cordell <brandon@leadandrock.com> | |
* @link http://snippets.leadandrock.com/cakephp-link-helper | |
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | |
* | |
* Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE `table_name` AUTO_INCREMENT = xxxxx; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://maps.google.com/maps/api/staticmap?center=2312+gulf+to+bay+blvd+clearwater+fl&zoom=17&size=400x400&sensor=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// controllers/components/custom_acl.php | |
App::import('Component', 'Acl'); | |
class CustomAclComponent extends AclComponent { | |
public function example() { | |
// override the function | |
} | |
} | |
Then in your app_controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jobs_controller | |
class JobsController < ApplicationController | |
def new | |
@job = Job.new | |
end | |
def create | |
@job = Job.new(params[:job]) | |
@job.current_step = session[:listing_step] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> Booting WEBrick | |
=> Rails 3.0.8 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2011-07-24 21:52:53] INFO WEBrick 1.3.1 | |
[2011-07-24 21:52:53] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.7.0] | |
[2011-07-24 21:52:53] INFO WEBrick::HTTPServer#start: pid=33000 port=3000 | |
Started GET "/" for 127.0.0.1 at 2011-07-24 21:53:00 -0400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h2 Post Your Job | |
%ol | |
%li Listing Details | |
%li Company Details | |
%li Preview Your Listing | |
%li Finish | |
- form_for :job, :url => { :action => :create } do |f| | |
/ = f.error_messages | |
/ = render "jobs/shared/#{@job.current_step}", :f => f |