Juan Basso
98afe4e09b
Renamed the method fastSend to deliver.
2011-04-19 17:07:38 -04:00
evilbloodydemon
8443b66986
PhpDoc and naming fixes
2011-04-19 17:04:49 -04:00
Jose Lorenzo Rodriguez
147b04ab59
Fixing more paths in skel directory for project generation
2011-04-19 13:04:12 -04:30
Jose Lorenzo Rodriguez
254225372a
Fixing problem with skel generation in project task
2011-04-19 12:14:02 -04:30
Juan Basso
1004b1a168
Fixed the set of boundary.
2011-04-19 09:22:42 -04:00
mark_story
63275626ee
Adding backwards compatible cookie reading back into CookieComponent.
...
Cookie values using the 1.x formatting will be read, and upon next write
be converted to json encoded values.
Fixes #1593
2011-04-18 22:07:45 -04:00
mark_story
d4ff39206a
Making CookieComponent use json_encode instead of a custom
...
serialization. Fixes issues where values containing | or , would be
handled incorrectly. Fixes #1593
2011-04-18 22:07:45 -04:00
ADmad
961208c9be
Fixed incorrect Controller object property name usage in Email component. Closes #1661
2011-04-19 00:38:51 +05:30
AD7six
da9ee49db9
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
2011-04-18 12:06:11 +02:00
AD7six
0c2bc7f015
bye bye webroot/css.php
2011-04-18 12:05:50 +02:00
Juan Basso
25705af8ed
Added the same email config sample of app/config to console skeleton.
2011-04-17 21:53:30 -04:00
Juan Basso
a1bcaa9d29
Created a static method to send fast emails.
2011-04-17 21:23:48 -04:00
Juan Basso
11331066ab
Setted EmailComponent as deprecated.
2011-04-17 21:21:09 -04:00
Juan Basso
5ea3b75b2f
CakeEmail::viewVars() now merge the param with previous config.
2011-04-17 20:57:57 -04:00
Juan Basso
7acdf1e436
Changed the method layout to template. Template is required to render, but layout is not.
2011-04-17 19:49:13 -04:00
Juan Basso
38f5d9da1f
Fixed issues related with email config.
2011-04-17 18:42:55 -04:00
Juan Basso
42ee001d71
Changed the classname of email config.
2011-04-17 18:42:55 -04:00
Juan Basso
96686e79bb
Added the html and text message in component.
2011-04-17 18:41:57 -04:00
Juan Basso
39236b3229
Removed from the tests the view from class registry.
2011-04-17 18:41:55 -04:00
Juan Basso
88f2c19336
Added the support to set variables in component.
2011-04-17 18:41:54 -04:00
Juan Basso
b2f948dfeb
Adjust partial of test case for EmailComponent.
2011-04-17 18:41:52 -04:00
Juan Basso
0bf8e3483b
Fixed methods to integrate with CakeEmail.
2011-04-17 18:41:51 -04:00
Juan Basso
1ee8ad6d8e
Removed more unused code.
2011-04-17 18:41:49 -04:00
Juan Basso
35c77b5a7a
Setting the additional parameters to mail transport.
2011-04-17 18:41:47 -04:00
Juan Basso
a28e8ba4e7
Removed unused code.
2011-04-17 18:41:46 -04:00
Juan Basso
84e405db81
Removed the format address method.
2011-04-17 18:41:44 -04:00
Juan Basso
8f2aeec2f3
Removed the transport methods (mail, smtp, debug).
2011-04-17 18:41:42 -04:00
Juan Basso
8457c8f840
Removed wrap method.
2011-04-17 18:41:41 -04:00
Juan Basso
5815743e0a
Removed formatMessage and render methods.
2011-04-17 18:41:39 -04:00
Juan Basso
163c7f06bb
Removed boundary methods.
2011-04-17 18:41:38 -04:00
Juan Basso
46c79ec4a1
Removing headers methods.
2011-04-17 18:41:36 -04:00
Juan Basso
5e56f76510
Rewrited the send method to use CakeEmail.
2011-04-17 18:41:34 -04:00
Juan Basso
3b896a82ef
Revert "Removing the methods from Email component. Tests commentds until adjust the code to BC."
...
This reverts commit 00016c515d
.
2011-04-17 18:41:33 -04:00
Juan Basso
ff5365d6ab
Added support to return the html and text message.
2011-04-17 18:39:02 -04:00
Juan Basso
33ca64f505
Added support to set variables to be used in the render.
2011-04-17 18:38:25 -04:00
Juan Basso
d5938dd3c4
Support to multibyte in subject.
2011-04-17 18:38:02 -04:00
Juan Basso
c48db36196
Changed to be able to configure empty array in CakeEmail.
2011-04-17 18:37:31 -04:00
Juan Basso
c5f289fccf
More tests to CakeEmail.
2011-04-17 18:36:49 -04:00
Juan Basso
5b223e747b
Adjusted the Smtp test to use the new config method.
2011-04-17 18:36:42 -04:00
Juan Basso
3a5c04273e
With class loading these code can be global.
2011-04-17 18:36:36 -04:00
ADmad
3844966714
Changed default value for key 'last' in validator options to true. Also implemented ability to list messages for all failed validations for a field at once, instead of current display of just one message at a time.
2011-04-18 02:08:48 +05:30
AD7six
9ac79da3f7
don't repeat the default value in the message
...
the default value is the cli prompt anywaya
2011-04-17 18:17:25 +02:00
AD7six
1c62a66b0b
simpler bake prompt
...
we don't need to repeat the defualt path twice, and a user can just as
easily type "appname" instead of /some/absolute/path/appname
2011-04-17 18:12:25 +02:00
AD7six
4ab27d6fea
full paths are /not/ needed.
...
having the help/text state it is necessary is confusing
2011-04-17 18:08:10 +02:00
AD7six
e1cc348b35
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
2011-04-17 18:05:17 +02:00
AD7six
010feb2092
prevent surpirses with Folder not being available.
...
Previously loading File would load Folder also - that's not true with
the new changes, ensure that the Folder class is regsitered with
App::users when the Folder class is used.
2011-04-17 18:03:43 +02:00
evilbloodydemon
86b76674d0
PhpDoc fixes
...
Signed-off-by: mark_story <mark@mark-story.com>
2011-04-17 11:23:52 -04:00
AD7six
eb66cd352e
in the event of a cache-write error include the engine name
...
Especially if the engine is a variable, it's important to know which
engine had a problem writing to the cache
2011-04-17 11:45:32 +02:00
AD7six
65121a4292
apc is disabled on the cli by default
...
Therefore, on the cli if the extension is loaded - it's necessary to
check if it's also enabled. Otherwise on the cli there will be no cache.
2011-04-17 11:42:04 +02:00
Jose Lorenzo Rodriguez
f14a295a3e
Adding a ConenctionManager::drop() method useful for testing and other dynamic tasks
2011-04-16 22:57:05 -04:30
ADmad
c80a51a163
Splitting View::element() param $params into $data and $options. Removed param $callbacks, use key 'callbacks' in $options array instead. Closes #1646
2011-04-17 07:00:14 +05:30
ADmad
d83712ce43
Renaming Model::$_findMethods to Model::$findMethods and changing visibility to public. Closes #1328
2011-04-17 06:09:00 +05:30
mark_story
a7a076dbee
Fixing ExceptionRenderer so it can render exceptions that are subclasses
...
of CakeException that do not have custom templates, like ConfigureException.
Removing $lastError as it doesn't work.
Added tests.
2011-04-16 18:13:52 -04:00
AD7six
c1a8dbbce7
provide a default skel dir, and default to the core
2011-04-16 20:20:27 +02:00
AD7six
a0fce70c13
prevent undefined index error baking a new project
...
if you call `cake bake project` the skel param is not present
2011-04-16 19:22:53 +02:00
mark_story
0c4a16bc98
Fixing missing import for AppModel when baking with cake bake all
2011-04-16 09:33:16 -04:00
mark_story
a0660ffd9d
Fixing constants being incorrect when calling cake console from the root of the source tree checkout.
2011-04-16 09:32:54 -04:00
Juan Basso
9ac5f9c349
Fixed the tests.
2011-04-13 00:24:27 -04:00
Juan Basso
3200e380d3
Created a new method to return the transport class before send. In some cases you need to do extra calls/configurations before send.
2011-04-13 00:04:37 -04:00
Juan Basso
f4f3bfe2fc
Return the object when is set method.
2011-04-12 23:45:02 -04:00
Juan Basso
40e8632408
Changed to translate messages using cake domain.
2011-04-12 23:37:50 -04:00
Juan Basso
935badff03
Fixed to MailTransport use configs intead Configure::read().
2011-04-12 23:34:23 -04:00
Juan Basso
a9aef5600f
Removed the object from ClassRegistry. It is not used in 2.0.
2011-04-12 23:32:26 -04:00
Juan Basso
3c703641b0
Changed the use of import to uses.
2011-04-12 23:31:07 -04:00
Juan Basso
50c21ccdfe
Renamed the transport files to the new structure.
2011-04-12 22:34:45 -04:00
Juan Basso
00016c515d
Removing the methods from Email component. Tests commentds until adjust the code to BC.
2011-04-12 22:25:24 -04:00
Juan Basso
fd248acadd
Added the config to reset.
2011-04-12 22:17:36 -04:00
Juan Basso
22445e2583
Removed the read from Configure for X-Mailer.
2011-04-12 22:17:33 -04:00
Juan Basso
daa90ed2b2
Created the email class and a logic in CakeEmail.
2011-04-12 22:17:28 -04:00
Juan Basso
1814168ec7
Added kind of visibility to missed methods.
2011-04-12 22:17:12 -04:00
Juan Basso
90d1f62131
Changed others functions to remove the get/set by only one method.
2011-04-12 22:17:09 -04:00
Juan Basso
6e97de5d38
Replace the get/set methods by only one method in addresses and subject.
2011-04-12 22:17:06 -04:00
Juan Basso
f661e37ef1
Added more tests to wrap. Fixed to not cut words with more than should limit.
2011-04-12 22:17:03 -04:00
Juan Basso
985743dc50
Removed debug code line.
2011-04-12 22:16:59 -04:00
Juan Basso
f128711fa5
Test to all getters and setters of addresses.
2011-04-12 22:16:56 -04:00
Juan Basso
6e15945e73
Fixes in render. Tests added.
2011-04-12 22:16:53 -04:00
Juan Basso
d0f1843dd5
Added tests to send email with contents.
2011-04-12 22:16:49 -04:00
Juan Basso
ffaee3d760
Included the method to attach files.
2011-04-12 22:16:46 -04:00
Juan Basso
df2fe579cd
Supporting pass the attach file name.
2011-04-12 22:16:43 -04:00
Juan Basso
8645411c65
Removed unused attribute.
2011-04-12 22:16:40 -04:00
Juan Basso
e6befef1c3
Added the method to render from views.
2011-04-12 22:16:37 -04:00
Juan Basso
c5cbb603a0
Added the methods to format message.
2011-04-12 22:16:34 -04:00
Juan Basso
3a1ebf159a
Striping tags in the message.
2011-04-12 22:16:30 -04:00
Juan Basso
2795d2b771
Initial changes for send.
2011-04-12 22:16:27 -04:00
Juan Basso
89b4cb75e3
Changed to addresses come before others headers. It is not a RFC rule, just to keep more readable the header.
2011-04-12 22:16:24 -04:00
Juan Basso
ace425892d
Implemented method to set/get Message-ID.
2011-04-12 22:16:20 -04:00
Juan Basso
30dced741d
Simply the code.
2011-04-12 22:16:17 -04:00
Juan Basso
03b4ce070b
Added a protection to not insert invalid emails.
2011-04-12 22:16:14 -04:00
Juan Basso
6a76931961
Added support to multibyte in formatAddress. Tests added.
2011-04-12 22:16:11 -04:00
Juan Basso
b29c31709e
Implemented methods to attachments.
2011-04-12 22:16:06 -04:00
Juan Basso
6c3a42c82a
Method to set transport name.
2011-04-12 22:16:03 -04:00
Juan Basso
1a457dc575
Method to set email format (text, html, both).
2011-04-12 22:16:00 -04:00
Juan Basso
35106be647
Removed the configuration to EOL. Moved to MailTransport.
2011-04-12 22:15:56 -04:00
Juan Basso
bd5e5376d1
Implemented method to set layout and template.
2011-04-12 22:15:53 -04:00
Juan Basso
6930ba6207
Changes to in manipulation of header.
2011-04-12 22:15:48 -04:00
Juan Basso
e6c8171d1f
Added some vars to reset.
2011-04-12 22:15:45 -04:00
Juan Basso
82835a3566
Methods to set/get subject.
2011-04-12 22:15:41 -04:00
Juan Basso
187304cebb
Added methods to ReturnPath, ReadReceipt and ReplyTo.
2011-04-12 22:15:37 -04:00
Juan Basso
162da0aec9
Added tests with array in setFrom.
2011-04-12 22:15:33 -04:00
Juan Basso
a28e0f014d
setFrom using _setEmail. DRY and consistence.
2011-04-12 22:15:27 -04:00
Juan Basso
7aa0d6c1eb
Added the methods to set/add/get Cc and Bcc.
2011-04-12 22:15:24 -04:00
Juan Basso
fae641e619
Implemented methods to configure "to".
2011-04-12 22:15:21 -04:00
Juan Basso
5cb58e8f99
Implemented methods to configure "from".
2011-04-12 22:15:18 -04:00
Juan Basso
8f5049e3b1
Initial changes in headers, just draft.
2011-04-12 22:15:15 -04:00
Juan Basso
a92092231c
Throwing exception when headers is not an array.
2011-04-12 22:15:11 -04:00
Juan Basso
77941fb1fb
Added the skeleton of CakeEmail.
2011-04-12 22:15:08 -04:00
Jose Lorenzo Rodriguez
7b8d395cb0
Fixing last few errors after folder renaming
2011-04-11 23:31:00 -04:30
Jose Lorenzo Rodriguez
998b04d438
Moving recently created files
2011-04-11 23:19:49 -04:30
Jose Lorenzo Rodriguez
9f5ab79abc
Fixing bake tasks after most recent changes
2011-04-11 23:01:48 -04:30
Jose Lorenzo Rodriguez
000e05b468
Merge remote-tracking branch 'origin/2.0' into 2.0-class-loading
...
Conflicts:
cake/libs/view/helpers/js.php
cake/tests/lib/templates/missing_conenction.php
cake/tests/lib/templates/missing_connection.php
lib/Cake/Model/ConnectionManager.php
lib/Cake/TestSuite/templates/missing_conenction.php
lib/Cake/View/Helper/FormHelper.php
lib/Cake/tests/Case/Core/ConfigureTest.php
2011-04-11 22:48:08 -04:30
Jose Lorenzo Rodriguez
96baa3015e
Making all test groups run again,
...
small fixes in some tests to make them pass
2011-04-11 22:23:44 -04:30
Jose Lorenzo Rodriguez
75a1481e22
Fixing test loading in cli
2011-04-11 22:23:03 -04:30
Jose Lorenzo Rodriguez
9d90c555eb
Fixing constant use
2011-04-11 22:17:59 -04:30
Jose Lorenzo Rodriguez
cbdafb3f3b
Fixing TestsuiteShell test
2011-04-11 22:16:19 -04:30
Jose Lorenzo Rodriguez
1bbdefc4ad
Fixing some bake tasks
2011-04-11 22:15:51 -04:30
Jose Lorenzo Rodriguez
241a3bf624
Fixing ProjectTask tests and renaming folders in skel directory
2011-04-11 21:43:40 -04:30
Jose Lorenzo Rodriguez
85a7f74f30
Renaming folders in skel dir
2011-04-10 21:04:19 -04:30
Jose Lorenzo Rodriguez
662abd6419
Refactoring FixtureTask so it generates correct file names
2011-04-10 20:56:06 -04:30
Jose Lorenzo Rodriguez
d561460fda
Refactoring TestTask so it generates tests according to the new file naming standard
2011-04-10 20:49:16 -04:30
Jose Lorenzo Rodriguez
0263ffc74e
Renaming tests folders and making tests runnable again
2011-04-10 20:08:24 -04:30
Jose Lorenzo Rodriguez
7f31cfb173
Renaming all fixtures
2011-04-10 19:46:18 -04:30
Jose Lorenzo Rodriguez
74e50d3d98
Moving Console related tests
2011-04-10 19:36:06 -04:30
Jose Lorenzo Rodriguez
2a9679e5b7
Renaming Test Suites
2011-04-10 19:26:26 -04:30
Jose Lorenzo Rodriguez
37745ab50a
Moving all tests one dir up
2011-04-10 19:24:41 -04:30
Jose Lorenzo Rodriguez
cd26ec7a88
Moving TestSuite related tests
2011-04-10 19:23:36 -04:30
Jose Lorenzo Rodriguez
51eba8bd25
Moving View related tests
2011-04-10 17:19:32 -04:30
Jose Lorenzo Rodriguez
b3c4734d75
Moving Session engine tests
2011-04-10 17:08:01 -04:30
Jose Lorenzo Rodriguez
d9da6b00c6
Moving Utility related tests
2011-04-10 17:06:55 -04:30
Jose Lorenzo Rodriguez
063592d628
Moving Routing related tests
2011-04-10 17:01:53 -04:30
Jose Lorenzo Rodriguez
c83a396eb4
Fixing class loading for HttpResponse classes, and making possible to pass plugin HttpResponse classes too
2011-04-10 16:57:44 -04:30
Jose Lorenzo Rodriguez
0a1f9d17c3
Moving Network related tests
2011-04-10 16:50:39 -04:30
Jose Lorenzo Rodriguez
14bbe07a4e
renaming abstract class from wich all model tests inherit
2011-04-10 16:40:30 -04:30
Jose Lorenzo Rodriguez
4f1f833aca
Moving some of the Model related tests
2011-04-10 16:36:53 -04:30
Jose Lorenzo Rodriguez
6bafbf429d
Moving Log related tests
2011-04-10 16:19:19 -04:30
Jose Lorenzo Rodriguez
764b039e58
Moving I18n tests
2011-04-10 16:17:37 -04:30
Jose Lorenzo Rodriguez
c449a7bbf5
Moving Error related tests
2011-04-10 16:15:34 -04:30
Jose Lorenzo Rodriguez
222870a26e
Moving Core related tests
2011-04-10 16:10:36 -04:30
Jose Lorenzo Rodriguez
fcdf9ce81f
Moving configure related tests
2011-04-10 16:08:16 -04:30
Jose Lorenzo Rodriguez
98bb39f476
Moving cache related tests
2011-04-10 16:06:20 -04:30
Jose Lorenzo Rodriguez
974a153818
Moving tests files to follow the naming schema and to mirror the new internal CakePHP structure
2011-04-10 15:59:26 -04:30
Jose Lorenzo Rodriguez
50b47c8729
Renaming constants and fixing the last error related to folder renaming
2011-04-10 15:32:45 -04:30
Jose Lorenzo Rodriguez
7f2734d053
Starting to migrate internal tests files to the new file schema, and fixing related tests
2011-04-10 15:02:19 -04:30
Jose Lorenzo Rodriguez
6737380deb
Partial migration of folders to camelcase in app
2011-03-22 00:46:51 -04:30
Jose Lorenzo Rodriguez
ac0ec44f51
Fixing some extract console tests
2011-03-21 01:26:07 -04:30
Jose Lorenzo Rodriguez
c9ae3c26c4
Removing more code from test app home.ctp file so testing becomes easier
2011-03-21 01:12:32 -04:30
Jose Lorenzo Rodriguez
433e9e7177
Fixing typos in time helper translations
2011-03-21 00:57:37 -04:30
Jose Lorenzo Rodriguez
b68bc7d4aa
Removing session helper usage in default layout of test app to avoid haing to mock an additional class
2011-03-21 00:50:43 -04:30
Jose Lorenzo Rodriguez
5c91827c44
Fixing typo in controller task
2011-03-21 00:45:05 -04:30
AD7six
32df3156a7
consolidate cake_error and cake_developer to simply "cake_dev"
...
it's a lot easier for adding new translations to think:
is it for the end user?
use 'cake' as the domain
is it for the developer
use 'cake_dev' as the domain
is it for the console
use 'cake_console' as the domain
also neatly avoids the "this message is an error, and it's in
cake_developer, why?" - question (because cake_error was intended for
anything which is used in trigger_error/exceptions, not a variable named
$error
2011-03-20 16:38:31 +01:00
AD7six
7fa52710f3
correct tests to use correct language domains.
...
updated test_app default.ctp and home.ctp to be (almost) identical to
the files shipped in the core
2011-03-19 18:52:43 +01:00