This file contains hidden or 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
public function index() { | |
$this->Excel->recursive = 0; | |
$this->set('excels', $this->Paginator->paginate()); | |
} |
This file contains hidden or 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
CREATE TABLE TimeSlots ( | |
ID integer PRIMARY KEY NOT NULL, | |
SessionNumber integer, | |
SessionName text | |
); | |
# note- this table name is excel because it was originally imported from, well, excel. | |
#might be easier to think if this table as if it were named "Session" | |
CREATE TABLE excel ( | |
ID integer PRIMARY KEY NOT NULL, |
This file contains hidden or 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
<div class="excels form"> | |
<?php echo $this->Form->create('Excel'); | |
$this->Form->inputDefaults(array('rows' => '1') );?> | |
<fieldset> | |
<legend><?php echo __('Edit Session'); ?></legend> | |
<?php | |
echo $this->Form->hidden('ID', array('hidden')); | |
echo $this->Form->input('FirstName'); //, array('div' => array('style' => 'display:inline'))); | |
echo $this->Form->input('LastName');//, array('div' => array('style' => 'display:inline'))); |
This file contains hidden or 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 | |
App::uses('AppModel', 'Model'); | |
/** | |
* Excel Model | |
* | |
*/ | |
class Excel extends AppModel { | |
/** | |
* Use table |
This file contains hidden or 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 | |
/** | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | |
* | |
* Licensed under The MIT License | |
* For full copyright and license information, please see the LICENSE.txt | |
* Redistributions of files must retain the above copyright notice. | |
* | |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^$ /webroot/ [L] | |
RewriteRule (.*) /webroot/$1 [L] | |
</IfModule> |
This file contains hidden or 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 | |
/** | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | |
* | |
* Licensed under The MIT License | |
* For full copyright and license information, please see the LICENSE.txt | |
* Redistributions of files must retain the above copyright notice. | |
* | |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
This file contains hidden or 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
public function index() { | |
$this->set('submissions', $this->paginate($this->Submissions)); | |
} | |
public function SendEmailAcceptance() { | |
$this->loadmodel("submissions"); | |
$this->set('title', 'Send Email Confirmation'); | |
$this->set('submissions', $this->paginate($this->Submissions)); | |
$this->layout = 'defaultadmin'; |
This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^$ public/ [L] | |
RewriteRule (.*) public/$1 [L] | |
</IfModule> |
This file contains hidden or 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
class ColorController extends Controller { | |
/** | |
* Display a listing of the resource. | |
* | |
* @return Response | |
*/ | |
public function index() | |
{ | |
// if you uncomment the next two lines, it will save the output to colors.html in the laravel public/cache folder |
OlderNewer