Bin will be removed on June 1, 2014 in favor of http://gist.github.com. Please save all your pastes before then. So long, and thanks for all the fish!×
View Paste
  1.    
  2. Tech Guru Calls for New Regulated Internet ::
  3.  
  4. http://www.infowars.com/tech-guru-warns-...
March 1st
View Paste
  1. <?php
  2. /**
  3.  * This is core configuration file.
  4.  *
  5.  * Use it to configure core behaviour of Cak...
View Paste
  1. <rchavik> what about supporting 'composer create-project croogo' ?
  2. <shama> yeah that is a good i...
View Paste
  1.  $this->Site->recursive = 0;
  2.             $this->Site->bindModel(array('hasOne'=> array('UsersSit...
View Paste
  1.  List of Interns with Project Hours
  2. Date Range: 2011-01-01 to 2013-02-25
  3. ID  First Name  Last N...
the result
View Paste
  1. here is the report_controller code:
  2.  
  3. <?php
  4.  
  5. class ReportsController extends AppController {
  6. ...
View Paste
  1. public function dados_usuario()
  2.     {
  3.         $this->uses = array('Usuario','Pais', 'Estado', 'Cidade');...
View Paste
  1. <div style="border: 0; float: none;" class="usuarios form">
  2. <?php
  3. echo $this->Form->create('Us...
View Paste
  1.     var $hasMany = array(
  2.         'ProductGallery' => array(
  3.             'className'     => 'Ga...
View Paste
  1. index.ctp
  2.  
  3. <div class="domain index">
  4.     <h2><?php echo __('Domains'); ?></h2>
  5.     <table cellpadd...
View Paste
  1. // Model - Empreendimentos
  2. <?php
  3.  
  4.  class Empreendimento extends AppModel
  5.  {
  6.    
  7.   public $...
View Paste
  1. <?php
  2.  
  3. App::uses('AppModel', 'Model');
  4.  
  5. class Contato extends AppModel {
  6.  
  7.     public $actsA...
View Paste
  1. <VirtualHost *:80>
  2.         ServerAdmin webmaster@localhost
  3.  
  4.         DocumentRoot /var/www/intr...
View Paste
  1. 1   SELECT `Banner`.`id`, `Banner`.`arquivo`, `Banner`.`titulo`, `Banner`.`descricao`, `Banner`.`li...
View Paste
  1. http://en.wikipedia.org/wiki/Pastebin
tght
View Paste
  1. //extract subdomain
  2. function getSubDomain($tldLength = 1){
  3.         $segments = explode('.', env('HTTP...
subdomain plugin router
View Paste
  1. --
  2. -- Estrutura da tabela `galerias_imagens`
  3. --
  4.  
  5. CREATE TABLE IF NOT EXISTS `galerias_imagens...
View Paste
  1. <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1.min.js"></script>  
  2. <scr...
View Paste
  1. <div class="contatos view">
  2.     <h2><?php echo __('Contato'); ?></h2>
  3.     <dl>
  4.         <dt><?p...
View Paste
  1. public $belongsTo = array(
  2.         'BorderCrossing' => array(
  3.             'className' => 'BorderCrossing',
  4.         ...
View Paste
  1. <?php
  2. App::uses('AppController', 'Controller');
  3. /**
  4.  * Authors Controller
  5.  *
  6.  * @property Au...
AuthorsController
View Paste
  1. delimiter $$
  2.  
  3. CREATE TABLE `people` (
  4.   `id` INT(11) NOT NULL AUTO_INCREMENT,
  5.   `first_name` ...
View Paste
  1. (
  2.     [0] => Object Object
  3.         (
  4.             [notificationType] => notificationReco...
View Paste
  1. <?php
  2. //In Model Offer.php I have declared the virtual fields
  3. public $virtualFields = array(
  4.  ...
View Paste
  1. <?php
  2. /**
  3. * I need to implement the following query in cakephp built-in pagination
  4. * component...
complex and custom query in cakephp paginate component
View Paste
  1. <?php
  2. class Roundstee extends AppModel {
  3. var $displayfield = 'roundsmaster_id';
  4. }
  5.  
  6.  
  7. -------...
View Paste
  1. fgdfgfffffgfdggd
hbb gdfgdf dfgdfgfdg
View Paste
  1. public $validate = array(
  2.     "first_name" => array(
  3.         "name"      => array(
  4.            ...
error on form nickname is "required" for some reason
View Paste
  1.    public function edit($id = null) {
  2.             if (!$id) {
  3.         throw new NotFoundExcepti...
View Paste
  1. /*
  2.     PartMaster hasMany Image
  3.     PartMaster HABTM Attribute
  4.  
  5.     1. Update PartMaster.id 2323
  6.     2. ...
View Paste
  1. $conditions = array('User.active' => 1);
  2. $order = array('User.id' => 'DESC');
  3. $users = $this->p...
View Paste
  1. {
  2.  
  3.     "pages": [
  4.         {
  5.             "Page": {
  6.                 "id": "31",
  7.              ...
View Paste
  1.     /**
  2.      * in_array itself has some PHP flaws regarding cross-type comparison
  3.      * - in_array('50x...
View Paste
  1. // sometimes i hate PHP
  2. $is = '50x';
  3. $array = array(40, 50);
  4. $this->assertTrue(in_array($is, $...
careful with in_array() and not "true" as 3rd param.
View Paste
  1.     public function login() {
  2.         debug($this->Session->read('Auth'));
  3.         if ($this->request->is('pos...
View Paste
  1. <?php
  2. /**
  3.  * Application level Controller
  4.  *
  5.  * This file is application-wide controller file...
Application controller
View Paste
  1. (function($){
  2.     // Setup Sexy Quiz
  3.     $.slickQuiz = function(element, options) {
  4.         va...
slickquiz, modified to have images
View Paste
  1. <?php
  2. App::uses('Folder', 'Utility');
  3. class AllJavascriptHelpersTest extends PHPUnit_Framework_...
Run all tests.
View Paste
  1.   public function beforeSave($options = array()) {
  2.                 if (isset($this->data[$this->...
View Paste
  1. //ProfissionaisController
  2.  public $uses = array('User', 'Ponto','Associado','UserProfile');
  3.  
  4.  ...
erro ao ativar usuario

Tags

.htaccess 0 0.1 1 1.0 1.1.14.4757 1.1.x.x 1.2 1.2 list model contr 1.2 MySQL AESENCRYPT 1.2.0.4451 1.3 1.3dev 1.3rc4 2.1 2.2RC1 2.3 2.4 3.6 3003 301 redirect 302 302 response 386 404 5.3 503 5376 saveall bug tra 633 recursive query 6dl cron3 abcbooks abtest access ACL acl alternative Acl ARO ACO Acl Auth AppControll ACL Login Redirect ACL Model Acl Models Acl MySQL acl parentnode acl phpgacl componen acl tree helper acl users aclBehavior aclextras AclNode ACLs acos action actions ActiveRecord ActiveRecord Model D actsas image add add controller add planificar adding adi adicionar formulario ADmad ADmad overriding for admin admin auth admin language routi adminedit advanced advanced validation afterFind age age limit aggregate ajax Ajax + Cake ajax chat ajax comments ajax controller jQue ajax debug suppress ajax dropRemote ajax form submit red ajax form validation AJAX intensive ajax javascript date ajax jQuery ajax link failed eff ajax pagination Ajax parse error ajax polling jQuery ajax prototype ajax prototype scrip ajax prototype worki Ajax Radio Prototype ajax select update ajax upload ajax view alberane albums alias alkemann all tests allowEmpty alpha alternative alvarorpsouza amazon amazon ecs amazon s3 android uploading im Apache apache htaccess modr apache vhost config apc api appache tags appconfig appcontroller AppController.php appcotroller AppError apphelper application AppModel appmodel delete mode apps session arguments Aro array array datasource exa array element rewrit Array Multidimension arraymerge options articleblurb element Articles aka Posts c as as3 flex amf asd asd.ww asdfs asf asiatronic confiavel ASM assetgatherer compon ASSOC MODELS association associations async Atom Attachement for http attachment Attachment model attachments audit auth auth acl cakephp ses auth allow mixedCase Auth appController auth cake 2.0 auth cakephp auth component hash auth component probl auth error message auth howto Auth redirect sessio auth redirection err Auth Tracker Auth User Registrati AuthComponent AuthComponent Broken Authcomponent login. Authcomponent Model authed Authenticate Authentication Autha authentication. authorization is not authorize authorize.net autocomplete error1 autofield autofocus required automagic automagic rss feed g autorouting autotrim avatar generator awesome ayar AYar JSON AYar Pagination az backup script bake bake model class err bake2 bakery tidy html fil BakeTask based bash git prompt bran bash host linux Basic basic acl basic auth question beanstalk beforeFilter beforeRender beforeSave behavior behavior afterFind m behavior historic de behavior inherit behaviors behaviour behaviour priorities belongsto bin binary bind bindmodel bindmodel observable biscazziere bit.ly short2long jq biy biy view blackhole Blog blog tutorial blog tutorial extens BOM book Book Index Book Model boostrap bootstrap bootstrap image link bootstraproutesi18n bosts bot branch Bread Crumbs brightstorm Browser browser performance bug bug 4589 test case bug paginte bug search build buildAcl Business small talks button buy vigrx C C:\Users\Hc Tech Sys cache cache browser header cache css php cache enum requestAc cache query buggy YM cacheable behavior caching routes cake cake 2.0 routing dyn cake auth opened pas cake bake cake BUG cake email not sendi cake errors Cake under MAMPs MyS cake2.1 cake3.0.0dev2 cakeamf cakedc cakedc search CakeEmail CakeError CakeError error layo cakeexplorer cakefest cakemafia cakemafia file behav cakephp CakePHP 1.2 cakephp 1.3 cakephp 2 cakephp 2.0 CakePHP 2.1 Cakephp 2.3 cakePHP and Backbone cakephp api cakephp auth fields cakephp passwords us cakephp router test cakephp routes admin cakephp spark CakePHP v1.2 RC2 cakephpdc cakephppt cakephppt slesh cakephptuga cakept cal calendar calendar helper callback callbacks calluserfuncarray camgame campaigns capistrano capistrano lols capouto captcha captcha.php cart session case cases Cats CepComponent change change password chart Check check for id check whitespace new checkbox checkbox form checkbox security checkbox selectTag chemimax chile ckeditor classregistry before clean cleaning sanitize co clear cache CLI clickatell closures cloudfront s3 asset clubmate code code.cakephp.org codig color colors are not loade colour column columnPrefix combinator comma command line comment model comment spam comments commit compare compile php5 complex complex validation Component component model component permanent component upload components concat condition conditional conditions config configuration configure settings m conrtoller generico console Console Output constant constant contact contact contain containable containable model fi containable paginati Containble errors container contains Contato.php ContatosController.p Content contentforlayout control Controller controller ajax controller city controller cookie controller country controller cursos controller customiza controller estado controller method re controller test case controller universit controllers controlling Models f conversion cookie Cookie com Form Cookies cooking core core path couchdb count counter countercache countercache sql may countries countries 2letter is country selector Create create controller da create user created column cron cron to delete old l croogo cross model validati CrossSite Request Fo cruisecontrol cs cart CSRF css css cookbook css debug css tweaks csspp CSV Importing Cakeph ctp curl Curso de CakePHP cursocake2km custom custom find custom find paging custom route custom validate custom validation me customfind model fin customvalidation d1rk danfreak data data em português data integrity data node data objects data source dinamico database database class database file database.php cakephp datamonths DataSource datasource counter t datasources dataval datavalida date date check date range filter datetime datetodate filter day day of the week db db config DB HELP DbAcl dbdesigner dbo DboMysql DboSource dd ddd Debug debug find debug save style css debug vardump pr NUL debuggable debugger debug outpu debugkit decrement deep Default default controller defect delete delete del cascade d deleteAll deleting delimited deny dependant selects deployment depth development DF dhcpd diebug diff digg Directory dispatcher dispatcher.php dispatchMethod displatcher display array on vie display field display label div docs doctype Domainfactory dompdf donotuse downgrade download download component Download Models Download Tables Downloads dowonderatwill_20130 doxygen drop down list Dropdown droplist DRY dummy text duplicable duplicate duplicates duvida dvida DxDiag dyml dynamic component lo dynamic HABTM замыкание e echo eclipse autocompleti edit edit controllers edit not working editing multiple tab elasticsource element element balance element cache elements else email email component setf email envio falecono emailComponent emailcomponent sendA empty engine enhancement ENUM Enumerable Envio Email CakePHP Environment erro erro2 error error ajax 2.0 error eromero bug error HABTM error handler error log error of selfrelatio Errors Erros search espaol event event listener events system example exemple de validatio expects expires Explorer Ext extend extending extjs cakephp helper extract f facebook facebook sdk plugin factory fail failed false FAQ fatal fdsa fdsfs fechas Feed feeds felix fff ffmpeg fgv field field display fijnd containable File file download functi file image upload be file upload file upload manageme file upload mimetype fileetag filename Filesystem filter filter2 filterting finance find find all contain find between find debug find not work find not working find problem find('count') findall findMethods FINVALDA firebug firebug sql debug firecake FireCake Ajax SqlLog Firefox fixed polymorphic be fixtures Fixturize flag flash flash setflash flexigrid flickr float foem label Folder fontsize foo force foreach foreach list table foregin key form form checkbox form formhelper habt form helper interval form tags form validation erro form validation erro formbuilder FormHelper formhelper required forms label style Formular ajax Javasc Formular appear Formular Appear diss formWizard forum framework Freak friend invitation Friends ftp ftpostscontroller ftpostsviews ftsql fullname fulltext function function email gases--- geneology General generic generic upload geocoder GET getEmptyRecord getPath getReport gfgggc fg git gitgithub.comCyanoge github github plugin server Gmail google analytics greeking grid group bt group by Groups gsoc gzip habtamable habtm habtm find join HABTM Issues habtm problem HABTM save HABTM Self Referenti habtm testcase habtm updating not i hack hairy regexp hangs.. has many through hash hasMany hasMany find findall hasMany form validat hasMany saveAll hasMany three levels hasMany to hasOne on hasone having count header injection HeadHelper js css hefe hell Help me Helper helper countries helper currency numb Helper error helper function helpers helpful helpfull Schemes hey HF VWQXBSEYUF historic Hit HitCount hj hjklhjklh hkhk holiday holidays home ctp home pages twitter l home twitter home.ctp home ctp li home.thtml Honeypot horizontal Horizontale hosting hotmail Household html Html helper html5ejemplo HTTP httpbakery.cakephp.o httpcode.cakephp.org httpd i18 hack for 1.1. i18n i18n containable i18n extract i18n l10n language i18n model i18n remodelling ichc lolcats cats lo id id given IE if iframe ignore ihateyou illegal offset Illegal offset type ilms Image image behaviour image display image magick image map image model image model v2 image pagination nex image relation issue image resize image resize class Image upload images images controller imagesposts imagick import import csv model important. incent include files increment index index.php index2 infinite inflections inflector Inflector cakephp inflexes Information inherit vars uses co Inheritance IniAcl iniset initialize initials input INSERT installer integration internationalization Internet invite friends invoice master detai iPhone iphone meta tags irc is.gd datasource sho isChecked validation ishome isUnique iui jamil jason java javascript javascript ajax erro javascript site posi javascript xregexp r JDH jenriquezdeceano jippi John join Join or is an and in joins joomla josoroma acl josoroma acl appcont josoroma acl aro aco josoroma acl sql gro josoroma tree jqeuryui autocoplete jqgrid JqGridHelper jQuery jquery ajax jquery ajax validati jquery date helper jquery helper datepi jquery live bind eve jquery.maximage.js jqueryengine jqueryenginehelper jqueryui datepicker js js helper error js objects jshelper json json response jule justification JW FLV Media Player kabturek keywords kinicky blog tutoria l l10n l18n L4tableschema label language lastInsertId Layout Layout Switch layouts layouts views lazy loading lazy loading model a lazy model LCTIME ldap leamas leet legacy data letters Life lighttpd lighttpd.conf modrew LIMIT LineItem link linux Liquids list list generation listagem ListHelper loader loadmodel model cach locale typecasting locking log Logable logged in Login login beforeFilter login1.0 loginsogin redirecti Logout logQuery logs lol lol insanity whydidn Long lorem ipsum lua lua wow LW Lyris mac os x mailer maintenance Management mantenance manuteno manual sorting ManualAuth mapping masanori mask master.log match matsimitsu maximage media MediaPlugin mediaview MediaViewer meioupload meioupload behavior meioupload testcase meioupload upload ar meioupload upload be members memberscontroller.ph memcache memcache cakephp cor memcache stats memcached menu menu element MenuController merge MergeBehavior MessagesController meta method migrations mimetype mimetypes missing table ... missing table fixtur mock model model auth Model beforeSave model behavior model bug hm model city model class model country Model custom fields model delete file di model fields model habt saveall model import model joins statisti model linking error model noise audio model posts images p model query Model search model sommaire model table variable model transactions model university model validation model validation 1.2 modelagem models models db model__model_id modify modrewrite modularization money helper format month month time locale mootools motormagz moveUp mp3 mptt mssql multi multilingual multiple multiple contains multiple display fie multiple file upload multiple level acl g Multiple Upload multiple webroots mutiple tables mvc mvc violation mysql MySQL Database confi mysql model Mysql Model Errors mysql warning mysqlex MysqlPHPApache incom name named parameters namenode NativeDriverSource nav nested nested queries nettalkproblem new ngingx and cakephp 2 nginx nginx cakephp nginx config NicEdit niceshort nl2br no for output nonobject not working notempty null oauth obAuth beforeFilter object Object Error object mapping objectify ObjectizeBehavior objects observable observeField offline offset error iterati ohloh ol OLDdomains.php OmG onclick one one and two one form Onfield only the important p openbase datasource openflashchart OpenID openvpn udp Opes oracle oracle.php orarischedule order ordered ORM other framework output outside override override tags override-validation owner behavior page PageRoute pageTitle paginação em busca paginao paginate Paginate associated paginate custom find Paginate friendly paginate habtm Paginating Search Re pagination pagination bug tag pagination containme pagination problems paginator paginator model over paging paieGenerate parameter handling parameters Parent Node parseExtensions parser pass by reference passed passing data password patch patch home.ctp paybras paypal pdf Pedophile performance perminant redirect permissions persist Person personal application Pervert Phally Phones php php 5.3.3 php array PHP OO Question php test lancewillet php-queue phpcurious phpfpm phpfreak101 phpgacl phpMagpie phpThumb phpthumb cakephp phpunit pieauth pl placeholder placeholder text Planets players plist plist launchd launch plugin plugins plural po PO localized german po translation tradu polymorphic popup possibly harmful post postConditions posted on google gro PostgreSQL posts posts postimages ima pquery pr pray prayer prefixos prepare prepopulate primaryKey problem problems processing product production products products error submi productscontroller.p Produtos profiler profiling s profiling logs sql q programs project Properties of prototype prototype ajax prototype ajax scrip prototype ajax uploa ptbr quaninte query query sql question queue queued email compone QUOTES r race condition Rachman radio radio html helper radio view edit rafaelbandeira3.word range rbac read readability realtime ajax chat rebuild reCAPTCHA reCAPTCHA captcha he recursion recursion in cake 1. recursive Recursive hasAndBelo redirecionamento redirect redirect on error redirect override reever Refactored refer reference passing regexplike RegionServer register registro reject relacionamento relacionamentos relating models relation model query relationship HABTM remember me remoteTimer remoteTimer Periodic rename rename thtml ctp rec renderLayout sample reorder Reputations request request data trim requestAction requestAction bug requesthandler require required requiresSecurity REST Rest Routing RESTful RESTful Routing results resume retrieve reverse routing REW rewrite rewritebase for a su ribafs risko role rollback romani ros route route caching router routers routes routes plugins contr routing rss RSS CakePHP rss feed rss helper ruby rule rules rut s S3 sample sanitize sapo sarkor save save habtm save model Save Portlet save two habtm model saveAll saveall postgre saveAll related mode saveAll validation saveAssociated scaffold scaffolding FK scaffolding relation scope sean_feeney search Search Function search not working Search Plugin searchable searchablepagination seconds form helper security Security Component security encryption Security error select select dinamico Select not work SelectBoxes selecttag selectTag nested arr send grid seo serialize serializeable session session change session debug session id sessioncomponent sessions set Set combine set extract setAction setFlash setFullPath settings Sex Offenders sha1 shared shell shneoh si222222 sicofaa sicofaa controller i sicofaa routes sign model simple simple auth simple auth login simple setup control simple validation simpleacl SimpleTest single field sitepreference sizeimage SkieDr SlavRTS zombehs slickquiz sloppy slug slug inflector sluggable sluggable behavior sluggish smake SMF Smooth Gallery Smooth Gallery Galle sms sms behavior Martz e snippet soap datasource Socket softdelete behavior Solids solr sort sortable.serialize sorting sousmenu space spam span Spanish special characters v Special offers alway speed spelling spinner sprintf SQL SQL cake yum sql erro sql not working sql query sql query complex sql query php SQL Query to Contain sql table sqlite sqlserver 2008 standalone model standard state model stateful static status STI store store config file strftime strict string structure stupidity sub sub domain subfolder submit subquery superList superman login Support Supporting supporting the poor- svk subversion repos svmany swfobject swfupload swfupload bug swfupload imageuploa swfupload init SwiftEmailComponent swiftmailer sybase system login tabelas diferentes table tables Tag tag cloud taggable tagging tags tags.ini tecknotes Teknoid 1.0 tell a friend temp template template layout templates templates1 tes test test case test case view test php fixture test shell test suite test thecanea testAction teste testghghs Testing Testing ControllerTe testing fixture tests text textmate integration the problem theaxiom acl theaxiom acl shell a thechaw theme theming layout in th TheUnpromisedOne this->data this->request->data threaded thumbnail thumbnails Thumbs Ticket ticket 5591 tidy time timeout timezone timezone management timezones title titleforlayout toarray toggle behavior tokens toolkit touch trac tranlation transaction transaction begin co transactions translate translate behavior translation translation behavior translation componen translation spanish tree tree categories tree select tree view treebehavior treehelper treeplus trees trhgtrh trim trivial data true truncate tuga tutorial twig twitter twitter controller two two fields two models tytrytrytr ui unbind unbindall unBindModel unbindModel example unbranch undefined auth undefined class undefined function r understanding unicode utf8 multiby unique unique validation unit test unit testing unserialize unsubscription work untangle update fix updateAll updateAll optimizing updater Upload upload behavior upload multiple view uploading UploadResult url useDbConfig AppModel User user controller user model user view User Welcome Element usercontroller.php username UserProfileCity Users users controller usertrack uses usetable usort sql array sort utf8 util v1 valiation valid validacao de campos validate validate compare fie validate comparison validate select and validate unique save validatePost validateusername validation validation error mes validation errors te validation internati validation problems validation unbind validation user cont value vardump varexport variables vat VBA vector to constant ver 1 version 1.3 Versioned Behavior verticle vhost view view adminedit view ajax prototype view audio noise view daniel create view for fallery view helper view index rss view questions ajax view search view user daniel views vigrx virtual host virtualFields virtualFields model vitos vitos1 warning warnings Wayneman Wayneman habtm Waynman webp tp php webroot website werew who set conditions r whoDidIt widgetizing with wizard wizardhelper helper workbench workflow writtens text wut www.TurkishAttacker. wysiwyg Wysiwyg plugin x xfce xhtml xinix xml xml firefox cakephp xml simplexml XML web service POST XMLbuild XMLHelper xmlrpc xpath yahoomail---- ycombinator year yslow zczxczxc __invoke