Commit graph

430 commits

Author SHA1 Message Date
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
381ccff146 Fixing loader loops
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3388 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-08 21:17:20 +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
nate
5792e45b09 Fixing PHP5 evaluation for versions below 5.1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3386 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-08 16:38:02 +00:00
phpnut
33519d37ad "Refactoring last commit for admin check"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3383 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-07 11:51:10 +00:00
phpnut
6cade0a681 "Adding fix for admin being searched in entire string"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3382 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-07 11:32:42 +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
f2a89197e2 Optimizing loops in uses() and vendor()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3374 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 22:51:30 +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
nate
905117bbc6 Duplicating fixes from [3351]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3352 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-02 03:28:53 +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
8a9b882f0c Making same fixes as [3336]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3337 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 02:47:40 +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
f8123f131a Duplicating fixes in [3329]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3330 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-01 02:19:34 +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
phpnut
566f1b60b9 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@3315 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 17:08:23 +00:00
phpnut
e820592d69 Removed the param being passed to Controller::__construct();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3314 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 15:50:03 +00:00
phpnut
4594e09cde Adding changes for new Theme view
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3313 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 05:59:42 +00:00
phpnut
303c366a2e Merging fixes into branched code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3312 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 05:58:31 +00:00
phpnut
6b8e11fe2c Adding fix in loadView().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3311 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 04:51:29 +00:00
phpnut
8b69475c08 "Adding theme view to 1.2.x.x branch"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3309 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 04:16:54 +00:00
phpnut
0ae0905004 Adding fix for Ticket #1219.
Checking for an object being passed.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3306 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 17:13:02 +00:00
phpnut
5549ddfd75 Replacing labelTag with new label().
Merged changes to bake.php


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3305 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 16:52:36 +00:00
nate
1dc6c1128b Adding TextHelper::toList(), to create natural-language lists from arrays
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3304 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 04:20:30 +00:00
nate
c50275de24 Cleaning up TextHelper code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3303 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 04:12:24 +00:00
nate
cd3578e0b4 Adding optional $data parameter to Model::create(), allowing default data to be set when initializing a model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3302 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-27 04:10:41 +00:00
nate
71a119ba3d Fixing up FormHelper::label
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3299 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-25 02:18:37 +00:00
phpnut
aee87dcdda Merging changes to bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3297 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-23 19:06:21 +00:00
phpnut
e2937c405e Merging changes to bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3296 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-23 18:59:52 +00:00
nate
03fe0df49c Adding :-style named arguments
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3295 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-23 16:13:05 +00:00
nate
de0c4e8500 Implementing Form.Element.EventObserver in AjaxHelper::observeField (Ticket #1194)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3294 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-23 16:10:35 +00:00
phpnut
4347f25025 Reverting changes made by gwoo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3284 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-22 16:45:18 +00:00
gwoo
ceb72b3415 removing some extra whitespace and removing an old @ from dbo_mysqli
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3282 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-22 15:09:43 +00:00
gwoo
c19dbc8806 added model property assoc. this allows access to the association keys => conditions, fields, order, limit, offset from the controller
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3281 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-22 15:05:01 +00:00
nate
07ec77ef22 Adding model behaviors, model onError callback, and updating FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3280 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-22 14:13:07 +00:00
dho
67d75ba18b Adding ; after endifs (ticket #1195)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3278 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-22 06:09:11 +00:00
gwoo
6b62ff231a updated msqli driver
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3276 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-21 22:01:26 +00:00
dho
37e7d798d1 Applying doc patch (ticket #1186)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3275 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-21 08:48:41 +00:00
dho
bd4dfb525f Applying doc patch (ticket #1187)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3274 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-21 08:03:03 +00:00
dho
49ca6981ca Applying patch to add docblocks (ticket #1171)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3273 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-18 11:11:44 +00:00
phpnut
6dc000f826 Beginning to port fixes to 1.2.x.x code from 1.1.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3269 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-15 03:47:27 +00:00
phpnut
6d71310f00 Beginning to port fixes to 1.2.x.x code from 1.1.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3268 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-15 03:36:53 +00:00
nate
82ebd41fa6 Adding fix for Ticket #1088, additional refactorings, and code formatting fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3253 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-13 14:55:48 +00:00
nate
bc745b234a Making same change as [3235]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3236 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-12 04:37:49 +00:00
nate
0a5b1b6450 Adding fix for Ticket #1063
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3234 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-12 04:25:00 +00:00
nate
5af4c7e372 Adding same fixes as [3225] and [3223], and adding HtmlHelper::para() and HtmlHelper::div()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3226 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-11 14:34:35 +00:00
nate
4cf5dea802 Removing unused DBO pseudo-base-class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3219 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 19:55:56 +00:00
nate
5d7d605723 Adding misc. db driver updates, and fixing code formatting of SQLite driver
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3218 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 19:49:13 +00:00
nate
0d2ebb1cb3 Finally implementing RequestHandlerComponent::prefers(), and adding respondAs() to provide a wrapper for header('Content...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3217 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 19:46:19 +00:00
phpnut
e9c3f1ad81 Added fix for Ticket #1082
Fixed lowercased model name being generated in bake.php

Removed $this->viewPath from generated controller classes

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3215 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 17:39:51 +00:00
phpnut
43fd87e5bc Adding fix for Html::selectTag();
Fix corrects the last selected value from being dropped


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3214 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 16:24:22 +00:00
nate
4e183bf492 Fixing notices generated by new HABTM features
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3213 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 15:29:55 +00:00
dho
af18379343 Fixing syntax error
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3212 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 07:07:45 +00:00
phpnut
d8533c4d34 Fixing Notice: Undefined property: AppController::$webservices when debug messages are displayed
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3211 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 02:46:16 +00:00
phpnut
25fc73660c Fixing Fatal error: Call to undefined method HtmlHelper::submitTag()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3210 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-07 01:37:12 +00:00
nate
c65e645f8c Adding fix for Ticket #1102
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3209 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-06 16:44:03 +00:00
nate
cd88eb01ef Adding new tags for JavaScript and FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3208 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-06 16:43:18 +00:00
phpnut
08b8fca099 Removing bad character in last commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3206 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-06 13:45:13 +00:00
phpnut
3f2bc3ab82 Adding fix for PHP 5.2 errors.
The View::__construct() had a check for $controller != null;
Removing this fixed the errors related to not setting the vars from the controller instance.

Removed $this->parent =& $this->controller->parent; and $this->displayFields=&$this->controller->displayFields; which are not defined in the core Controller

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3204 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-06 13:04:21 +00:00
nate
f367ec5509 Fixing typo in Security component constructor
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3203 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-05 14:23:21 +00:00
gwoo
03756a8cf2 modifying Dispatcher::_getNameArgs()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3202 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-04 21:25:21 +00:00
nate
86fc29facb Adding join table selects (MySQL-only so far), findBy/findAllBy magic method enhancements (Ticket #412)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3200 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-04 01:29:48 +00:00
nate
4f425785d0 Adding DOM ID to controller dump, Ticket #1045
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3196 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 06:27:57 +00:00
nate
21be313929 Adding create() method to create DataSources dynamically; Ticket #1068
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3195 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 06:23:11 +00:00
nate
baf2364c83 Adding $safe param to JavascriptHelper::codeBlock() to wrap JS code in comment and CDATA tags for compatibility with older browsers and XHTML (Ticket #1072)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3194 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 05:30:56 +00:00
nate
0dec0353b1 Model::create() sets default field values based on table def (Ticket #1079 [MySQL-only so far])
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3193 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 05:18:34 +00:00
nate
1bce3d3dbe Fixing example component file name in error page (Ticket #1083)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3192 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-29 04:26:15 +00:00
nate
b4c3a22bd6 Fixing string escaping in object(), adding enhancements to event(), and consolidating linkOut into link()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3186 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-27 10:35:02 +00:00
nate
5df320bb89 Adding fixes as optimizations for mutli-div updates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3185 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-27 10:29:35 +00:00
phpnut
a24b5a32d8 Removing useless echo the baked view.thtml
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3184 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-25 19:16:21 +00:00
dho
4ead20e052 Removing redundant value() function (ticket #1066)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3183 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-25 11:11:32 +00:00
dho
7e53b3909d Removing php extension from vendor (ticket #1067)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3181 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-25 07:56:08 +00:00
phpnut
3a9343c7a7 Merged fixed from [3177] into 1.2.x.x branch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3179 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-24 21:33:51 +00:00
nate
6743ee082d Adding WAP device detection to RequestHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3176 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-24 17:55:06 +00:00
gwoo
e941e48a07 fixing bug in requireLogin check of SecurityComponent::stratup()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3169 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-24 05:18:07 +00:00
nate
b785a26d5f Changing file_get/echo to include() for outputting content loaded from /vendors, to allow embedded PHP
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3166 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-23 23:13:16 +00:00
nate
77d92d58c1 Fixing DboMysql to use port # if specified
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3165 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-23 21:16:55 +00:00
gwoo
12e511477c updating 1.2.x.x generic css
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3162 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-22 21:58:42 +00:00
gwoo
93036b8681 updating skel home.thtml
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3160 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-22 21:07:03 +00:00
phpnut
8c6b0576af Merging changes from 1.1.x.x branch:
[3157]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3158 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-22 20:42:53 +00:00
dho
be03e8150c Adding missing semicolon which is shown as syntax error in PHPEclipse
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3156 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-21 07:58:54 +00:00
dho
dfa6e140fa Added missing word
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3151 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-20 12:24:48 +00:00
phpnut
b242f56655 Adding fix for Ticket #1036.
This corrects: "No such file" error with bake.php when choosing to 
include basic class methods message


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3143 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 20:02:36 +00:00
phpnut
342a91e09d removed depreciated *tag()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3142 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 18:18:23 +00:00
nate
85d5fe3bba Adding fix for Ticket #910 (broken db sessions)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3140 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 16:15:49 +00:00
dho
6cca0d00ea Merging changes on bake.php from 1.1.x.x branch [3138]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3139 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 15:00:17 +00:00
dho
c477ab64c6 consistent use of "Bake" in help text
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3137 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 07:23:27 +00:00
phpnut
b31c449167 Added fix for Ticket #1016
Check box in edit view does not work.
Model::column() was returning text instead of boolean for the column type

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3136 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 02:55:53 +00:00
phpnut
a0743d40e7 Corrected bad char in [3134]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3135 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 01:47:08 +00:00
phpnut
e7b26eed83 Added fix for Ticket #1019.
bake.php on windows adding slash before filepath when creating unit test files

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3134 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 01:44:18 +00:00
phpnut
965874ccae Merging fix from 1.1.x.x branch
[3132]
Adding patch from Ticket #1004.
This fixed problem with table prefix not being used when querying for the last record id

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3133 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 01:08:52 +00:00
nate
dfb49aad38 Adding additional fixes for autoComplete(), Ticket #1002
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3131 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-18 19:21:09 +00:00
nate
3d4b5ebc09 Enabling global loading of JavaScript and CSS files thru vendors folder
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3128 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-18 05:16:23 +00:00
nate
1cca718150 Adding customization parameters to Controller::postConditions(), for Ticket #585
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3127 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-17 14:10:01 +00:00
nate
66a3bb94ce Removing references to deprecated methods and fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3126 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-17 13:57:44 +00:00
nate
5de968246f Fixing NumberHelper code formatting, and adding currency() method (Ticket #853)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3124 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-17 03:19:43 +00:00
nate
2db82c2b30 Removing deprecated methods that are not in common usage, and adding HtmlHelper::docType() to generate doctype tags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3123 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-17 02:33:12 +00:00
nate
1c0c451f54 Adding Component::initialize() callback, and fixing Dispatcher code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3122 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-16 21:02:38 +00:00
nate
f809a0652d Refactoring SecurityComponent callbacks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3121 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-16 20:06:11 +00:00
nate
06c626c113 Adding SecurityComponent::requireLogin() - Supports basic and digest HTTP authentication, for Ticket #571
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3120 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-16 19:45:33 +00:00
nate
96ce786fe7 Added support for InPlaceCollectionEditor in AjaxHelper::editor (when 'collection' key added to options). Updated all script.aculo.us controls, and refactored and formatted code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3119 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-16 19:02:30 +00:00
nate
6ea773a946 Fixing Ticket #1017 - added AjaxHelper::isAjax() to detect Ajax requests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3118 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-16 16:10:28 +00:00
nate
9e00a87b1c Adding fix for Ticket #20, added isThisWeek(date) and isThisMonth($date)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3117 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 19:26:13 +00:00
nate
feba2725c2 Code formatting and base configuration update
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3116 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 18:38:32 +00:00
nate
0d707d4360 Adding ability to specify named arguments in the URL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3115 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 15:51:34 +00:00
nate
79ba4fa94d Fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3114 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 15:29:06 +00:00
nate
3d4d5e4388 Adding fix for Ticket #804
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3113 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 14:44:16 +00:00
nate
e0edd33ebd Adding fix for Ticket $645; it is now possible to force a separate query (instead of left join) by adding 'external' key to association definition
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3112 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 14:39:34 +00:00
nate
9144b7a738 Adding ability to set encoding in db config (Ticket #795), MySQL and PostgreSQL only
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3111 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 14:10:22 +00:00
nate
50411bd87b Adding fix for Ticket #900
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3110 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 13:40:02 +00:00
nate
14d5d8e979 Adding fix for Ticket #896
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3108 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 13:18:01 +00:00
nate
ae3a8d0f9e Adding fix for Ticket #1005
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3105 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 12:12:46 +00:00
phpnut
45c36d122d merging fixes from [3102] into 1.1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3103 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 10:12:36 +00:00
phpnut
eefd467da7 Adding fix for components not being available in PHP 4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3102 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 09:58:45 +00:00
dho
a8e49419bf removed characters which caused syntax errors
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3101 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 08:39:50 +00:00
nate
cc35b218e1 Adding fix for Ticket #992
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3100 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-14 23:55:17 +00:00
nate
f85cff7394 Adding fix for Ticket #979, and additional code enhancements
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3099 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-14 23:43:59 +00:00
nate
d09f6c4de9 Adding fix for Ticket #856, and additional code formatting fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3098 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-14 23:24:54 +00:00