Commit graph

311 commits

Author SHA1 Message Date
phpnut
130b448ad8 fixing typo in doc comment for CookieComponent::$_ _values;
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4214 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-27 00:34:09 +00:00
phpnut
3f7bb1ca61 Adding secure CookieComponent class.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4213 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-27 00:27:51 +00:00
phpnut
042d7e5f3d Changed scaffold class to work with new FormHelper.
Removed scaffold add.thtml.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4200 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 11:32:58 +00:00
phpnut
43f2afa6eb Fixes for:
Ticket #1394 setFlash with layout fails because of missing params to View
Ticket #1480 Incorrect urls with Plugins
Ticket #1670 HtmlHelper::selectTag: problem when is_array($selected)
Ticket #1685 Router::url can cause incorrect links
Ticket #1774 Route::url() don't find the right route
Ticket #1776 Postgres - after each insert atempting to retrieve last inserted id from seq.
Ticket #1765 Dispatcher, route and plugins

Adding doc comments to EmailComponent
Removed ) in I10n::__l10nCatalog['lv'] 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4199 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 10:51:08 +00:00
phpnut
a1e3fe6f78 "Adding templating to email component"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4192 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 06:39:02 +00:00
nate
ebe6bab814 Adding Controller::flash() fix for Ticket #1783
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4164 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 20:31:06 +00:00
phpnut
42198541d3 Updating core files with translation function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4152 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 09:09:06 +00:00
phpnut
4f1c5ef386 Wrapping all core messages in translation function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4129 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 22:49:47 +00:00
nate
da1eab6e5f Adding 1.2 fix for Ticket #1740
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4092 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-12 14:25:58 +00:00
phpnut
3bc7ae19c2 Fixing Controller::generateFieldNames() when alias used in a HABTM
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4090 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-11 01:33:18 +00:00
nate
2c7f129aaa Adding 3rd param to Controller::redirect to allow auto-exiting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4082 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-08 08:36:36 +00:00
nate
403ff35bdb Refactoring code and updating docblocks in Security and RequestHandler components
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4075 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-06 20:37:12 +00:00
nate
33d07d0af9 Refactoring RequestHandler, and updating docblocks for RequestHandler and Security components
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4048 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 23:51:43 +00:00
phpnut
7b6e81c1e2 Fixing Scaffold in 1.2.x.x when setting Controller::persistModel = true;
Corrected error message with correct method name in scaffold_error templates.
Removed unneeded check for Controller::persistModel in 1.2.x.x.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4038 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 00:48:00 +00:00
gwoo
f9290417e2 adding ctp extensions for Controller::flash(), removing Controller::flashOut()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4034 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-30 17:58:33 +00:00
gwoo
8657757bde fix form helper, bake, refactor Controller::_selectedArray to just take the association name and checks Controller::data, also made Controller::_selectedArray work for submitted form data and returned model data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4029 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 10:21:22 +00:00
gwoo
5a39777c95 fix to baked views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4023 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 06:44:45 +00:00
phpnut
cbf61ff56f Merging fixes from 1.2 to 1.1.
Added fixes for missing models.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4012 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 22:05:22 +00:00
phpnut
2e8730e543 Merging fixes from 1.1.x.x into 1.2.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4010 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 11:18:05 +00:00
phpnut
881dc728cf Adding missing doc comments.
Updated use of Controller::persistModel; Lazy Loading of models now work when this is set to true.
Fixed Scaffold to work with Controller::persistModel = true;

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4003 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 06:25:11 +00:00
phpnut
d7e8a20b19 Adding missing doc comments to SecurityComponent.
Reformatted code to standards

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4000 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 00:00:23 +00:00
gwoo
5c5b77753e fix for scaffold
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3998 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 20:15:24 +00:00
gwoo
f5cdfcfd32 fix for generateFieldNames belongsTo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3996 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 19:11:15 +00:00
gwoo
41faae6265 fix for view files in scaffold
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3993 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 16:04:11 +00:00
gwoo
b056c5abbf refactoring scaffold, if var $uses exists scaffold will use the first model specified in the array, if $scaffold is an array, only methods added to the array will allow scaffold to render, ex: var $scaffold = array('index'); only the index action will be rendered
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3988 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 05:23:33 +00:00
nate
c4bee9b414 Fixing validationErrors, and updating ClassRegistry alias for View
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3985 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 04:45:03 +00:00
gwoo
2beb0f2f06 fixed bad check for uses from last commit, update scaffolding
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3984 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 02:31:18 +00:00
gwoo
dfcc29f6bf refactoring scaffold, scaffodl views, generateFieldNames, FormHelper, ClassRegistry, missingView
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3983 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 01:04:19 +00:00
nate
890c0125c8 Adding model-based form creation to FormHelper, deprecating old methods, and fixing issue where using $uses in AppController overwrites existing models
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3982 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 20:43:54 +00:00
dho
38596258f1 Fixing undefined variable errors
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3981 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 15:24:58 +00:00
gwoo
59049a0fa8 refactoring scaffold and generateFieldNames
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3980 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-26 06:15:30 +00:00
phpnut
aafdff2250 Fixing SessionComponent not loading when AppController has var $components set.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3971 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 22:58:58 +00:00
gwoo
9e404b3ce3 refactor of view paths
refactor theme view paths
fix cleanUpFields error, changed ext in controller to ctp, fix for paginate conditions and scope

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3970 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 22:04:43 +00:00
nate
c680a98eea Refactoring Controller::generateFieldNames()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3961 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 09:27:01 +00:00
phpnut
1fa21aa551 Refactoring session classes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3958 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 08:43:17 +00:00
nate
e8222444b8 Removing extra directory separators in uses() paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3954 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 06:42:24 +00:00
phpnut
c308326555 SessionComponent and SessionHelper to extend CakeSession.
Refactored both classes and added doc comments

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3952 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 04:15:08 +00:00
gwoo
f77254511f 1.2 updates to ACL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3951 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-24 17:27:11 +00:00
nate
e8751b7103 Refactoring Security component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3947 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 23:06:19 +00:00
phpnut
984ceb3b51 Adding fix for Ticket #1629
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3935 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 10:06:49 +00:00
phpnut
ca5f7d952c Merging fix when using Controller::persistModel = true and a requestAction method is used
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3911 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 20:33:21 +00:00
phpnut
b76c2179e1 Merged fixes from [3906]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3907 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 20:08:53 +00:00
phpnut
c773b64bfe Starting to refactor model loading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3885 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 21:48:05 +00:00
dho
38a606d2a2 Adding doc strings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3877 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-19 15:03:46 +00:00
nate
47c86b8c8b Minimizing RequestHandler array usage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3861 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-12 19:55:30 +00:00
phpnut
f95285d75f Starting to change all core code that uses $this->params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3859 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-12 00:12:34 +00:00
nate
075891f1f9 Refactoring code and updating method references
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3841 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 03:28:24 +00:00
nate
97753554c6 Adding Security::requireSecure() to require controller actions to be accessed via SSL-secured connections
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3839 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 02:18:41 +00:00
nate
e17610842c Refactoring RequestHandler::setAjax() to use respondAs(), adding fix for respondAs(), and adding RequestHandler::isSSL() (Ticket #1604)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3808 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 04:53:27 +00:00
phpnut
9bc506b058 Merging fixes from 1.2.x.x into 1.1.x.x and vice versa.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3788 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 07:15:44 +00:00
phpnut
d7724fbfc4 Adding Controller::_selectedArray() to 1.1.x.x branch
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3779 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 19:35:47 +00:00
nate
40381bf3ff Allowing SessionComponent::write() to accept an associative array of keys/values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3763 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-30 16:35:57 +00:00
phpnut
02df38c26f Renaming user_id to foreign_key in all ACL scripts
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3758 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 04:40:30 +00:00
phpnut
6af7c6cca9 Added fix for #1317.
Method would return true on the first loop if persistModel was set to true.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3756 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 02:54:41 +00:00
phpnut
12a6df23ef Adding Controller::_selectedArray().
Changed Bake to use _selectedArray instead of _ _selectedArray()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3742 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-26 03:08:53 +00:00
nate
2046eed40d Refactoring DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3740 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-25 13:27:32 +00:00
nate
2993a8d412 Adding Router path fixes for error pages (Ticket #1566), fixing code formatting (Dispatcher), and adding API enhancements for model behaviors
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3727 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 17:24:37 +00:00
phpnut
37329bb385 Reverting changes in [3706]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3707 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 12:55:19 +00:00
phpnut
e6e50dc936 Warning: Invalid argument supplied for foreach() in /project/cake/libs/controller/controller.php on line 724
Error would occur when the associated table did not contain any records

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3706 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 12:23:28 +00:00
nate
b570516c7e Adding more docblock information to RequestHandler, and enhancement for respondAs()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3699 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 20:23:30 +00:00
nate
eea428e55d Code formatting and 1.2 interface updates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3689 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-16 20:02:34 +00:00
nate
3a03674c76 Moving DataSource::getFieldValue to Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3667 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 17:19:03 +00:00
phpnut
af7856e505 Adding fix for #1489
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3621 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 23:44:20 +00:00
nate
a0ee5743e5 Allowing user to specify database for ACL tables. (Ticket #1508)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3610 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 15:47:50 +00:00
nate
c5befd7569 Adding ability to auto-serialize POSTed XML data, and requestedWith(), for detecting Content-type of POSTed data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3606 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-08 14:52:58 +00:00
dho
899cf2bebf Applying patch from ticket #1502 (fixing problem with redirect)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3600 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-05 09:17:47 +00:00
nate
8319e0ff30 Adding extra URL parameters for pagination
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3594 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-29 01:30:09 +00:00
nate
cb29921144 Adding constructClasses() fix for using named URL arguments (Ticket #1400)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3593 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-29 00:15:13 +00:00
nate
6cf1447217 Refactoring controller paginatiion
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3585 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 20:29:04 +00:00
gwoo
29436a0ec5 adding fix for #1462 and an older error component file name
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3583 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 17:39:39 +00:00
gwoo
89b34f30ca fixing wrong file name for missing component in 1.2, and fixing some bad code I introduced into the form helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3579 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 02:38:58 +00:00
phpnut
963eef2c65 Committing fixes to email component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3573 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-23 23:35:22 +00:00
nate
1f475dc193 Disabling content-type header output when DEBUG >= 2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3572 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-22 17:52:46 +00:00
phpnut
549a2ce350 correcting duplicate spaces added to email messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3538 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-21 09:32:05 +00:00
phpnut
e459a7c4e2 Refactoring EmailComponent class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3537 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-21 08:49:18 +00:00
nate
a184f16268 Adding delete() method for Aro/Aco models, thanks Andy (Ticket #1233)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3533 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-21 00:12:40 +00:00
nate
daf235cd23 Adding fix for Ticket #1435
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3526 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-20 04:43:28 +00:00
nate
fbfcdc24dd Adding 1.2 branch fix for Ticket #1077
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3522 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-19 16:12:50 +00:00
phpnut
fc54b0f31a Adding fix for #1165.
Changing Model::__constructLinkedModel() to use the association name for 
the instance of an associated model.
Changed DboSource::read() to use the association name.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3484 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-14 21:59:51 +00:00
phpnut
9fa1748678 "Refactoring email component,
adding smtp method for sending email using smtp"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3471 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-12 01:55:32 +00:00
phpnut
40d39976c1 "Adding initial design for EmailComponent.
This is still being developed and has not been fully tested as it is.
Some vars are not used yet."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3470 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-12 00:26:50 +00:00
phpnut
dbdf3c7ddc "Adding vars to the EmailComponent class"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3469 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-11 20:37:13 +00:00
phpnut
3078352759 "Adding email component class"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3467 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-11 20:06:01 +00:00
nate
c42b793266 Minor update to Controller::postConditions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3459 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-10 17:08:53 +00:00
nate
fe3522c305 Adding Controller::disableCache() method, to send cache-disabling headers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3441 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-29 19:09:35 +00:00
dho
fa38da38e5 Adding note to api doc of the redirect function (#1358)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3440 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-29 07:05:43 +00:00
nate
cdb11b2ba2 Changing $params['url']['extension'] to $params['url']['ext']
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3426 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 12:08:44 +00:00
nate
419808f7df Adding RequestHandler::responseType() to get current response header, and adding automagic loading of helpers based on request content type
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3424 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 07:44:10 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
phpnut
9d19dee879 Renaming branched version directory
git-svn-id: https://svn.cakephp.org/repo/branches/1.1.x.x@3085 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-14 18:02:37 +00:00
phpnut
e5c074a0dc Merging fixes into 1.x.x.x branched code:
Revision: [2955]

Revision: [2951]

Revision: [2918]

Revision: [2911]

git-svn-id: https://svn.cakephp.org/repo/branches/1.x.x.x@2958 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-26 05:29:17 +00:00
phpnut
5e268e0805 Merging fixes into 1.x.x.x branched code:
Revision: [2802]




git-svn-id: https://svn.cakephp.org/repo/branches/1.x.x.x@2805 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-09 02:15:47 +00:00
phpnut
f5a4a58758 Renaming directory for 1.x.x.x code base
git-svn-id: https://svn.cakephp.org/repo/branches/1.x.x.x@2771 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-05-07 03:35:58 +00:00
phpnut
e385b666dd Merging fixes into the trunk.
Revision: [2641]
Adding fix for file upload data

Revision: [2640]
Disabling Dispatcher access to controller callbacks

Revision: [2639]
Fixing output bug in AjaxHelper::link()

Revision: [2638]
Adding fix for Ticket #714 (The OC! [not the tv show])

Revision: [2637]
Additional refactoring of DB_ACL


git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2642 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-29 21:51:30 +00:00
phpnut
0c0dec8bc0 Merging fixes into the trunk.
Revision: [2629]
Fixed recursive associations when set to 0, did not add the hasOne or belongsTo in the query.
Changed scaffold to use recursive setting of 0 in all methods that call Model::findAll()
Fixed Invalid argument supplied for foreach() notice in show.thtml
Removed 500 record limit in Controller::generateFieldNames()

Revision: [2628]
Merging changes from model_php5.php

Revision: [2627]
Fixing messed up characters in dbo_odbc, adding docstrings, and giving connect() a return value

Revision: [2625]
Bringing all DB drivers up to date

Revision: [2624]
Changed fixed for Ticket #609 so and empty array is set instead of null.
This is more consistent with the other arrays that are returned if an association is found

Revision: [2623]
Adding fix for Ticket #712

git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2630 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-28 05:26:06 +00:00
phpnut
4a8c03ef1c Merging fixes into the trunk.
Revision: [2618]
Adding fix for Ticket #609

Revision: [2617]
Added fix for Ticket #684

Revision: [2616]
Adding patch from Ticket #649

Revision: [2615]
Adding fix for Ticket #608

Revision: [2614]
Additional fix for Ticket #584

Revision: [2613]
Adding fix for Ticket #584

Revision: [2612]
Added fix for undefined index notices

Revision: [2609]
Adding fix for Ticket #658

Revision: [2608]
Adding fix for Ticket #635, and code formatting fixes in FormHelper

Revision: [2607]
Adding fix for Ticket #636

Revision: [2606]
Adding fix to allow associations to be defined through non-associative arrays

Revision: [2605]
Adding fix for Ticket #672

Revision: [2604]
Adding fix for Ticket #708

Revision: [2603]
Adding fix for Ticket #687

Revision: [2602]
Refactoring database drivers, and adding fix for Ticket #398

Revision: [2601]
Merging change from model_php5.php

Revision: [2600]
Adding ODBC driver

Revision: [2599]
Adding fix for Ticket #702

Revision: [2598]
Adding fix for Ticket #699

Revision: [2597]
Fixing an issue in Model::set(), and moving limit() to DboSource

Revision: [2595]
Fixing unit test download URL in Bake

Revision: [2594]
Adding fix for Ticket #698

Revision: [2593]
Adding fox for Ticket #231

Revision: [2592]
Adding fix for Ticket #630, and updating MS SQL driver docstring

Revision: [2577]
Adding $alias property to enable future Oracle support

Revision: [2568]
Merging changes to bake from old sandboxes

git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2620 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-27 10:04:08 +00:00
phpnut
32f9e1e0e5 Merging fixes into trunk.
Revision: [2522]
renamed Bake class file

Revision: [2521]
removing old bake scripts

Revision: [2520]
Adding new Bake script

Revision: [2519]
Adding fix for Ticket #622

Revision: [2518]
Adding fix for Ticket #535

Revision: [2517]
Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model

Revision: [2516]
Adding fix for Ticket #618

Revision: [2515]
More error page fixes

Revision: [2514]
Adding fix for Ticket #690

Revision: [2513]
Removing empty method

Revision: [2512]
Adding fix for Ticket #675

Revision: [2511]
More fixes for Ticket #670

Revision: [2510]
Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1.

Revision: [2509]
Adding fixes for Tickets #677 and #681

Revision: [2508]
Added patch from Ticket #632

Revision: [2502]
Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore

Revision: [2501]
Rewriting foreach loops in queryAssociation()

Revision: [2493]
Adding fix for Ticket #673

Revision: [2492]
Adding reconnect() method, to reconnect to database with different settings

Revision: [2491]
Adding Microsoft SQL Server driver [EXPERIMENTAL]

Revision: [2490]
Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations

Revision: [2488]
Adding fix for Ticket #651

Revision: [2487]
Adding fix for Ticket #665

Revision: [2486]
Adding fix for Ticket #655

Revision: [2485]
Forcing DboMysql to validate disconnect, and adding fix for Ticket #663

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
phpnut
43e074acb0 Merging fixes and enhancements into trunk.
Revision: [2457]
Adding fix for Ticket #612

Revision: [2456]
"Enables use of Controller::$data in addition to Controller::$params['data']"

Revision: [2455]
"Adding fix for Ticket #634"

Revision: [2454]
"Removing trailing directory separator on ROOT"

Revision: [2451]
Dispatching and routing changes for IIS

Revision: [2450]
Downgrading error level in AclNode::create and adding additional filename check in listClasses()


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2462 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-06 00:06:02 +00:00
phpnut
c899c085f5 Merging fixes and enhancements into trunk.
Revision: [2448]
removing tabs in last commit

Revision: [2447]
Adding fix for limit in all associations

Revision: [2446]
Added fix for Ticket #569

Revision: [2443]
Adding fix for Ticket #592.

Revision: [2437]
Adding fix for Model::findNeighbours().
Was returning all associations and fields. Now recursive is set to 0 and only returns the prev and next keys array

Example $this->Category->findNeighbours(null, 'Category.id', 4);

Will return,

Array
(
    [prev] => Array
        (
            [Category] => Array
                (
                    [id] => 3
                )

        )

    [next] => Array
        (
            [Category] => Array
                (
                    [id] => 5
                )

        )

)

Revision: [2432]
Removed the DS constant from the plugin var when it is set in Dispatcher.
Added "$this->plugin.DS." constant in files where needed after change above.
Added fix for Ticket #577.

Revision: [2428]
Added fix for HtmlHelper::checkbox() it ignored the value provided as a parameter
Fix for Ticket #605.
Fix for Ticket #607.


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2449 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-28 19:46:59 +00:00
phpnut
87d703eaa5 Merging fixes and enhancements into trunk.
Revision: [2426]
Added patch from Ticket #566.

Revision: [2425]
Adding patch from Ticket #603.

Revision: [2424]
Adding fix for Ticket #604

Revision: [2423]
Adding fix for Ticket #601

Revision: [2422]
Refactoring ACL and updating queries

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2427 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-28 02:44:55 +00:00
phpnut
c141859d3a Merging fixes and enhancements into trunk.
Revision: [2420]
Added fix for Ticket #320.
Fixed Model::save() so it will only allow a model to save itself.
Fixed Model::save() when saving a HABTM association

Revision: [2419]
Added fix for Ticket #463

Revision: [2418]
Added patch from Ticket #598

Revision: [2417]
Added fix for Ticket #581

Revision: [2416]
Adding fix for Ticket #579

Revision: [2415]
Adding patch from Ticket #597

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2421 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-26 19:15:30 +00:00
phpnut
427f439f38 removed extra $ in last commit
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2409 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-26 10:03:06 +00:00
phpnut
d595e46055 Merging fixes and enhancements into trunk.
Revision: [2406]
Adding model persistence when using var $uses array.
Added var $name to PagesController

Revision: [2405]
Adding 5 of the 7 patches from Ticket #594

Revision: [2404]
Added fix for Ticket #575

Revision: [2403]
"Adding fix for core vendors directory when cake installation is separated into different paths "

Revision: [2402]
Added fix for Ticket #588

Revision: [2397]
Adding fix for Ticket #580

Revision: [2387]
Adding fix for Ticket #558

Revision: [2386]
Adding fix for Ticket #562

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2407 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-26 09:59:40 +00:00
phpnut
78441c007c Merged fix into trunk
Revision: [2376]
Added fix from Ticket #556

Revision: [2375]
Added fix for Ticket #557

Revision: [2374]
Added fix for Ticket #552 and  Ticket #553

Revision: [2373]
Added fix for Ticket #554


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2377 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-19 14:13:07 +00:00
phpnut
23d183e46b Merging fixes and enhancements into trunk.
Revision: [2369]
Added missing doc comments to classes

Revision: [2368]
Removing core view paths from Configure class

Revision: [2367]
Updating View class to use new Configure class to search paths for view files

Revision:[ 2366]
Corrected loadControllers() in basics.php

Revision: [2365]
Updating function in basics.php to use new Configure class

Revision: [2364]
removed duplicate loading of app/config/bootstrap.php

Revision: [2363]
Added new Configure class to hold paths to models, views, and controllers related to Ticket #470.
Moved loading of app/config/bootstrap.php to Configure class from app/webroot/index.php.
Added creating instance of Configure instance in cake/bootstrap.php
Added example of setting custom paths in app/config/bootstrap.php 
Corrected error in Object::_savePersistent().

Revision: [2362]
Added fix for Ticket #534

Revision: [2361]
Refactoring persistent code a little more.
File now holds a variable with the serialized class and is include vs. reading file contents.

Revision: [2360]
Refactored persistent methods to use cache()

Revision: [2359]
Fixing array_combine() Warning in  Model::generateList()

Revision: [2358]
Set var $persistModel to false by default

Revision: [2357]
Moved persistent code to Object class.
Moved $TIME_START variable to top of file.
added __sleep methods for models

Revision: [2356]
Reverting persistent changes to Model class

Revision: [2355]
Adding fix for Ticket #550

Revision: [2354]
Corrected errors in persistent code

Revision: [2353]
Corrected overwrite in the model/model_php4.php file.

Revision: [2352]
Adding persistent methods to Model class.
This will allow caching of classes.
Added app/tmp/persistent directory.

Revision: [2351]
Reverting changes to dbo_source.php in [2350]

Revision: [2350]
Removed name pattern matches related to Ticket #534

Revision: [2349]
Adding fix for Ticket #548

Revision: [2348]
Adding fixes from Ticket #547.

Revision: [2347]
Adding fixes from Ticket #546.

Revision: [2346]
Adding fix for Ticket #527

Revision: [2345]
Refactored Html::url()

Revision: [2344]
Last fix for Ticket #483 

Revision: [2343]
Updating last commit

Revision: [2342]
Adding fix for Ticket #483

Revision: [2341]
Adding fix for Ticket #543, DBO will now only cache SELECT queries

Revision: [2340]
Adding session_write_close() to the CakeSession::__regenerateId()

Revision: [2339]
Adding patch from Ticket #544

Revision: [2338]
Adding patch from Ticket #529

Revision: [2337]
Adding patch from Ticket #528

Revision: [2336]
Removing the converting of \n to <br /> in Sanitize::html()

Revision: [2335]
Added bash script from Ticket #533

Revision: [2334]
Added enhancement for Ticket #474

Revision: [2333]
Correcting errors introduced with prior fix

Revision: [2332]
Correcting errors introduced with prior fix

Revision: [2331]
Performance optimization for NeatArray::findIn(): replaced foreach loop with for

Revision: [2330]
Minor performance optimization: Replacing all occurrences of low() with strtolower()


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2370 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-19 03:26:43 +00:00
phpnut
fb46bcceef Merging fixes and enhancements into trunk.
Revision: [2316]
Added fix for message:  Warning: array_diff(): Argument #2 is not an array in Controller::__construct()

Revision: [2315]
Adding fix for Ticket #517

Revision: [2314]
Corrected scaffold throwing errors when irregular words are used for model/table names

Revision: [2313]
Added patch from Ticket #495.
Added missing ?> bracket at end of file

Revision: [2312]
Corrected model names being set to lower case, When matched to an irregular word in Inflector methods.
Added custom inflections.php file to allow application to have custom inflection rules.
Correct variable in View::renderCache(). error thrown if time class was used $time variable changed to $timeStart.

Revision: [2311]
Corrected $db placed in wrong section of the method

Revision: [2310]
Removing the db attribute from the model, This will help better with persistent objects

Revision: [2309]
Adding fix for Ticket #490

Revision: [2308]
Update to previous commit

Revision: [2307]
Removing references to Model->db. DataBase connections are now singleton-only.

Revision: [2306]
Refactoring getDataSource() into loadDataSource() and enumConnectionObjects()

Revision: [2305]
Reverting changes to this file

Revision: [2304]
Fixing Ticket #496, getColumnType, and docstrings

Revision: [2303]
Adding fix for Ticket #510


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2317 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-15 20:45:59 +00:00
phpnut
9f9c84de52 Merging fixes and enhancements into trunk Added fix for Ticket #492.
Revision: [2299]
Added fix for Ticket #494.
Added fix for Ticket #489.

Revision: [2298]
Fixed regex that would match more than one <cake:nocache></cake:nocache> group and cause a  wrong replace of the tags

Revision: [2297]
Corrected error in the convertSlash() function

Revision: [2296]
Another bug found and corrected after last commit.
This is working as expected now, and will be refactored.

Revision: [2295]
Fixed undefined index in CacheHelper::__parseFile();
Fixed caching when method is cached without params being set in the key

Revision: [2294]
Corrected caching for index method when accessing www.example.com/controller this would not use default index method.
Removed auto setting of the data variable in Controller::render();
Added additional check for cached index view in bootstrap.php

Revision: [2293]
Refactoring caching code.
Fixed problem with files being cached for all methods.
Added code to cache files to create helpers. 
Moved duplicate code to basics.php as a function

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2300 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-14 11:54:03 +00:00
phpnut
fc0854e397 Merging fixes and enhancements into trunk.
Revision: [2287]
Merging changes from model_php4.php

Revision: [2286]
Added serialized object data to the cached file.
Instances of the view helpers are available in the views now.
You also have access to the Controller::<component>, example $this->controller->Session;

Revision: [2285]
Adding Controller::postConditions() to convert a POST'ed data array to a Model conditions array

Revision: [2284]
Adding Model::invalidate() and refactoring Model::invalidFields().  Adding a fix for RequestHandler::accepts()

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2288 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-14 02:26:08 +00:00
phpnut
f9197dc7a5 Merging fixes and enhancements into trunk.
Revision: [2282]
Fixed caching of content when wrapped with the <cake:nocache> tags </cake:nocache>

Revision: [2281]
Fixing DBO compatibility in AclNode::_resolveID(), adding docblock and fixing code for stripslashes_deep(), and adding request detection helper methods to RequestHandler

Revision: [2280]
Added fix for empty pages being cached

Revision: [2279]
Fixed undefined index in CacheHelper::cache()

Revision: [2278]
Fixed bug in CacheHelper::__parseFile() regex pattern did not match properly

Revision: [2277]
Adding CacheHelper class.
Refactored View::_render() to use new CacheHelper.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2283 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-13 03:48:39 +00:00
phpnut
3d3d083f30 Merging fixes and enhancements into trunk.
Revision: [2261]
Adding fix for Ticket #479.
Removed unused $alias variable.

Revision: [2260]
Merging changes from model_php4.php

Revision: [2259]
Added Model::_clearCache(). This is used to delete cached pages when changes are made to a model,
will also be used to delete cached queries

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2262 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 06:58:53 +00:00
phpnut
89fbf1c8bf Merging fixes and enhancements into trunk.
Changing version number to 1.x.x.x, 0.10.x.x code base had been changed to the version number 1.x.x.x, and what was planned for 1.x.x.x code has
now been moved to 2.x.x.x, and 2.x.x.x moved to 3.x.x.x. This will give us easier to track version numbers from now on.

Revision: [2248]
Merging changes from model_php5.php

Revision: [2247]
"Removing test code from view class"

Revision: [2246]
Removed cache time define from core.php.
Modified the __() function in basics.php to echo string like it will in later versions of cake with translations.
Refactored the cache checking in bootstrap.php to read the files embedded time stamp and delete or output the cached version.
Added View::cacheView() for caching pages.


Revision: [2245]
Moving column formatting from DBO to Sanitize

Revision: [2244]
Adding beforeValidate() Model callback, and allowing query data to be modified in beforeFind()

Revision: [2243]
"Adding caching changes to Controller class "

Revision: [2242]
"Added check to delete cached version if it has expired"

Revision: [2241]
Adding app/cache/views directory

Revision: [2240]
"Fixed missing variable"

Revision: [2239]
"Adding full page caching to view class."

Revision: [2238]
"Adding defines for caching"

Revision: [2237]
"Adding caching check too bootstrap.php"

Revision: [2236]
Adding ClassRegistry::removeObject from Ticket #477

Revision: [2235]
"Correcting setting in DATABASE_CONFIG class"

Revision: [2231]
Adding convenience function am(), which allows merging an infinite number of arrays merged into one

Revision: [2207]
Change Model::save() to call beforeSave() before validations

Revision: [2199]
Removing conditions method call in Model::field()

Revision: [2196]
Setting proper mime type again

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2250 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 00:11:40 +00:00
phpnut
0f8f8243d5 Added SecurityComponent class missed in merge from revision [2186]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2249 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 00:03:24 +00:00
phpnut
03ba042f41 Merging fixes and enhancements into trunk.
Revision: [2193]
Adding fix for Ticket #471

Revision: [2192]
Adding fix from Ticket #464.

Revision: [2191]
Adding fix for Ticket #461

Revision: [2190]
Adding fix for array_merge_recursive() error when unbindModelis used

Revision: [2189]
merging changes made in model_php5.php

Revision: [2188]
Fixing controller so $viewPath can be set as a var

Revision: [2186]
Adding Security component

Revision: [2185]
Adding additional RequestHandler detection, form security authentication, and automagic view variable $data

Revision: [2183]
Fixing Ticket #473

Revision: [2182]
Adding fix for Ticket #261

Revision: [2181]
Changing MySQL column defs from 12 hour times to 24 (#465)

Revision: [2180]
Fixing Tickets #463 and #462, and an error in Controller::setAction()

Revision: [2179]
Fixing a bug I found in AjaxHelper::link(), and changing the stopwatch time to 4 decimals

Revision: [2177]
Added patch from Ticket #459

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2195 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-08 03:13:32 +00:00
phpnut
9c5e3bb979 Merging fixes and enhancements into trunk.
Revision: [2168]
Added patch from Ticket #458

Revision: [2167]
Merging changes made to model_php5.php

Revision: [2166]
Added methods to allow what is discussed in Ticket #452

Revision: [2165]
Added fix for Ticket #453

Revision: [2164]
Added DBO column abstraction and column-based data formatting/escaping

Revision: [2163]
Added patch from Ticket #457.
Added fix for Ticket #456.

Revision: [2162]
"Added fix suggested in Ticket #454"

Revision: [2161]
"Diff added + symbol, removed it"

Revision: [2160]
"Added all fixes for Ticket #448"

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2169 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-01 19:13:48 +00:00
phpnut
6cc1cf8b80 Merging fixes and enhancements into trunk.
Revision: [2151]
Merging changes made to model_php5.php into model_php4.php.

Revision: [2150]
Cleaning up code, removing in line comments

Revision: [2149]
Fixed wrong params passed to SessionComponent::setFlash() in Scaffold class.
Changed View::_render() to only suppress errors in the view when DEBUG is set to 0.

Revision: [2148]
Adding suggestion from Ticket #446.

Revision: [2147]
Added fix for Ticket #443

Revision: [2146]
Added fix for Ticket #444.
Added table.field in the CakeSession class database methods

Revision: [2145]
Renamed _new to _blank in default.thtml.
Starting to refactor changes that broke self joined associations.

Revision: [2144]
Adding fix for Ticket #202

Revision: [2143]
Adding support for nested array-based conditions

Revision: [2141]
Updating View for Session flash changes

Revision: [2140]
Adding Session flash enhancements for a ticket that I took but can't find because someone else closed it

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2152 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-28 07:35:01 +00:00
phpnut
f37dfb6302 Merging fixes and enhancements into trunk.
Revision: [2133]
Fixing sub package doc tag

Revision: [2132]
Added fixes when ini_set() is disabled.                   
Problem reported here:
    http://groups.google.com/group/cake-php/browse_thread/thread/f8e537b165da733e/06888a4112345f59

Revision: [2131]
"Correcting subpackage doc block tags "

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2134 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-25 19:20:18 +00:00
phpnut
80d6673717 Merging fixes and enhancements into trunk.
Revision: [2129]
Removed Scaffold::__renderScaffold();
Added more detailed Page Title.

Revision: [2128]
Renamed Scaffold::__scaffoldView to Scaffold::__scaffoldIndex
Removed all Scaffold::__scaffoldIndex ()

Revision: [2127]
Removing Scaffold::__scaffoldNew() and Scaffold::__scaffoldEdit()

Revision: [2126]
Added Scaffold::__scaffoldForm() to replace
Scaffold::__scaffoldNew()  and Scaffold::__scaffoldEdit()

Revision: [2125]
Removed Scaffold::__scaffoldCreate()  and Scaffold::__scaffoldUpdate()

Revision: [2124]
Refactoring Scaffold class. Added Scaffold::__scaffoldSave() to replace
Scaffold::__scaffoldCreate()  and Scaffold::__scaffoldUpdate()

Revision: [2123]
Removed debug code

Revision: [2122]
Added fix for Ticket #435.
Select boxes now repopulate with the selected values pass in the form

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2130 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-25 09:36:52 +00:00
phpnut
7a9fff407a Merging fixes and enhancements into trunk.
Revision: [2120]
Added fix for error in Controller::cleanUpFields().
Fixed typo in Scaffold::__scaffoldUpdate().

Revision: [2119]
Added fix for missing view error.
Added changes to allow SessionComponent::flash() to return similar to what was suggested in Ticket #430.
Changed delimiter to -! in the arrays used in DboSource::conditions().
Fixed single quotes being added when value was empty

Revision: [2118]
Corrected some bugs found in DboSource::conditions();
Added loading of app/config/bootstrap.php to index.php after the core bootstrap.php loads.
Changed doc block comment in app/config/bootstrap.php

Revision: [2117]
"Adding  app/config/bootstrap.php.
Used for application wide settings"

Revision: [2116]
"Added better regex to the DboSource::fields()"

Revision: [2115]
Moving the DIRECTORY_SEPARATOR to top section of the file

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2121 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-25 04:42:31 +00:00
phpnut
8eeff93637 Merging fixes and enhancements into trunk.
Revision: [2112]
Fixing path to tmp/logs

Revision: [2106]
Fixing $disableStartup

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2113 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-23 21:50:08 +00:00
phpnut
e45d19e199 Merging fixes and enhancements into trunk.
Revision: [2104]
Correct changes of names in scaffold.

Revision: [2103]
Changed methods to protected methods
Controller::_beforeScaffold($method)
Controller::_scaffoldError($method)

Revision: [2102]
Added 2 methods to Controller class that must be overridden in child classes if you place to use Scaffold in production applications.
This will allow you to perform checks before displaying the forms, and also before performing any Scaffold methods.

Each of these methods are passed the name of the method they represent in Scaffold.
Controller::beforeScaffold($method)
Controller::scaffoldError($method)

These 3 name are passed to the methods above, but are not view related 
'create' when creating a new record in the database
'update' when updating a record in the database.
'delete' name says what it does

These are view related names passed to the methods above
'index' the list of all records shown in scaffold.
'edit' the edit record form.
'show' when displaying a specific record.
'add' add record form.


Scaffold can now be used to generate forms and customize these on a per app or per controller basis.
Scaffold will first look:
Example: app/views/posts/
Then: app/views/scaffold/

There are also specific naming used for these views each related to a scaffold method.

scaffold.list.thtml
scaffold.edit.thtml
scaffold.new.thtml
scaffold.show.thtml

Added scaffold_error.thtml that is used if a controller does not implement Controller::scaffoldError() when using scaffold and Controller::beforeScaffold() is implemented and returns false

Revision: [2101]
Corrected some bugs found in View that would cause errors when using scaffold.

Revision: [2100]
Added fix for Ticket #427 

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2105 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-23 11:40:52 +00:00
phpnut
d2bd117486 Merging fixes and enhancements into trunk.
Revision: [2098]
Removed check for database class to load model classes from the models directory.
Fixed missing views not being found.

Revision: [2097]
Fixed the WWW_ROOT setting

Revision: [2096]
Changed the way Sessions component is added to the components array

Revision: [2095]
Moved the WWW_ROOT define.

Revision: [2094]
Components/Helpers etc. in AppController are now automatically added to all controllers

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2099 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-23 08:24:23 +00:00
phpnut
8ab148a598 Merging fixes and enhancements into trunk.
Revision: [2087]
Removed array setting that is not needed

Revision: [2086]
Added unbindModel to turn off associations on the fly.
These are reset after a call to a find<*> method.
Added one more level key to isset check in DboSource::conditions.
Previous check would always return true.

Revision: [2085]
Refactored DboSource::fields()

Revision: [2084]
Added fix for Ticket #419    

Revision: [2083]
Refactoring DboSource::conditions.

Revision: [2082]
Deleted a few methods by accident adding them back

Revision: [2081]
Added fix for Ticket #420
Added $startQuote and $endQuote vars to the MySql class, these must be added to each Dbo<database> if the database uses
a quote char around fields. Example MySql uses this ` MSSQL uses [ and ].

Revision: [2080]
Added delete() alias for del() in Model and SessionComponent classes.
This is suggestion from Ticket #421

Revision: [2079]
Added fix for Ticket #106.
This was added before but lost in a merge.
This fix allows adding a custom tags.ini.php file to app/config.
This file will be merged with the core, overwriting any keys that match, and adding those that do not.

Revision: [2078]
Refactoring DboSource::conditions().

This method will now return the Model.field properly when passed a string.
You can also set you own clause.
WHERE, GROUP BY, HAVING, and ORDER BY.
If one of these in not the first characters in the string, WHERE will be added by deafult.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2088 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-02-22 09:15:12 +00:00