Commit graph

881 commits

Author SHA1 Message Date
phpnut
7dc7c03991 Adding fix for #1888
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4364 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 22:01:33 +00:00
nate
b721b963d3 Fixing key quoting in JavascriptHelper::object() (Ticket #1986)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4362 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 21:17:07 +00:00
nate
caeed6bf4c Adding PostgreSQL conditional expressions to DboSource (Ticket #1914)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4360 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 21:07:32 +00:00
phpnut
b36dc55327 Adding fix for #1953
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4359 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 21:05:51 +00:00
nate
cedb56676f Adding insertQueryData fix for foreign keys = 0 (Ticket #1959)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4357 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 19:56:47 +00:00
phpnut
35f479f232 Adding fix for #1853
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4356 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 19:39:36 +00:00
phpnut
39b580237b Adding patch from #1973
This fixes issues with singular words that end in us or ss

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4355 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 19:33:34 +00:00
phpnut
719cd36729 Adding fix for Status singular inflection
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4353 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 19:03:43 +00:00
phpnut
69fc957fd3 Allowing user defined inflections to override the core
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4352 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 18:49:30 +00:00
gwoo
6d9eb33c6a adding uses('set') for Set::normalize() fix in RequestHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4348 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-30 09:13:26 +00:00
gwoo
9728ef5ae9 fixing use of normalize in RequestHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4347 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-29 22:09:58 +00:00
gwoo
f77e642f24 fix for xml helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4346 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-29 22:04:26 +00:00
phpnut
bfc5168358 Adding fix for Notice: Undefined variable: data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4345 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-29 10:40:19 +00:00
nate
4d9ea2cc63 refactored most methods, transaction support, case insensitive comparison & sorting, added createSequence() and sequenceExists(), bug fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4344 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-28 20:32:01 +00:00
dho
ed61f5ac8d Applying patch from ticket #2009
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4343 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-28 12:29:52 +00:00
nate
1df76850c3 Enabling join models for all DBOs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4342 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-28 01:53:35 +00:00
nate
620f00adef Updating HtmlHelper::css() to support array paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4341 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-27 18:17:23 +00:00
nate
4f794248af Fixing magic method query generation for array condition values (Ticket #2008)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4340 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-27 17:48:48 +00:00
nate
8307f2bc85 Updating Model for testing compatiblity
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4339 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-27 17:45:26 +00:00
nate
dc00f9b905 Fixing script output caching in JavascriptHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4338 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-27 17:41:32 +00:00
nate
55a4245d01 Rewriting automatic variable detection to work with any field
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4337 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-26 21:03:35 +00:00
nate
3d53828511 Adding Socket core class and unit test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4335 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-25 14:34:11 +00:00
nate
dbbfa5b837 Fixing column quoting for array-based conditions when columns are wrapped in SQL functions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4330 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 20:04:27 +00:00
nate
f9a00da02b Fixing column length parsing in DboMysql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4329 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 13:03:24 +00:00
phpnut
ea2c7819f3 Fixing error introduced in [4311] the DboSource::limit() does not return results as expected.
When column is tinyint(1) is $limit = LIMIT tinyint(1).
All others are similar result with $limit = LIMIT [column type][#]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4328 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 10:47:12 +00:00
nate
4d96ad09f1 Refactoring AuthComponent::user()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4327 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 07:26:52 +00:00
nate
5654ae2f63 Updating AuthComponent docblocks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4326 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 04:38:39 +00:00
nate
138a5001cf Fixing AuthComponent redirect URLs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4325 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 02:28:16 +00:00
nate
cb2952d60b Adding shortcut icon generating to HtmlHelper::meta()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4324 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 01:56:12 +00:00
nate
bd67cfc0db Adding fallback for deprecated function mysql_list_tables() in DboMysql::listSources()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4323 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-23 22:23:39 +00:00
nate
685054fac3 Adding AuthComponent::user() to return current user, fixing config/paths docblocks, and adding IMAGES path
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4322 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-23 16:27:34 +00:00
nate
6c670400ca Adding automatic password hashing for user logins and creates in AuthComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4321 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-23 15:22:23 +00:00
nate
51cf77d4cc Fixing issue with conditional values being empty arrays in DboSource::conditionKeysToString()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4319 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 19:21:21 +00:00
nate
7d9ab97745 Fixing $model parameter in FormHelper::create() (Ticket #1963)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4318 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:32:00 +00:00
nate
d1e375f5dd Clearing validation errors on Model::create() (Ticket #1960)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4316 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:22:10 +00:00
nate
9444538ec0 Updating helper method references, and fixing FormHelper::hidden() to work with '_method'
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:12:06 +00:00
nate
51d384932f Adding Model::isUnique() for simplified checking of unique fields/values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:09:17 +00:00
nate
92fb921732 Refactoring AuthComponent, and fixing URL comparison error
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4312 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:08:34 +00:00
nate
53dca9cccc Adding schema generation support to DboMysql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4311 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-21 22:55:58 +00:00
nate
4010ecb8b3 Adding Controller::redirect() fix (Ticket #1951), and fixing redirect URL to conform with HTTP/1.1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4309 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 21:26:42 +00:00
nate
3f1154c8cf Adding fix for Ticket #1974
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4308 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 20:59:38 +00:00
nate
06f83ea86d Moving normalizeList() (basics) to Set::normalize()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4307 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 20:50:57 +00:00
nate
4ad44ec8a0 Fixing AppController::$uses merging for controllers with no models of their own. To completely disable $uses, set $uses = null in your controller.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4306 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 15:46:12 +00:00
gwoo
7af304b742 fixing FormHelper::input() error messages, ticket #1957
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4302 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-17 20:17:25 +00:00
nate
9737072e27 Fixing array key name in FormHelper::input()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4301 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-17 20:07:35 +00:00
gwoo
0c2579c565 updating bake and css, also added a name key to the generateFieldNames
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4300 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-17 02:43:15 +00:00
nate
6e56e926e7 Adding 'before', 'between', and 'after' options to FormHelper::input()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4298 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-16 12:54:55 +00:00
nate
6dcdad1a2c Adding back 'default' key to table description, and fixing Model::create() to not include empty default values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4297 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-16 12:53:39 +00:00
nate
5655ec336b Fixing URL error condition in AuthComponent::startup(), and adding login failure handler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4296 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-16 12:51:56 +00:00
nate
23cb3451c0 Fixing $model parameter for FormHelper::create(). Must pass false if the form is not associated with a model.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4295 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-16 07:07:49 +00:00
nate
e049d680e0 Adding 'default' option to HtmlHelper::link() to prevent default action
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4294 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 15:19:42 +00:00
nate
33990b2193 Adding FormHelper::input() fix for generating select menus (Ticket #1860)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4293 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 05:46:03 +00:00
phpnut
2ef3e325ca Changed Configure::_ _writeConfig() to use instance from getInstance().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4292 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 01:29:20 +00:00
phpnut
bcd2a951e4 Adding check for existence of Core key in class.paths.php.
Change Configure::_ _writeConfig() to cache files for 10 seconds if DEBUG > 0.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4291 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-14 01:25:13 +00:00
nate
2e715c9da0 Fixing key checking in AuthComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4290 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-13 23:05:26 +00:00
nate
de4bd50931 Adding Auth component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4287 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 17:49:02 +00:00
phpnut
55e9a1eda6 Reverting changes from [4285]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4286 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 17:25:56 +00:00
gwoo
8eccba69ce adding a return false to cache and configure
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4285 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 16:37:56 +00:00
phpnut
d967e98ee1 Adding addslashes() to Configure::store() so content will have backslashes before characters that need to be quoted.
Removed error notice that is thrown when file is not present

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4284 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-12 01:33:18 +00:00
gwoo
86c344917d updating FormHelper, #1860
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4282 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-11 00:11:55 +00:00
gwoo
dc366d046d adding pagination and sorting to scaffold. refactoring plugin views and redirects, updating default layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4279 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 22:53:52 +00:00
gwoo
790689fc32 moving data conversion for xml from Model::set() to RequestHandler::startup();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4277 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 21:20:06 +00:00
gwoo
7019ee7d26 adding empty $config to Configure::__writeConfig, update to model for multiple datasources with a table prefix, added option to wrap xml with <data> to wrap the model elements when using Model::set()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4276 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 11:15:43 +00:00
phpnut
a1651041dd Correcting params in doc comments
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4275 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-09 22:36:29 +00:00
phpnut
e64de54a51 Adding new methods to Configure class that is used to created a cached version of config files.
Adding Configure::store() method call to bootstrap.php to create a cached file for class paths.
Adding Configure::read() to load class paths into Configure instance.
Adding check in loadModel() to get the class path from Configure::read('Models'); if set, if values are not set, the correct file is found and added to the cache file for faster loading.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4274 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-09 22:32:48 +00:00
dho
246028e89f Changing .thtml to .ctp in templates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4273 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-09 07:36:27 +00:00
dho
6584ce99f7 Removing links to wiki
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4272 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-08 13:12:05 +00:00
nate
ec2ce20f91 Adding Ajax indicator fix for Ticket #1880
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4271 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-08 08:33:39 +00:00
phpnut
9ea5c756d4 Adding additional fix to [4269] to bypass cache when multiple forward slashes are used in the url
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4270 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-07 22:44:19 +00:00
phpnut
6efa16eb82 Adding fix to CacheHelper when $this->url is /
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4269 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-07 22:16:38 +00:00
nate
914dffcc14 Fixing $options array merge order in PaginatorHelper::link()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4268 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-07 20:09:45 +00:00
nate
a1f632c905 Adding 'indicator' feature to AjaxHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4267 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 22:09:27 +00:00
nate
18f086fbd1 Updating TextHelper::autoLinkEmails() with new API changes (Ticket #1874)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4266 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 21:10:33 +00:00
dho
98f32860a9 Implementing Validation::ip()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4265 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 16:37:03 +00:00
dho
50149aeeed Implementing minLength and maxLength
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4264 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 10:32:12 +00:00
dho
c7f045c832 Fixing typos
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4263 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 08:41:48 +00:00
nate
b6c1b9718f Adding Sanitize::clean() to replace Sanitize::cleanArray(), cleanValue(), etc.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4262 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 06:19:58 +00:00
nate
4df28cd1e6 Updating DboPear to be consistent with DboSource API 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4261 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 06:02:37 +00:00
nate
bfeaab795a Adding validation fix for Ticket #1850, and adding warning messages for Model::invalidFields() and Model::validates()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4260 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 04:58:24 +00:00
nate
8fb73307e9 Adding FormHelper::create() fix for AjaxHelper (Ticket #1836)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4259 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 00:47:54 +00:00
nate
eb4f2eed2e Adding PaginatorHelper::options() to set default pagination options
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4258 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 00:37:40 +00:00
nate
7e6db39d50 Additional helper detection for paginate()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4257 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-05 23:39:47 +00:00
nate
b5309bb017 Fixing DOM ID's for HtmlHelper::selectTag() (Ticket #1847)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4256 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-05 23:17:05 +00:00
nate
b8c51fee44 Fixing HtmlHelper::link() to allow passing $escapeTitle and $confirmMessage params as 'escape' and 'confirm' in $options
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4255 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-05 21:48:40 +00:00
nate
f96a1728eb Fixing ambiguous key sorting in Controller::paginate()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4254 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-05 21:46:28 +00:00
nate
0750210fa0 Fixing URL passing in AjaxHelper::form()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4253 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-05 19:21:46 +00:00
phpnut
658ab33959 Adding fix to allow Configure::write('debug', '0'); in a controller method
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4248 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-04 16:13:24 +00:00
nate
8c3a1307c6 Fixing array key in PaginatorHelper::counter()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4246 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-03 17:46:52 +00:00
nate
b21b7f4b03 Cleaning up FormHelper code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4245 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-03 17:36:14 +00:00
phpnut
15ca3a9c39 Adding patch from phishy:
sets case insensitivity of sorting after connect
clears statements/cursors when done interating through them
begun adding transaction support
fixed date/timestamp support to support more date formats
added supports for dates and timestamps
added a sequence public property instead of the hardcoded name

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4244 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-02 20:30:22 +00:00
gwoo
6f8489b52e making it possible to use FormHelper without a model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4238 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-01 19:39:07 +00:00
nate
f8f2df5053 Adding 'json' parameter for Ajax onComplete callback (Ticket #1843)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4237 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-01 18:04:40 +00:00
gwoo
315529507c overfactoring namedArgs, they are used by default with a colon as a separator
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4236 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-01 15:37:45 +00:00
nate
07985626fb Fixing issue in FormHelper::input() where the 'type' attribute appears twice
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4235 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-31 08:28:55 +00:00
nate
d2967c3f92 Adding Paginator methods for links and sorting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4234 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-31 08:27:02 +00:00
dho
d9adf49c87 Replacing deprecated Html->formTag() with Form->create()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4233 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-30 14:31:35 +00:00
nate
9ce0247acc Adding additional Dispatcher fixes for named arguments; fixing parameters passed in Paginator URLs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4232 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-30 06:12:29 +00:00
gwoo
ed28c3187b adding router fix for array params, ticket #1824, removing ternary operator from HtmlHelper::link();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4228 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-29 04:16:53 +00:00
phpnut
8b79b227cc Fixing an error in I18n class that would sometimes show up when using Scaffolded methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4227 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 16:51:12 +00:00
phpnut
9f48b1d28c "A little more refactoring on HtmlHelper::checkbox()"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4226 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 07:31:24 +00:00
phpnut
90f6c38614 "Fixed typo in [4221]"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4225 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 07:28:43 +00:00
phpnut
93f7a48a2a Adding fix for Notice: Use of undefined constant action - assumed 'action' on Scaffolded view()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4224 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 05:22:41 +00:00
phpnut
0ab73bb5fa "Adding a second param to bindModel and unbindModel to allow
turning off the auto resetting of the associations.
By default associations are always reset to the orignal models values"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4222 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 04:02:38 +00:00
phpnut
73bb4ec98f Adding patch from Ticket #1821
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4221 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 03:48:04 +00:00
phpnut
69379095c8 Adding fix from Ticket #1808.
Correcting language name in I10n class.
Removed unused var from CookieComponent

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4220 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 03:41:33 +00:00
phpnut
a98d44c455 Updating CookieComponent class to allow multidimensional arrays to be stored in one cookie.
Changed write() to allow passing $expire and $encrypt.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4218 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-27 23:31:32 +00:00
dho
5b7aa0d783 Replacing '_view_' with 'view'
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4217 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-27 09:34:45 +00:00
dho
aa6d4959fd Fixing parse error in PHP4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4216 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-27 09:17:45 +00:00
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
gwoo
fc66c8aa6a fixing router args in urls, ticket #1811
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4212 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-26 18:06:42 +00:00
phpnut
a4ca03ed69 Fixing magic method names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4211 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-26 16:17:37 +00:00
phpnut
c3e2c6b3d7 Merging changes from 1.1.x.x CakeSession
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4210 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-26 13:46:22 +00:00
phpnut
762e9ed90c Adding fix for I18n when $domain is specified using any of the _ _d*() functions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4207 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 19:38:28 +00:00
phpnut
4a41ca1da2 Merging fixes into trunk:
Revision: [4199]
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'] 

Revision: [4196]
"Merging fixes made in 1.2 branch.
Adding fixes for Ticket #1785 hourOptionTag can never be empty
and Ticket #1792 dateTimeOptionTag hour is always set to 12 even if selected is null"

Revision: [4195]
Adding URL fix for Ticket #1679

Revision: [4182]
cli acl.php fixes. #1773 and #1780

Revision: [4169]
Adding 1.1 fix for Ticket #1794

Revision: [4168]
Adding NOT query conditions fix for Ticket #1793

Revision: [4166]
Adding beforeFind() reference fix for 1.1 (#1784)

Revision: [4131]
Adding fix for Ticket #1797, and URL fix for Ticket #1755

Revision: [4130]
fix for #1789

Revision: 4118
Mering changes from [4117] Configure::read()

Revision: [4105]
Adding loadControllers() fix for Ticket #1745

Revision: [4103]
Fixing error messages in File::create (ticket #1770)

Revision: [4100]
Changing Model::del to check for existence of itself before allowing deletes

Revision: [4095]
Checking if model exists when setting 'created' field, to enable use with custom IDs

Revision: [4093]
Adding fix for Ticket #1746

Revision: [4091]
Adding fix for Ticket #1740

Revision: [4088]
Typo (ticket #1738)

Revision: [4079]
Adding fix for ErrorHandler throwing error when Dispatcher class is not in memory

Revision: [4078]
Adding fix for Ticket #1732

Revision: [4074]
Adding fix for View::element().
params variable was reset to an array
Added the method to 1.2.x.x branch also

Revision: [4073]
Adding fix for Ticket #1731

Revision: [4072]
Fixing error in Router::parse() when no params are passed.
Initialized $pass variable as an array before the foreach

Revision: [4071]
Adding fix for Ticket #1721

Revision: [4070]
Adding fix for Ticket #1723

Revision: [4066]
Adding fix when using database storage for sessions.

This fixes
Fatal error: Class 'ConnectionManager' not found in
/cake/libs/session.php on line 445

Removed validators.php
Updated svnconfig.txt

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4202 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 12:06:13 +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
d773f0f8d3 Adding changes that where made to validation class that I forgot to commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4198 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 10:22:48 +00:00
phpnut
14438cb151 "Adding fixes for Ticket #1785 hourOptionTag can never be empty
and Ticket #1792 dateTimeOptionTag hour is always set to 12 even if selected is null"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4197 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 08:03:33 +00:00
nate
6776cc2e10 Adding URL fix for Ticket #1679
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4194 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 07:07:57 +00:00
nate
0cea0a6ff5 Integrating new Validation class with Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4193 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 06:53:19 +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
phpnut
3eac55449e Adding function to basics.php to allow specifying a catalog to use for translation.
This should be used when LC_MESSAGES does not contain the translation strings.
Added doc comments to I18n and I10n classes.
Refactored I18n class

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4188 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 04:42:47 +00:00
nate
48a8114579 Adding submit button wrapper div for FormHelper::submit()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4184 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-24 19:25:04 +00:00
nate
46f5c22a8f Fixing array formatting in DboMysql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4183 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-24 19:20:45 +00:00
phpnut
3638dffb54 Correcting charset for Chinese (PRC)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4177 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-24 04:47:23 +00:00
nate
5a3feda301 Adding Router fixes for #anchors and admin/pagination routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4175 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-24 04:32:22 +00:00
phpnut
5e7db7d91a Adding check to I18n class for found language in the first pass of a translation method call. This speeds up the translations since the language detection in I10n class is not called on each string.
Added additional check for language in I10n::__setLanguage();

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4172 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 23:59:57 +00:00
phpnut
de3098855b Changing Session check in I18n class to use the same name as Configure::write().
Changed I10n class to attempt setting language based on DEFAULT_LANGUAGE if it is set and the auto detection of the HTTP_ACCEPT_LANGUAGE fails to find a match

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4171 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 23:35:59 +00:00
nate
2ea8e4edee Adding NOT query conditions fix for Ticket #1793
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4167 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 21:24:30 +00:00
nate
a420c70c91 Optimizing findCount() query, and adding beforeFind() reference fix for Ticket #1693
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4165 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 20:36:00 +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
2607043916 "Changing charset for Chinese language"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4160 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 15:49:00 +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
359154fabf "Correcting charset for the Japanese language."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4151 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 08:58:32 +00:00
phpnut
41c71dc9a4 "Modifying home.ctp"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4150 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 08:21:10 +00:00
phpnut
1be41a5fcf "Adding translation function around Editing this Page"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4145 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 05:43:40 +00:00
phpnut
b4a93ea971 "Adding key for Spanish language es_mx"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4141 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 01:55:54 +00:00
phpnut
2ce49ac3ed "Forcing HTTP_ACCEPT_LANGUAGE to lower case string"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4140 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 01:53:16 +00:00
phpnut
cec62a4774 "fixing parse error"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4138 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 01:17:38 +00:00
phpnut
a96e93ab3e Correcting error found when testing bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4137 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 00:50:49 +00:00
phpnut
87060dbf86 Updating files with translation function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4135 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 00:29:39 +00:00
nate
19798c71b3 Adding 1.2 fix for Ticket #1797
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4132 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 00:17:52 +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
phpnut
c5ec6b0ea1 Updating HtmlHelper::charset() to use Configure::read('charset)
Updated core layouts to use $html->charset()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4128 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:33:23 +00:00
phpnut
9283b97f01 Setting charset with Configure::write();
Adding default charset values for all languages.
Those that I did not know where set to utf-8

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4127 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:15:40 +00:00
phpnut
5a128ed722 Adding charset var and __l10nCatalog key to I10n class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4126 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:05:42 +00:00
phpnut
238ddacded Cleaning up translations model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4124 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 20:30:09 +00:00
phpnut
d23de28349 Adding doc comments to translation functions in basics.php
Refactoring I18n class to use one locale directory for an application.
Translations will be located in app/locales/[LANGUAGE]/LC_MESSAGES/[CONTROLLER].mo or [CONTROLLER].po
If not found app/locales/[LANGUAGE]/LC_MESSAGES/default.mo or default.po
All core translations will be located in cake/locales/[LANGUAGE]/LC_MESSAGES/

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4122 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 20:04:15 +00:00
nate
4c586b7893 Fixing default label rendering in FormHelper::input()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4121 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 16:26:54 +00:00