Commit graph

92 commits

Author SHA1 Message Date
phpnut
27e5481b5b Adding check for new dot notation that will be used to load classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4289 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-13 21:36:10 +00:00
phpnut
7ad952d5eb Adding changes to other load*() functions in basics.php to create cached paths for loaded classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4288 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-13 21:08:52 +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
gwoo
6c528ffa00 adding check for is_writeable to cache()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4278 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 22:43:37 +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
phpnut
3758445e8a "Correcting doc comments in basics.php
Changed the params order for _ _c()."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4231 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-30 01:02:19 +00:00
phpnut
dfbc6f0706 Adding patch from Ticket #1354
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4223 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 05:15:21 +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
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
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
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
54a5055fa4 Adding loadControllers() fix for Ticket #1745
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4106 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-15 16:18:15 +00:00
phpnut
b8a46e14d7 Adding Folder::rmdir().
Removed empty lines from basics file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4101 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-13 04:39:26 +00:00
nate
b51bf20390 Adding PHP5 array functions for Router to basics
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4085 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-08 08:59:35 +00:00
dho
9ca5e14891 Adding new methods to Configure and moving all core messages using DEBUG to use Configure::read()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4069 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-05 09:49:59 +00:00
phpnut
7cc9b6e38f Adding fix for Ticket #1712
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4044 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-01 17:10:53 +00:00
phpnut
5a74812c7b Adding fix for Ticket #1661
Fixed same issue in function cache() in basics.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4014 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 22:34:28 +00:00
phpnut
99f50e78c3 Removing class_exists('Model') in loadPluginModels()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3968 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 20:39:19 +00:00
phpnut
f8274a3862 Adding fix for Ticket #1698
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3967 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-25 20:30:17 +00:00
phpnut
35ff9d45dc Allowing loadModel to accept null as a param.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3944 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 21:39:09 +00:00
phpnut
ac552a256e Merging fix from [3912]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3913 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 21:32:59 +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
nate
6ba7032e68 Moving strip_plugin() to Router::stripPlugin(), and enabling reverse routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3854 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-10 17:08:31 +00:00
phpnut
4cfafba726 Fixing overload() calls in both branches
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3828 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-05 06:56:28 +00:00
phpnut
d77a19e4a4 Adding fix for loadModel() not checking for existence of model before loading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3827 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-05 06:29:15 +00:00
nate
91ade8fe45 Enabling overload of AppHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3798 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 20:42:11 +00:00
phpnut
581dec2248 Applied part of patch from #1603
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3768 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 03:42:36 +00:00
nate
607dfac428 Enabling auto-load for AppHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3751 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 21:41:34 +00:00
gwoo
755e3dbae1 1.2: updated file_put_contents in basics to return number of bytes written or false
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3721 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-19 18:14:09 +00:00
phpnut
64359fe7ba Removing functions from basics.php that where added as workarounds for PHP < 4.3.
Removing legacy.php and all references to the file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3717 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-19 00:37:29 +00:00
phpnut
ad65992ead removed bad char in my last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3711 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 17:51:29 +00:00
phpnut
2e4101a54b Removed variable from the I18n::translate(); in basics.php __() function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3710 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 17:17:29 +00:00
nate
355ad78cc1 Adding HTTPS detection fix (Ticket #1405)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3531 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-20 19:13:57 +00:00
phpnut
2a3f651d3d Adding fix for #1402
Multiple requestActions to same plugin setting wrong view path.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3509 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-18 20:00:39 +00:00
nate
d232f47d72 Adding CGI_MODE detection and CGI-mode SCRIPT_NAME emulation to env()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3451 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-05 18:10:59 +00:00
nate
c40e3e355c Fixing class load order in vendors() and uses()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3446 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-03 06:46:43 +00:00
nate
eff03b1dea Fixing associative array issue with normalizeList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3428 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-24 12:40:19 +00:00
nate
381ccff146 Fixing loader loops
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3388 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-08 21:17:20 +00:00
nate
f2a89197e2 Optimizing loops in uses() and vendor()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3374 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-06 22:51:30 +00:00
nate
796222dfeb Abstracting PHP4/5 overload implementation to custom base class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3324 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-30 12:24:03 +00:00
phpnut
6b8e11fe2c Adding fix in loadView().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3311 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-29 04:51:29 +00:00
nate
07ec77ef22 Adding model behaviors, model onError callback, and updating FormHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3280 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-22 14:13:07 +00:00
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
86fc29facb Adding join table selects (MySQL-only so far), findBy/findAllBy magic method enhancements (Ticket #412)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3200 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-07-04 01:29:48 +00:00
nate
3d4d5e4388 Adding fix for Ticket #804
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3113 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-06-15 14:44:16 +00:00
phpnut
0801dce999 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3092 3807eeeb-6ff5-0310-8944-8be069107fe0 2006-06-14 19:06:14 +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