Commit graph

131 commits

Author SHA1 Message Date
gwoo
548eeefdd0 updating home.ctp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6072 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-24 18:47:53 +00:00
gwoo
d8126757bd updating scaffold edit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6059 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-23 00:49:11 +00:00
phpnut
c000940e36 Closes #2119 Only define clone() in PHP4 when it hasn't been already defined.
Closes #2213, Support multiple plugin paths.
Closes #2234, filepaths to behavior classes should be cached in class.paths.php also
Closes #2345, ability to group components into subfolders
Closes #2645, Improvement to basic.php for class loading.
Fixes #3526, Cache::write, when using just the config name, it fails.
Fixes #3559, loading plugin model as assoc don't work.
Closes #3567 Controller Folders (Note this does not need routing to work, but controller names can not conflict with others in the same application so naming must still be unique)
Fixes #3579, email.php component: Parse error with php 4.

Adding new class and file importer.
Updated most of the core to use the importer.
Added ClassRegsitry::init() that will create and instance of an object and store it in the registry.
Deprecated most of the load functions in basics.php
Plugin model loading now forces using the dot notation, to use models within a plugin, all the model associations must be in the PluginName.Model syntax, if this is not used, the plugin will look for the models in the main app/models directory first, if not found then it will search the plugin directories recursively until it finds a model.
	var $belongsTo = array('SomeModel'); will look for some_model.php in the app/models
	var $belongsTo = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
	var $belongsTo = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
	
The controllers of the plugin will still look for the default models inside the plugin if var $uses is not set:
	var $uses = array('SomeModel'); will look for some_model.php in the app/models
	var $uses = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
	var $uses = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php

All of the above will work between plugins and main app
These changes also allow placing model and controllers is sub directories
Removed old class.paths.php file generation 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6001 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 09:35:19 +00:00
nate
4e4fd05034 Fixing conflicting var names in scaffold
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5968 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-08 15:30:23 +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
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
gwoo
10d31dc8c6 updating scaffold templates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5919 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 03:54:56 +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
phpnut
c86f10b3e4 Updating default.pot file.
Correcting home.ctp

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5878 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-23 02:24:49 +00:00
gwoo
fc41c77b68 updating home.ctp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5876 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-23 01:40:10 +00:00
gwoo
beb600094b updating FormHelper and scaffold edit template
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5873 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 23:41:43 +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
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
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
cc7d1ab74c Fixes #2462 mime_content_type() is deprecated in EmailComponent.
Closes #2909, Emailcomponent SMTP authentication.
Closes #2916, EmailComponent: Add read receipt header.
Closes #2969, change default charset in emailcomponent from ISO-8859-15 to utf-8.
Closes #3304, EmailComponent doesn't allow custom view class.
Fixes #3353, Email Component, content not shown when a file is attached.
Fixes #3381, Email::__wrap function ignores the $_newLine configuration property.
Fixed ThemeView::renderElement() to load helpers
Changed View::renderElement() to search core elements also

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5788 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 02:31:25 +00:00
gwoo
9131b253fa adding default templates for email
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5787 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-18 19:55:20 +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
gwoo
7c6edeb33d fixes #3122 and fixes #3194 for home.ctp checks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5629 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-11 20:48:37 +00:00
dho
89a30b1d6c Fixing bad directory separator (ticket #3045)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5510 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 16:58:21 +00:00
nate
8c8d0c1088 Updating Debugger references
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5508 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 15:03:28 +00:00
gwoo
43b3b1a0fe moving some bootstrapped stuff to dispatch and updating tests, added paginator counter to bake index template, added option to do "bake controller Posts admin" for baking just admin methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5490 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-05 02:03:18 +00:00
gwoo
bd673fbaf4 fixing scaffold templates altrow css
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5376 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 23:45:08 +00:00
phpnut
dac1bd0913 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
gwoo
6d91aad41e updating bake templates for i18n, fixes for scaffold templates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5280 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-16 02:19:31 +00:00
gwoo
c9a2da3e0c Refactored Scaffold: deprecated generateFieldNames, aligned scaffold and bake view templates, set var $scaffold = CAKE_ADMIN; will scaffold only the admin actions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5277 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-14 17:28:35 +00:00
gwoo
85a662d9ba updating headers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5270 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-10 17:05:08 +00:00
phpnut
2950d9210b Fixing error notices that are thrown when tmp directory is not writable
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5120 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-18 21:16:13 +00:00
gwoo
3a9799c554 updating scaffold links and views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5107 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-15 05:38:56 +00:00
gwoo
d1d583f0cd updating scaffolding and css
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5038 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-10 16:19:23 +00:00
gwoo
3700c963b5 updating default homepage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4993 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 00:44:02 +00:00
dho
9ac249631b Renaming file extensions of scaffolding templates to ctp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4988 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 13:38:57 +00:00
phpnut
57023720e6 Adding form security enhancements.
Forcing checking of Session form token if security component is used.
Enhancement will not allow a form to be submitted if the fields in the form created with the FormHelper do not match the fields in the submitted form.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4968 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 08:56:02 +00:00
phpnut
bca9595101 Refactoring new cache classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4936 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 07:38:47 +00:00
phpnut
527a2e6bcd Adding enhancement from #2483.adds scaffold index view field's label
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4903 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:52:17 +00:00
nate
b0307904ae Fixing (moving) session string warning (Ticket #2377) and adding automatic logging code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4846 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-12 00:34:16 +00:00
phpnut
f1c1c70664 Adding fix for Ticket #2298.
Added encoding wrapper for email addresses.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4702 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-28 22:57:07 +00:00
nate
e823ca1bf2 Fixing default JavaScript template, and code generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4562 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-27 18:23:09 +00:00
nate
563f960ae0 Fixing layout search paths for alternate content types
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4555 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-23 19:07:43 +00:00
dho
23f559a4b0 Replacing "thtml" with "ctp" in error templates
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4540 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-19 07:41:46 +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
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
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
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
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
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