Commit graph

192 commits

Author SHA1 Message Date
gwoo
2edfe3dd53 updating Controller::redirect(), closes #3522, deprecated Controller::cleanUpFields, see Model::deconstruct()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5973 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-09 02:34:00 +00:00
gwoo
431f2c2a88 updating schema generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5969 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-08 19:06:06 +00:00
gwoo
05a5aa3bc7 updating bake test file generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5963 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-07 19:34:06 +00:00
phpnut
90d6659918 Correcting file naming for test cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5962 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-07 19:26:31 +00:00
phpnut
67164f18ce Closes #3519, Broken pot files multiple files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5958 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-06 05:20:35 +00:00
gwoo
5ccea91b91 updating error handling: messages, templates and css, updating home page messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5943 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-04 07:03:57 +00:00
gwoo
67a024d0f1 updating bake view.ctp, fixes #3518, thanks ralph
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5938 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-02 20:06:12 +00:00
gwoo
00db8647f5 updating ControllerTask, fixes #3487
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5937 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-02 06:43:17 +00:00
gwoo
5df0a571dc updating baked view.ctp, fixes #3512
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5936 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-02 06:26:39 +00:00
gwoo
72a4970764 updating scaffold and baked views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5922 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 19:32:53 +00:00
phpnut
6dabd38589 Correcting undefined variable notice
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5920 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 04:00:28 +00:00
phpnut
3ce7ff6d8e Refactoring of scaffold and bake.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5918 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 03:14:07 +00:00
phpnut
6ab2b013bc Initial refactoring of scaffold and bake.
Removing unused vars

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5917 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 03:04:08 +00:00
gwoo
fbd3811cd1 removing usage of Model::loadInfo() replaced by Model::schema(), removing new lines at the end of some files, removed deprecated chmodr() function from basics, updated bake and scaffold views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5912 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-28 04:18:18 +00:00
gwoo
ae9cdb78f4 fixed usage of empty params in ShellDispatcher, fixed missing variable in ProjectTask, updated SchemaShell and generation. Schema can now generate a snapshot, and can be forced to generate before models are created. Added 'run' command to handle create and update of the database. Test runs can be performed using -dry. Be sure to check out cake schema help.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5908 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-27 20:00:29 +00:00
nate
ce2f730320 Fixing API shell script to work with core classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5900 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-25 03:21:33 +00:00
gwoo
3b60dd5d5f adding File::prepare() for fixing line endings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5899 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-25 03:10:31 +00:00
gwoo
c68aedb9c4 removing line ending code from File::write(), adding it to bake, fixes #3460
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5897 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-25 02:22:40 +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
mariano.iglesias
896f62544b Changing @return int to @return integer and @param bool to @param boolean
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:54:36 +00:00
phpnut
160cd28440 Correcting @return int
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5858 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:11:12 +00:00
phpnut
da97a5c871 Correcting @return bool
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5857 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:09:35 +00:00
mariano.iglesias
897825d596 Adding documentation to classes belonging to Cake console.
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
nate
3f3bfa4a56 Adding $scripts_for_layout back to default layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5844 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 01:43:56 +00:00
gwoo
4330ce884d updating default layouts and tests previous commit removed unused images and added new ones for new layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5841 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 23:50:09 +00:00
gwoo
77d77c3f78 updating default layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5840 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 23:49:28 +00:00
nate
712276510e Adding $scripts_for_layout to default layout (Ticket #3336)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5828 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-21 06:06:23 +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
e78fc1e90c Fixes #3305, Console i18n extract using wrong paths.
Closes #3396, i18n fixes
Fixed TranslateBehavior::_getLocale() throwing error if I18n class had not been loaded
Added [P]roject to bake
Updated locale pot file
Removed css and js directories from skel

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5809 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-20 05:55:37 +00:00
phpnut
6e848de479 Fixes #3334, when using bake to create a new database configuration, all previous configs are lost
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5808 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 22:05:20 +00:00
phpnut
ae3d082dd6 Correcting change made to test.php in [5776]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5777 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 12:56:14 +00:00
phpnut
998ee569e7 Fixes #2902, DB_ACL::allow allowing all when $actions is not an array.
Fixes #2988, AclComponent check() does not inherit permissions.
Fixes #3022, Inconsistent table alias quoting crashes Acl node lookup with PostgreSQL.
Fixes #3129, Console ACL Shell ACO View Broken
Fixes #3176, Problems with ACL support on Microsoft SQL Server.
Closes #3311 as invalid, DboSourceTest::testArrayConditionsParsing tests added 
Fixes #3312, DB_ACL::check() fail returning right permission
Fixes #3344, Model->field adds incorrect condition under certain circumstances.
Fixes #3400, Cookie Component: When reading a non-existing key it throws a notice.
Fixes #3407, Since [5768] CookieComponent throws warning when used in beforeFilter().
Closes #3401, Added form test to ensure $Form->fields array is what the security component requires.
Updated AclComponentTest
Merged changes in app/ to cake/console/libs/templates/skel
Fixed generated link to Run More Test after running Group > All tests


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5776 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-17 12:51:17 +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
68c63b67f3 model and db_config task fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5760 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-15 07:48:19 +00:00
gwoo
0230c3184b updating project task and folder, fixes #3284
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5756 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 19:18:24 +00:00
gwoo
de89168680 fixing typo in view.ctp, closes #3395
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5753 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-14 01:19:56 +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
phpnut
26a864d3df Closes #3356, added additional changes for translated views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5735 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-08 20:13:20 +00:00
phpnut
5f0ea6fd2e Closes #3356, makes baked views easier to translate.
Corrected undefined index in home.ctp

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5729 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-06 06:46:45 +00:00
phpnut
03c0f26ec0 Fixes #3327, wrong paths in home.ctp after baking a project
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5727 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-06 05:01:50 +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
312fd044af updating skel core.php, fixes #3332
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5706 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-01 15:39:31 +00:00
gwoo
08b690d196 updating db connection setting for model task
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5704 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-30 20:47:37 +00:00
gwoo
72de81ce74 update ProjectTask, fixes #3292
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5698 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-27 11:16:26 +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
dc76d14191 Correcting Model::invalidFields() isset would return false if $data[$fieldName] had been set to null, fixes issues with validating fields if their value had been set to null.
Merged changes from app to skel

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5677 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-20 22:45:00 +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
phpnut
aaf161c073 Moving extract.php to tasks directory
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5668 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-18 03:38:28 +00:00