code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
App::uses('AppModel', 'Model');
/**
* EduType Model
*
* @property Education $Education
*/
class EduType extends AppModel {
//The Associations below have been created with all possible keys, those that are not needed can be removed
/**
* hasMany associations
*
* @var array
*/
public $ha... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* Message Model
*
* @property User $User
* @property User $User
*/
class Message extends AppModel {
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'user_id' => array(
'numeric' => array(
'rule' => array('numeric'),
//... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* TranslatorFriend Model
*
* @property Translator $Translator
* @property Friend $Friend
*/
class TranslatorFriend extends AppModel {
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'translator_id' => array(
'numeric' => array(
... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* MessagesUser Model
*
* @property Message $Message
* @property User $User
*/
class MessagesUser extends AppModel {
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'message_id' => array(
'numeric' => array(
'rule' => array(... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* Job Model
*
* @property User $User
* @property Bid $Bid
*/
class Job extends AppModel {
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'user_id' => array(
'numeric' => array(
'rule' => array('numeric'),
//'message' ... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* Destination Model
*
* @property Language $Language
*/
class Destination extends AppModel {
//The Associations below have been created with all possible keys, those that are not needed can be removed
/**
* hasMany associations
*
* @var array
*/
publ... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* UsersLanguage Model
*
* @property User $User
* @property Language $Language
*/
class UsersLanguage extends AppModel {
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'user_id' => array(
'numeric' => array(
'rule' => array... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* PhotoGroup Model
*
* @property Photo $Photo
*/
class PhotoGroup extends AppModel {
//The Associations below have been created with all possible keys, those that are not needed can be removed
/**
* hasMany associations
*
* @var array
*/
public $hasM... | PHP |
<?php
/**
* Requests collector.
*
* This file collects requests if:
* - no mod_rewrite is avilable or .htaccess files are not supported
* - requires App.baseUrl to be uncommented in app/Config/core.php
* - app/webroot is not set as a document root.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (ht... | PHP |
<div id="success">success ...</div>
<div class="photoGroups form" id="group">
<?php echo $this->Form->create('PhotoGroup'); ?>
<fieldset>
<legend><?php echo __('Add Photo Group'); ?></legend>
<?php
echo $this->Form->input('name');
echo $this->Form->input('text');
... | PHP |
<div id="sending" style="display: none;">Sending ...</div>
<div class="photoGroups form" id="group">
<?php echo $this->Form->create('PhotoGroup'); ?>
<fieldset>
<legend><?php echo __('Add Photo Group'); ?></legend>
<?php
echo $this->Form->input('name');
echo $this->Form->i... | PHP |
<div class="photoGroups view">
<h2><?php echo __('Photo Group');?></h2>
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo h($photoGroup['PhotoGroup']['id']); ?>
</dd>
<dt><?php echo __('Name'); ?></dt>
<dd>
<?php echo h($photoGroup['PhotoGroup']['name']); ?>
</dd>... | PHP |
<div class="photoGroups form">
<?php echo $this->Form->create('PhotoGroup');?>
<fieldset>
<legend><?php echo __('Edit Photo Group'); ?></legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('name');
echo $this->Form->input('text');
?>
</fieldset>
<?php echo $this->Form->end(__('Sub... | PHP |
<div id="success">
<h2><?php echo __('Photo Groups');?></h2>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<th><?php echo $this->Paginator->sort('name');?></th>
<th><?php echo $this->Paginator->sort('text');?></th>
<th class="actions"><?php echo _... | PHP |
<div class="users form">
<?php echo $this->Session->flash('auth'); ?>
<?php echo $this->Form->create('User');?>
<fieldset>
<legend><?php echo __('Please enter your username and password'); ?></legend>
<?php
echo $this->Form->input('username');
echo $this->Form->input('password');
... | PHP |
<!-- app/View/Users/add.ctp -->
<div class="users form">
<?php echo $this->Form->create('User');?>
<fieldset>
<legend><?php echo __('Add User'); ?></legend>
<?php
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('role', arr... | PHP |
<div class="users index">
<h2><?php echo __('Users');?></h2>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<th><?php echo $this->Paginator->sort('username');?></th>
<th><?php echo $this->Paginator->sort('password');?></th>
<th><?php echo $this->Pa... | PHP |
<div class="users view">
<h2><?php echo __('User');?></h2>
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo h($user['User']['id']); ?>
</dd>
<dt><?php echo __('Username'); ?></dt>
<dd>
<?php echo h($user['User']['username']); ?>
</dd>
<dt><?php echo __('Passwo... | PHP |
<div class="users form">
<?php echo $this->Form->create('User');?>
<fieldset>
<legend><?php echo __('Edit User'); ?></legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('username');
echo $this->Form->input('password');
echo $this->Form->input('role');
?>
</fieldset>
<?php echo... | PHP |
<div class="posts form">
<?php echo $this->Form->create('Photo', array('type' => 'file')); ?>
<fieldset>
<legend><?php echo __('Add Photo'); ?></legend>
<?php
echo $this->Form->file('file');
echo $this->Form->input('photo_group_id');
?>
</fieldset>
<?php echo $this->Fo... | PHP |
<div class="posts form">
<?php echo $this->Form->create('Photo', array('type' => 'file')); ?>
<fieldset>
<legend><?php echo __('Add Photo'); ?></legend>
<?php
echo $this->Form->file('file');
echo $this->Form->input('photo_group_id');
?>
</fieldset>
<?php
echo $this->Js... | PHP |
<div class="photos view">
<h2><?php echo __('Photo');?></h2>
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo h($photo['Photo']['id']); ?>
</dd>
<dt><?php echo __('Name'); ?></dt>
<dd>
<?php echo h($photo['Photo']['name']); ?>
</dd>
<dt><?php echo __('Photo Gr... | PHP |
<div class="photos form">
<?php echo $this->Form->create('Photo');?>
<fieldset>
<legend><?php echo __('Edit Photo'); ?></legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('name');
echo $this->Form->input('photo_group_id');
echo $this->Form->input('dir');
echo $this->Form->input... | PHP |
<div class="photos" id="success">
<h2><?php echo __('Photos');?></h2>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<th><?php echo $this->Paginator->sort('name');?></th>
<th><?php echo $this->Paginator->sort('photo_group_id');?></th>
<th><?php ech... | PHP |
<iframe src="http://cakephp.org/bake-banner" width="830" height="160" style="overflow:hidden; border:none;">
<p>For updates and important announcements, visit http://cakefest.org</p>
</iframe>
<h2>Sweet, "7010" got Baked by CakePHP!</h2>
<?php
App::uses('Debugger', 'Utility');
if (Configure::read('debug') > ... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php echo $scripts_for_layout; ?>
<script type="text/javascript"><?php echo $content_for_layout; ?></script> | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php echo $xml->header(); ?>
<?php echo $content_for_layout; ?> | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
echo $rss->header();
if (!isset($channel)) {
$channel = array();
}
if (!isset($channel['title'])) {
$channel['title'] = $title_for_layout;
}
echo $rss->document(
$rss->channel(
array(), $channel, $content_for_layout
)
);
?> | PHP |
<div class="groups form">
<?php echo $this->Form->create('Group');?>
<fieldset>
<legend><?php echo __('Add Group'); ?></legend>
<?php
echo $this->Form->input('name');
echo $this->Form->input('Photo');
?>
</fieldset>
<?php echo $this->Form->end(__('Submit'));?>
</div>
<div class="actions">
<h3><?p... | PHP |
<div class="groups index">
<h2><?php echo __('Groups');?></h2>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<th><?php echo $this->Paginator->sort('name');?></th>
<th><?php echo $this->Paginator->sort('created');?></th>
<th><?php echo $this->Pagin... | PHP |
<div class="groups view">
<h2><?php echo __('Group');?></h2>
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo h($group['Group']['id']); ?>
</dd>
<dt><?php echo __('Name'); ?></dt>
<dd>
<?php echo h($group['Group']['name']); ?>
</dd>
<dt><?php echo __('Created'... | PHP |
<div class="groups form">
<?php echo $this->Form->create('Group');?>
<fieldset>
<legend><?php echo __('Edit Group'); ?></legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('name');
echo $this->Form->input('Photo');
?>
</fieldset>
<?php echo $this->Form->end(__('Submit'));?>
</di... | PHP |
<?php
/**
* Application level View Helper
*
* This file is application-wide helper file. You can put all
* application-wide helper-related methods here.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)... | PHP |
<?php
/**
* Index
*
* The Front Controller for handling every request
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the ab... | PHP |
<?php
/**
* Web Access Frontend for TestSuite
*
* PHP 5
*
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice
*
* ... | PHP |
<?php
App::uses('AppController', 'Controller');
/**
* PhotoGroups Controller
*
* @property PhotoGroup $PhotoGroup
*/
class PhotoGroupsController extends AppController {
/**
* index method
*
* @return void
*/
public function index() {
$this->PhotoGroup->recursive = 0;
$this->set('photoGro... | PHP |
<?php
/**
* Static content controller.
*
* This file will render views from views/pages/
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files... | PHP |
<?php
// app/Controller/AppController.php
class AppController extends Controller {
//...
public $components = array(
'Session',
'Auth' => array(
'loginRedirect' => array('controller' => 'photos', 'action' => 'index'),
'logoutRedirect' => array('controller' => 'pages', 'a... | PHP |
<?php
App::uses('AppController', 'Controller');
/**
* Photos Controller
*
* @property Photo $Photo
*/
class PhotosController extends AppController {
/**
* index method
*
* @return void
*/
public function index() {
$this->Photo->recursive = 0;
$this->s... | PHP |
<?php
App::uses('AppController', 'Controller');
/**
* Users Controller
*
* @property User $User
*/
class UsersController extends AppController {
/**
* index method
*
* @return void
*/
public function beforeFilter() {
parent::beforeFilter();
$this->Aut... | PHP |
<?php
App::uses('AppController', 'Controller');
/**
* Groups Controller
*
* @property Group $Group
*/
class GroupsController extends AppController {
/**
* index method
*
* @return void
*/
public function index() {
$this->Group->recursive = 0;
$this->set('groups', $this->paginate());
}
... | PHP |
<?php
/* Photo Fixture generated on: 2011-11-11 08:26:14 : 1320996374 */
/**
* PhotoFixture
*
*/
class PhotoFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'coll... | PHP |
<?php
/* Group Fixture generated on: 2011-11-11 07:33:21 : 1320993201 */
/**
* GroupFixture
*
*/
class GroupFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'coll... | PHP |
<?php
/* PhotoGroup Fixture generated on: 2011-11-11 08:26:14 : 1320996374 */
/**
* PhotoGroupFixture
*
*/
class PhotoGroupFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => '... | PHP |
<?php
/* User Fixture generated on: 2011-11-11 08:26:14 : 1320996374 */
/**
* UserFixture
*
*/
class UserFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate... | PHP |
<?php
/* Users Test cases generated on: 2011-11-11 07:40:12 : 1320993612*/
App::uses('UsersController', 'Controller');
/**
* TestUsersController
*
*/
class TestUsersController extends UsersController {
/**
* Auto render
*
* @var boolean
*/
public $autoRender = false;
/**
* Redirect action
... | PHP |
<?php
/* PhotoGroups Test cases generated on: 2011-11-11 08:26:49 : 1320996409*/
App::uses('PhotoGroupsController', 'Controller');
/**
* TestPhotoGroupsController
*
*/
class TestPhotoGroupsController extends PhotoGroupsController {
/**
* Auto render
*
* @var boolean
*/
public $autoRender = false... | PHP |
<?php
/* Groups Test cases generated on: 2011-11-11 07:33:35 : 1320993215*/
App::uses('GroupsController', 'Controller');
/**
* TestGroupsController
*
*/
class TestGroupsController extends GroupsController {
/**
* Auto render
*
* @var boolean
*/
public $autoRender = false;
/**
* Redirect act... | PHP |
<?php
/* Photos Test cases generated on: 2011-11-11 08:48:19 : 1320997699*/
App::uses('PhotosController', 'Controller');
/**
* TestPhotosController
*
*/
class TestPhotosController extends PhotosController {
/**
* Auto render
*
* @var boolean
*/
public $autoRender = false;
/**
* Redirect act... | PHP |
<?php
/* PhotoGroup Test cases generated on: 2011-11-11 08:26:14 : 1320996374*/
App::uses('PhotoGroup', 'Model');
/**
* PhotoGroup Test Case
*
*/
class PhotoGroupTestCase extends CakeTestCase {
/**
* Fixtures
*
* @var array
*/
public $fixtures = array('app.photo_group', 'app.photo');
/**
* s... | PHP |
<?php
/* Group Test cases generated on: 2011-11-11 07:33:21 : 1320993201*/
App::uses('Group', 'Model');
/**
* Group Test Case
*
*/
class GroupTestCase extends CakeTestCase {
/**
* Fixtures
*
* @var array
*/
public $fixtures = array('app.group', 'app.user', 'app.photo', 'app.photo_group');
/**
... | PHP |
<?php
/* Photo Test cases generated on: 2011-11-11 08:26:14 : 1320996374*/
App::uses('Photo', 'Model');
/**
* Photo Test Case
*
*/
class PhotoTestCase extends CakeTestCase {
/**
* Fixtures
*
* @var array
*/
public $fixtures = array('app.photo', 'app.photo_group');
/**
* setUp method
*
* ... | PHP |
<?php
/* User Test cases generated on: 2011-11-11 08:26:14 : 1320996374*/
App::uses('User', 'Model');
/**
* User Test Case
*
*/
class UserTestCase extends CakeTestCase {
/**
* Fixtures
*
* @var array
*/
public $fixtures = array('app.user');
/**
* setUp method
*
* @return void
*/
publ... | PHP |
<?php
/**
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011, Ca... | PHP |
#!/usr/bin/php -q
<?php
/**
* Command-line code generation utility to automate programmer chores.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc.
*
* Licensed under The MIT License
* Redistributions of files must retain the abov... | PHP |
#!/usr/bin/php -q
<?php
/**
* Command-line code generation utility to automate programmer chores.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc.
*
* Licensed under The MIT License
* Redistributions of files must retain the abov... | PHP |
<?php
/**
* This is core configuration file.
*
* Use it to configure core behaviour of Cake.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of f... | PHP |
<?php
/**
* Routes configuration
*
* In this file, you set up routes to your controllers and their actions.
* Routes are very important mechanism that allows you to freely connect
* different urls to chosen controllers and their actions (functions).
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http... | PHP |
;<?php exit() ?>
;/**
; * ACL Configuration
; *
; *
; * PHP 5
; *
; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
; * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
; *
; * Licensed under The MIT License
; * Redistributions of files must retain the above copyright n... | PHP |
<?php
/**
* This is core configuration file.
*
* Use it to configure core behavior of Cake.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of fi... | PHP |
<?php
/**
* This file is loaded automatically by the app/webroot/index.php file after core.php
*
* This file should load/create any application wide configuration settings, such as
* Caching, Logging, loading additional configuration files.
*
* You should also use this file to include any files that provide glob... | PHP |
<?php
/*DbAcl schema generated on: 2007-11-24 15:11:13 : 1195945453*/
/**
* This is Acl Schema file
*
* Use it to configure database for ACL
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licen... | PHP |
<?php
/*i18n schema generated on: 2007-11-25 07:11:25 : 1196004805*/
/**
* This is i18n Schema file
*
* Use it to configure database for i18n
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Lice... | PHP |
<?php
/*Sessions schema generated on: 2007-11-25 07:11:54 : 1196004714*/
/**
* This is Sessions Schema file
*
* Use it to configure database for Sessions
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org... | PHP |
<?php
/**
* MeioUpload Behavior
* This behavior is based on Tane Piper's improved uplaod behavior (http://digitalspaghetti.tooum.net/switchboard/blog/2497:Upload_Behavior_for_CakePHP_12)
* @author Vinicius Mendes (vbmendes@gmail.com)
* @link http://www.meiocodigo.com
* @filesource http://www.meiocodigo.com/meioupl... | PHP |
<?php
/*
* jQuery File Upload Plugin PHP Example 5.2.9
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
*/
class UploadBehavior extends ModelBehavior
{
private $options... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* Photo Model
*
* @property PhotoGroup $PhotoGroup
*/
class Photo extends AppModel {
/**
* Validation rules
*
* @var array
*/
var $actsAs = array('Upload');
public $validate = array(
'photo_group_id' => arra... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* User Model
*
*/
class User extends AppModel {
/**
* Validation rules
*
* @var array
*/
public function beforeSave() {
if (isset($this->data[$this->alias]['password'])) {
$this->data[$this->alias]['password... | PHP |
<?php
/**
* Application model for Cake.
*
* This file is application-wide model file. You can put all
* application-wide model-related methods here.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* Group Model
*
* @property User $User
* @property Photo $Photo
*/
class Group extends AppModel {
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'name' => array(
'notempty' => array(
'rule' => array('notempty'),
//'me... | PHP |
<?php
App::uses('AppModel', 'Model');
/**
* PhotoGroup Model
*
* @property Photo $Photo
*/
class PhotoGroup extends AppModel {
//The Associations below have been created with all possible keys, those that are not needed can be removed
/**
* hasMany associations
*
* @var array
*/
public $hasM... | PHP |
<?php
/**
* Scaffold.
*
* Automatic forms and actions generation for rapid web application development.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistrib... | PHP |
<?php
/**
* A custom view class that is used for themeing
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright ... | PHP |
<?php
/**
* Backend for helpers.
*
* Internal methods for the Helpers.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the a... | PHP |
<?php
/**
* Helpers collection is used as a registry for loaded helpers and handles loading
* and constructing helper class objects.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT Lice... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php echo $scripts_for_layout; ?>
<script type="text/javascript"><?php echo $content_for_layout; ?></script> | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php echo '<?xml version="1.0" encoding="' . Configure::read('App.encoding') . '"?>'; ?>
<?php echo $content_for_layout; ?>
| PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
if (!isset($channel)) {
$channel = array();
}
if (!isset($channel['title'])) {
$channel['title'] = $title_for_layout;
}
echo $this->Rss->document(
$this->Rss->channel(
array(), $channel, $content_for_layout
)
);
?>
| PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011,... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.