Commit graph

293 commits

Author SHA1 Message Date
nate
866ea4bd5e Adding automagic content-type-to-view-template mapping for use with Router::parseExtensions(). Also adding default XML template.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3411 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 08:05:00 +00:00
nate
2acff78b48 Adding Helper callbacks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3410 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 08:03:32 +00:00
nate
48cd623b92 Deprecating NeatArray
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3409 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 08:02:59 +00:00
nate
be1737114c Adding $primary parameter to Model::afterFind() (and Behavior::afterFind())
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3408 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 08:00:54 +00:00
nate
cfa4ed3516 Refactoring Controller::set() and removing Controller::_setArray()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3407 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 07:58:10 +00:00
nate
8fadeb3146 Fixing Controller::postConditions() to use $this->data if no parameters are passed
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3406 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 07:53:45 +00:00
nate
7971fc0de6 Refactoring model SQL and DataSource references
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3404 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-17 11:44:29 +00:00
nate
86e9b9090a Adding 'IS NULL' fix from Ticket #1075, and fixing join issue with AND NOT
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3401 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-15 19:19:39 +00:00
nate
444adfdae8 Moving extension data from params['extension'] to params['url']['extension']
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3400 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-12 17:03:40 +00:00
nate
34ec833441 Adding file extension parsing to Router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3399 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-12 16:46:42 +00:00
nate
6a39b35df6 Adding additional data for pagination, and fixing docblock formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3398 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-12 13:06:21 +00:00
nate
ceb5c9c6f1 Making Router accessible as a singleton
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3397 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-12 13:02:51 +00:00
nate
1de5fee5bb Adding View::set(), allowing templates/elements to set variables for layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3396 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-12 01:18:28 +00:00
nate
8622b6f9ce Removing debug code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3395 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 17:06:39 +00:00
nate
02ed400c61 Fixing issue in FormHelper::select() with $options array numeric keys being reset
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3394 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 17:05:59 +00:00
nate
9c75c34b62 Updating HtmlHelper::link and HtmlHelper::url docblocks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3393 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 04:15:19 +00:00
nate
44b45bd4e5 Adding array-based URL support in HtmlHelper::url(), and refactoring HtmlHelper::link()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3392 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 03:57:41 +00:00
nate
f7d7a2be73 Changing pagination key names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3391 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-10 03:55:51 +00:00
nate
d78ef4d1fe Adding initial controller-side pagination implementation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3387 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-08 17:33:57 +00:00
dho
ba14aac3a0 Typo (PHP5 changed to !PHP5)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3381 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-07 07:46:14 +00:00
nate
0c59c8d284 Moving methods from RequestHandler to Sanitize
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3380 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-07 01:22:57 +00:00
phpnut
3fb0c55b47 "Fixing errors when CSS not showing after recent fixes to error class"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3379 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-07 01:10:44 +00:00
nate
cd381d62cf Adding fix for empty option group names in FormHelper::selectOptions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3378 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-07 00:48:25 +00:00
nate
951e257fa2 Removing model references to phpversion()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3377 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 23:21:36 +00:00
nate
0f69646186 Duplicating fix from [3373]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3375 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 22:51:59 +00:00
nate
1dfe482574 Converting Inflector to a singleton, and adding inflection cache
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3372 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 18:05:25 +00:00
nate
c9652ffaaa Adding PHP5 constant ((bool)phpversion() > 5)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3371 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 18:00:49 +00:00
nate
26977195c3 Fixing class name reference in TextHelper ('Html' -> 'HtmlHelper')
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3370 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 17:55:01 +00:00
phpnut
34651c4811 Adding fix for Ticket #1272
Fixes exploit with XSS and DEBUG === 0

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3362 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-05 22:59:01 +00:00
phpnut
0e527f46bf Reomved doc block comment from FormHelper class.
Corrected change made to the $expires variable


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3358 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-04 08:07:50 +00:00
phpnut
d0d1ce73cd Added FormHelper::create() to use in place of deprecated
HtmlHelper::formTag().
Fixed SecurityComponent so the _Token can be wrote to sessions



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3357 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-04 08:03:39 +00:00
phpnut
3c8148924e Added layout to the cached view.
Added check in View::renderCache() for xml layout, if the layout is xml 
then correct header will be sent.
Before it would render text output


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3356 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-03 19:31:57 +00:00
phpnut
badf1edc0b Added missing vars to cached files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3355 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-03 19:17:56 +00:00
phpnut
7232325624 Added TimeHelper::gmt()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3354 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-03 18:50:06 +00:00
phpnut
36ae60d0e7 Making changes to Security class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3353 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-03 06:49:51 +00:00
phpnut
cf6d284b29 Added patch from Ticket #1229
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3350 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 21:58:13 +00:00
phpnut
d8c447013e "Added fix for Ticket #1251
CakeSession::renew() is called now after"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3349 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 21:26:00 +00:00
nate
d30ff86369 Duplicating changeset [3344]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3345 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 04:20:51 +00:00
nate
c0300e35af Duplicating fixes from [3341]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3342 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 04:07:04 +00:00
nate
60c6d3be02 Duplicating changes in [3332].
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3333 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 02:32:30 +00:00
nate
2b69e99ae3 Refactoring View and SecurityComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3327 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-31 23:55:29 +00:00
nate
a75f33f430 Adding optgroup support for 2D arrays in FormHelper::select(); adding grouping ability to Model::generateList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3326 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 23:31:04 +00:00
nate
ab419f3fe1 Resolving minor Model implementation differences between PHP4 and 5
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3325 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 16:49:40 +00:00
nate
796222dfeb Abstracting PHP4/5 overload implementation to custom base class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3324 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 12:24:03 +00:00
nate
4d5a8cda92 Adding FormHelper::select() and FormHelper::selectOptions(). Deprecates HtmlHelper::selectTag().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3323 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 12:19:48 +00:00
phpnut
fc431393fb Removed depreciated calls to FormHelper::labelTag();
Added fixes from 1.1.x.x to HtmlHelper::dateTimeOptionTag();


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3320 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 18:12:45 +00:00
phpnut
06f8fbb7c9 Adding FormHelper::generateTime()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3319 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 18:01:50 +00:00
phpnut
943454d280 Adding time to FormHelper::generateFields()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3318 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 17:55:22 +00:00
phpnut
e683b7090b Adding fix for #1168
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3317 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 17:52:12 +00:00
phpnut
ad32fd4cf2 Merging fixes from [3315]
Fixing errors when trying to use plugin components.
Added Controller::_initComponents();
Changed helpers and components to allow using plugins helpers or
components.
Syntax:
var $helpers = array('PluginName/HelperName');
var $components= array('PluginName/ComponentName'); 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3316 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 17:28:13 +00:00