Commit graph

75 commits

Author SHA1 Message Date
the_undefined
5c1878afec Removed the Model cache engine for architectural reasons, closes #4415
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6853 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 21:25:19 +00:00
nate
6f73e4fd76 Updating database config docblocks and removing extra db-specific options
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6429 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-03 01:28:43 +00:00
nate
188ff4737d Removing database-generated primary keys from fixture data, fixed primary key handling in schema generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6354 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 07:02:33 +00:00
phpnut
53ff7d9904 Removing unused directories from app/pages.
Merging changes from app/ to skel/

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6314 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-02 21:33:51 +00:00
phpnut
cb53dc61b0 "Closes #2897, Built-in file validation.
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
nate
368b085c94 Adding asset filters for CSS and JS, set using 'Asset.filter.css' and 'Asset.filter.js', fixes #2233
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6287 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-31 05:19:00 +00:00
phpnut
f9c1058a20 "Closes #3295, Centralize encoding / charset setting in one Configure setting"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6253 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 09:08:36 +00:00
gwoo
b6b192fda6 adding i18n and sessions schema files. command modified slightly to : cake schema run create DbAcl, cake schema run create i18n, and cake schema run create Sessions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6077 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-25 16:01:49 +00:00
gwoo
caefdbb6d7 updating console params, schema, db acl schema, and deprecated api shell initidb in favor or cake schema run create -name DbAcl, closes #3566
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6073 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-24 23:12:57 +00:00
phpnut
73e57b27d7 Renaming files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6071 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-24 18:45:18 +00:00
gwoo
901d785fa2 adding db_acl_schema.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6067 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-23 19:25:19 +00:00
gwoo
681c449f35 updating COMPRESS_CSS doc bloc, fixes #3529
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6052 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 17:57:57 +00:00
phpnut
3b758d3979 Fixes #3447, core.php commented cache::config typo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5886 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 11:39:05 +00:00
phpnut
e750c9d38f Closes #3318, When model calls invalidate, it would be usefull to use the __(messageID, true)
Fixes #2603, Scaffold edit() should redirect to index() when no record is found.
Closes #2990 cake_sessions Needs A Database Name Setting, Configure::write('Session.database', 'default')
Closes #3120, database - $config['encoding']; added new settings to database.php.default
Corrected errors when setting database configurations from console, would not allow changing setting on old configuration.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5815 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 10:14:30 +00:00
phpnut
bf273081f0 Closes #3238, added ability to turn of check for HTTP_USER_AGENT by using Configure::write('Session.checkAgent', false); in a beforeFilter().
Added test for changes.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5770 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 00:40:47 +00:00
phpnut
1aa1164b1d Closes #3394, applied test patch
Deprecated define('MAX_MD5SIZE', (5 * 1024) * 1024); in core.php
Removing additional defines in core.php, replaced with Configure::write();
Added CakeSession::__startSession() to check for sent headers before attempting to start the session.
Added notices to Configure::__loadBootstrap() that will be removed before stable release.
Refactored Folder::tree().
Added additional FolderTest cases

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5768 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-16 09:05:25 +00:00
gwoo
a921492b5a updating configure and core.php. fixes a no mod_rewrite issue.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5764 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-15 21:56:31 +00:00
gwoo
c532212234 changing core session string back to original
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5754 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 06:32:36 +00:00
gwoo
1eea608e0c updating Acl to use Configure, adding config stack to CacheEngine, adding notices for defines to Configure, modifying bootstrap for Cache::config() updating tests for acl, auth, and cache.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5752 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 01:09:21 +00:00
gwoo
e8dfaa322e updating core.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5708 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-01 18:58:35 +00:00
gwoo
4f8f7a7045 refactoring cache engines, adding tests, update configure fixes #3082
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5700 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-30 07:45:34 +00:00
phpnut
603ed0e39c Initial start of Unicode support, I may move this handling of this to a unicode class.
Implemented multi-byte methods for:
String::strpos();
String::stripos();
String::strtoupper();
Added test cases for String::utf8() String::ascii() String::strpos() String::stripos() and String::strtoupper()
Corrected file encodings.
Added loading of configurations from cake/config
Added specifc case folding files to cake/config/unicode/casefolding


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5691 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-24 23:49:54 +00:00
phpnut
bd3e702d77 changed i18n schema to use only one db table for translations
changed fieldname 'row_id' to 'foreign_key'
now allows fallbacks for not-existing translations by setting model's locale to array of locales
model used for hasMany associations and for saving/deleting of translation records is configurable by Model::$translateModel property, db field 'i18n.field' is  configurable by property $displayField of this custom model, instance of this model is obtainable by $this->ModelName->translateModel()
Added tests for translate behavior.
Added i18n shell script
Correcting translation function calls in various files

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5669 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-18 04:16:04 +00:00
nate
3e7044d4b8 Implementing prefix-based routing, and transitioning configuration away from global constants
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5531 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 05:44:06 +00:00
nate
32fef5ada3 Removing deprecated constant ACL_FILENAME from core config
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5477 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-31 14:04:18 +00:00
phpnut
137fea94c6 Cleaning up line endings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4994 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 04:35:25 +00:00
phpnut
166132ca10 Moving all acl related models to model/db_acl.php.
Removing components/models directories
Changing the ACL_FILENAME setting in core.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4960 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 01:49:51 +00:00
phpnut
d029a776b7 Adding Xcache support http://trac.lighttpd.net/xcache/
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4947 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 11:31:35 +00:00
phpnut
b3850c56e8 Changing settings used for new caching in core.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4938 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 07:47:14 +00:00
phpnut
c62c550e3f Adding initial implementation of extended caching capabilities
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4933 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 06:01:54 +00:00
phpnut
0d69e3a085 Adding initial implementation of I18n database translation support
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4880 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-25 00:24:19 +00:00
nate
91736547ba Removing deprecated settings key 'connect' and replacing with 'persistent' in default database connection class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4549 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-21 17:12:20 +00:00
john
9bf807b2b6 Proofing the comments in core.php. Fixing spelling errors and trying to reword sections.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4532 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 18:38:36 +00:00
phpnut
46c5c36fcb Moving Translate class to the behaviors directory.
Moving i18n sql to app/config/sql

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4525 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 07:07:57 +00:00
nate
7f553731bd Updating ACL SQL table definitions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4489 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 17:39:54 +00:00
phpnut
a8a91e35be Correcting all headers in the files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 10:39:45 +00:00
phpnut
f06bf86d40 changing field types to char(2) on table aros_acos
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4366 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 22:49:26 +00:00
phpnut
e56c1780bf Reverting change in table name [3692].
Fixes Ticket #1672

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3900 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 18:15:36 +00:00
phpnut
06b4676172 changing user_id field to foreign_key in ACL schema
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3692 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 06:38:39 +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
e1696b55c6 Committing suggested DEBUG setting change from Ticket #1056
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3462 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-10 17:32:52 +00:00
nate
fd99791566 Removing all references to AUTO_OUTPUT, adding HtmlHelper::meta() for creating <link /> tags, and enhancing HtmlHelper::url()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3414 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-20 21:54:50 +00:00
nate
ceb5c9c6f1 Making Router accessible as a singleton
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3397 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-12 13:02:51 +00:00
nate
24208cd803 Updating doc comments in database.default.php for Ticket #1038
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3144 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-19 20:07:25 +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
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
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
265386fc2a Merging fixes and enhancements into trunk.
Revision: [2253]
"Changing define to false by default"

Revision: [2251][2252]
"Adding check if define is not set"

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2254 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-03-12 00:32:20 +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