Wednesday, December 31, 2014

mailchimp cakephp api

Hi, I want to be able to view emails in a cakephp page sent via mailchimp.

The API is here but
Here are the instructions https://github.com/dereuromark/cakephp-mailchimp


1)Install the plugin into the APP/Plugin folder, ideally via composer. //how? I just copied the extracted zip folder instead, is this OK?



2)Make sure it is loaded - using CakePlugin::loadAll(), for example.
Use the Configure class to set the API data (via APP/Config/configs.php etc):  //there is NO SUCH FILE configs.php


//This goes where?

$config['Mailchimp'] = array(
    'apiKey' => 'YOUR_API_KEY',
    'defaultListId' => 'YOUR_LIST_ID',
    'defaultCampaignId => 'YOUR_CAMPAIGN_ID'
);

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: Trouble with Twitter plugin: Where to place it?

Great to hear that you've solved it. Have a nice day and a happy new year!

On 31 Dec 2014 17:50, "Anja Liebermann" <cake@anjaliebermann.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Marlin,


it looks like the trouble was at two points. I cahnged it in the
controller to

    public $components = array(
        'Twitter.Twitter'
    );

and then very important adde din the bootrap.php

CakePlugin::loadAll();

Et voila, the Plugin is found.

Thank you for your help.


Anja


Am 31.12.2014 um 09:05 schrieb Marlin Cremers:
> Hello there!
>
> You will have to add the component prefixed by the plugin name. So
> Twitter.Twitter. The same applies to Helpers, Models, etc.
>
> On Tuesday, 30 December 2014 21:21:47 UTC+1, acl68 wrote:
>>
> Hello,
>
> I migrate a project from 1.3 to 2.n. I replace the old Twitter Component
> with the Twitter plugin
> https://github.com/mishudark/CakePHP-2.x-Twitter-Plugin
>
> Usage: Upload to app/Plugin/Twitter
>
>
> So I unzip the Plugin place it inside .../app/Plugin and rename it to
> "Twitter". It pop up under plugins in my testsuite. But when I try to
> add a new item in my controller I get this error
>
> Missing Component
>
> Error: TwitterComponent could not be found.
>
> Error: Create the class TwitterComponent below in file:
> app/Controller/Component/TwitterComponent.php
>
> In this controller I added the Component like this:
> class AddressesController extends AppController
> {
>     public $components = array(
>         'Paginator',
>         'JsonUrl',
>         'MathCaptcha',
>         'Twitter'
>    );
> ......
>
>
> So should the component go under
> app/Controller/Component/TwitterComponent.php
> or
> app/Plugin/Twitter/Controller/Component/TwitterComponent.php
>
> Or do I add it differently in my controller?
>
> Calamity Jane
>>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlSkKRgACgkQbOdiIJzHNKGQvgCeJKO57X+W257Y31BTELhKEwV0
w3kAn1LQF4Mq1yDpfa23Yu/IW2muKz/c
=0ryY
-----END PGP SIGNATURE-----

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/YMxBc-3SOeg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: Trouble with Twitter plugin: Where to place it?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Marlin,


it looks like the trouble was at two points. I cahnged it in the
controller to

public $components = array(
'Twitter.Twitter'
);

and then very important adde din the bootrap.php

CakePlugin::loadAll();

Et voila, the Plugin is found.

Thank you for your help.


Anja


Am 31.12.2014 um 09:05 schrieb Marlin Cremers:
> Hello there!
>
> You will have to add the component prefixed by the plugin name. So
> Twitter.Twitter. The same applies to Helpers, Models, etc.
>
> On Tuesday, 30 December 2014 21:21:47 UTC+1, acl68 wrote:
>>
> Hello,
>
> I migrate a project from 1.3 to 2.n. I replace the old Twitter Component
> with the Twitter plugin
> https://github.com/mishudark/CakePHP-2.x-Twitter-Plugin
>
> Usage: Upload to app/Plugin/Twitter
>
>
> So I unzip the Plugin place it inside .../app/Plugin and rename it to
> "Twitter". It pop up under plugins in my testsuite. But when I try to
> add a new item in my controller I get this error
>
> Missing Component
>
> Error: TwitterComponent could not be found.
>
> Error: Create the class TwitterComponent below in file:
> app/Controller/Component/TwitterComponent.php
>
> In this controller I added the Component like this:
> class AddressesController extends AppController
> {
> public $components = array(
> 'Paginator',
> 'JsonUrl',
> 'MathCaptcha',
> 'Twitter'
> );
> ......
>
>
> So should the component go under
> app/Controller/Component/TwitterComponent.php
> or
> app/Plugin/Twitter/Controller/Component/TwitterComponent.php
>
> Or do I add it differently in my controller?
>
> Calamity Jane
>>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlSkKRgACgkQbOdiIJzHNKGQvgCeJKO57X+W257Y31BTELhKEwV0
w3kAn1LQF4Mq1yDpfa23Yu/IW2muKz/c
=0ryY
-----END PGP SIGNATURE-----

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: Trouble with Twitter plugin: Where to place it?

Hello there!

You will have to add the component prefixed by the plugin name. So Twitter.Twitter. The same applies to Helpers, Models, etc.

On Tuesday, 30 December 2014 21:21:47 UTC+1, acl68 wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I migrate a project from 1.3 to 2.n. I replace the old Twitter Component
with the Twitter plugin
https://github.com/mishudark/CakePHP-2.x-Twitter-Plugin

Usage: Upload to app/Plugin/Twitter


So I unzip the Plugin place it inside .../app/Plugin and rename it to
"Twitter". It pop up under plugins in my testsuite. But when I try to
add a new item in my controller I get this error

Missing Component

Error: TwitterComponent could not be found.

Error: Create the class TwitterComponent below in file:
app/Controller/Component/TwitterComponent.php

In this controller I added the Component like this:
class AddressesController extends AppController
{
    public $components = array(
        'Paginator',
        'JsonUrl',
        'MathCaptcha',
        'Twitter'
   );
......


So should the component go under
app/Controller/Component/TwitterComponent.php
or
app/Plugin/Twitter/Controller/Component/TwitterComponent.php

Or do I add it differently in my controller?

Calamity Jane
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlSjCTQACgkQbOdiIJzHNKG4SgCfb0TKh4qPLnLDS16bXneqVrqs
UEoAoL4LF4r1c2mz7Tu9yAEkB7xitj86
=crbH
-----END PGP SIGNATURE-----

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Tuesday, December 30, 2014

Re: 1.3 Migration Question re:NULL and Defaults

You could probably use the BeforeSave method to modify the values, so as to replace 'NULL' with null or remove the field entirely in the array.
Enjoy, John
[snip]

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

Ok I used ssl and this worked as is

   public $gmail2 = array(
  
    'host' => 'ssl://smtp.gmail.com',
  
    'port' => 465,
   'username' => 'jxxxm',
       'password' => 'jxxxx',
    'transport' => 'Smtp',

);

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: 1.3 Migration Question re:NULL and Defaults

Thanks again, yes this is what I am seeing and is consistent with the idea that the old code did not submit a NULL field.

As notated above the "save" statement in the controller has no parms other than $this->data - when the field has nothing assigned to it cakePHP 1.3.20 sets it to NULL - although this exact same thing occurs under the old 1.2 code, in 1.2 the field set to NULL is not part of the INSERT operation, whereas in 1.3 it is.

So the old app code that essentially has no parm validation on the form does not work in 1.3. Funny thing is I guess they were relying on mySQL to convert the NULL to the default when what they were really relying on was cakePHP recognizing the NULL and stripping that column from the INSERT request thus allowing the default in the DB to set the default value.

I guess what is now needed is to set your own default value - I wonder if there is an easy way to do this in the model somewhere?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: 1.3 Migration Question re:NULL and Defaults

FYI the host is running MYSQL 5.0.96-log and PHP 5.3.24

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: 1.3 Migration Question re:NULL and Defaults

I just checked MySQL and it does fail when I try to insert a NULL into a Non-Null column. So it is only when there is no value for the column that MySQL will use the default value instead.

So when CakePHP uses NULL for that column, MySQL will fail the insert operation. How does the save statement look like? What fields are in the data array that you try to save?

Enjoy, John

On Tuesday, 30 December 2014 22:50:11 UTC+2, MikeK wrote:
I also ran the legacy code with some SQL log dumping and it seems to me the old code did NOT attempt an INSERT with the values of the unset fields set to NULL - apparently it only attempted to INSERT the fields that were set, at least according to the lastQuery() dump.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: 1.3 Migration Question re:NULL and Defaults

I also ran the legacy code with some SQL log dumping and it seems to me the old code did NOT attempt an INSERT with the values of the unset fields set to NULL - apparently it only attempted to INSERT the fields that were set, at least according to the lastQuery() dump.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: 1.3 Migration Question re:NULL and Defaults


John-

Thank you for the reply. Yes indeed I am working on a copy of the DB - in fact I have cloned the entire domain including the DB etc, so I am able to compare things as well as test tweaks in the DB. Yes a default value of 0.00 is specified for the 'column' . The column definitions are:

column=amount   decimal(6,2) Null=No Default=0.00 all other fields are blank (extra, collation, attributes, etc)

other columns are decimal(4,2) but otherwise the same.

I am not sure if under the 1.2.0.5875 prebeta the original project utilized whether CakePHP is performing an insert with a NULL for the unset field and MySQL is taking care of the conversion to the default, or whether CakePHP itself performs the conversion based on schema prior to insert request.

It has always been my understanding that MySQL should handle it.

I have also purged all relevant tmp files, cache files etc.

I do have the ability to operate a copy of the old code and the migrated code simultaneously on the copy of the DB for testing purposes.

I have confirmed that using the same backup DB and same version of MySQL (same server) that cakephp 1.3.20 and 1.2.0.5875 are having different results on the same save operation at the controller level.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Trouble with Twitter plugin: Where to place it?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I migrate a project from 1.3 to 2.n. I replace the old Twitter Component
with the Twitter plugin
https://github.com/mishudark/CakePHP-2.x-Twitter-Plugin

Usage: Upload to app/Plugin/Twitter


So I unzip the Plugin place it inside .../app/Plugin and rename it to
"Twitter". It pop up under plugins in my testsuite. But when I try to
add a new item in my controller I get this error

Missing Component

Error: TwitterComponent could not be found.

Error: Create the class TwitterComponent below in file:
app/Controller/Component/TwitterComponent.php

In this controller I added the Component like this:
class AddressesController extends AppController
{
public $components = array(
'Paginator',
'JsonUrl',
'MathCaptcha',
'Twitter'
);
......


So should the component go under
app/Controller/Component/TwitterComponent.php
or
app/Plugin/Twitter/Controller/Component/TwitterComponent.php

Or do I add it differently in my controller?

Calamity Jane
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlSjCTQACgkQbOdiIJzHNKG4SgCfb0TKh4qPLnLDS16bXneqVrqs
UEoAoL4LF4r1c2mz7Tu9yAEkB7xitj86
=crbH
-----END PGP SIGNATURE-----

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: 1.3 Migration Question re:NULL and Defaults

Can I assume that you are working on a copy of the original database?

If so, please verify that a default value is specified for that column. Kindly provide us with the definition of it.

It is quite alright for CakePHP to provide a NULL for the column on an insert, MySql should then set the value to the default one.

Enjoy, John

On Tuesday, 30 December 2014 20:18:03 UTC+2, MikeK wrote:
I am porting a 1.2.0.5875 app to 1.3 in preparation for moving to 2.X. I have several fields (tax, amount, fee) in an order record all with NULL set to "No", each is a decimal(6,2) field, and each has default value of 0.00

The following code worked fine and dandy in the 1.2 system and in the event nothing was specified by the user for tax, amount, or fee, they were properly set to 0.00 in the DB:

$this->cleanUpFields(); //WILL REMOVE AS THIS IS DEPRECATED
$this->Order->create();
if ($this->Order->save($this->data)) {

In my 1.3 migration build I am getting 'tax' cannot be NULL and I see in the SQL insert op that indeed it is being set to NULL, and thus MySQL chokes on it.

Why did it operate correctly in the old 1.2 system and what should I do to correct this? It is pervasive across numerous classes and I want to get it right the first time.

Is this perhaps a difference in the way the form helper is handling initialization of the fields? Or somewhere in the model? I did not need to specify validation for these fields as used back in 1.2 etc.

Thanks in advance!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

1.3 Migration Question re:NULL and Defaults

I am porting a 1.2.0.5875 app to 1.3 in preparation for moving to 2.X. I have several fields (tax, amount, fee) in an order record all with NULL set to "No", each is a decimal(6,2) field, and each has default value of 0.00

The following code worked fine and dandy in the 1.2 system and in the event nothing was specified by the user for tax, amount, or fee, they were properly set to 0.00 in the DB:

$this->cleanUpFields(); //WILL REMOVE AS THIS IS DEPRECATED
$this->Order->create();
if ($this->Order->save($this->data)) {

In my 1.3 migration build I am getting 'tax' cannot be NULL and I see in the SQL insert op that indeed it is being set to NULL, and thus MySQL chokes on it.

Why did it operate correctly in the old 1.2 system and what should I do to correct this? It is pervasive across numerous classes and I want to get it right the first time.

Is this perhaps a difference in the way the form helper is handling initialization of the fields? Or somewhere in the model? I did not need to specify validation for these fields as used back in 1.2 etc.

Thanks in advance!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

1.3 Migration Question re:cleanupFields

I am porting a 1.2.0.5875 app to 1.3 in preparation for moving to 2.X. I have several fields (tax, amount, fee) in an order record all with NULL set to "No", each is a decimal(6,2) field, and each has default value of 0.00

The following code worked fine and dandy in the 1.2 system and in the event nothing was specified by the user for tax, amount, or fee, they were properly set to 0.00 in the DB:

$this->cleanUpFields();
$this->Order->create();
if ($this->Order->save($this->data)) {

In my 1.3 migration build I am getting 'tax' cannot be NULL and I see in the SQL insert op that indeed it is being set to NULL, and thus MySQL chokes on it.

Why did it operate correctly in the old 1.2 system and what should I do to correct this? It is pervasive across numerous classes and I want to get it right the first time.

Is this perhaps a difference in the way the form helper is handling initialization of the fields? Or somewhere in the model? I did not need to specify validation for these fields as used back in 1.2 etc.

Thanks in advance!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Posting Data to Controller Function that has no view




<?php echo $this->Form->create('user', array('action'=>'view','inputDefaults'=> array('div'=> false,'fieldset'=>false))); ?>
 <p><?php echo $this->Form->input('username');?></p>
 <?php echo $this->Form->postLink('Find User', array('action' => 'view',$this->request->data['user']['username']));?>

When I try to send this with a submit button I get an error msg that the view file does not exist. 
When I try sending as above with a post link I get "undefined variable or undefined index". 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

Hey

Since you're using gmail, can you confirm you've enabled IMAP in your actual gmail account settings. If you don't do this, you will never be able to send emails via SMTP.

It's also worth mentioning that since you're using TLS, the correct port is 587. SSL is port 465.

Hope this helps


On 29 December 2014 at 21:51, ajt <jagguy999@gmail.com> wrote:
Hi,

I already have this line below and it doesnt work at all.
I just get timed out and if I increase the time to -1 in php.ini it does nothing
Whats wrong with this cakephp email as this is annoying now.

 $Email = new CakeEmail('gmail');

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.



--
Kind Regards
 Stephen Speakman

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Monday, December 29, 2014

Re: 3.0: Saving new entity with belongsToMany data

i figured out part of my trouble, but the purpose of the original post still remains.

The parent record in Listings wasn't saving correctly because i didn't have an `active` field in the form (facepalm). Corrected that. Still having trouble with the date field, kinda frustrated there. But to the point...

When i save my data, i'm now getting a record in Listings. Yay! But the associated data in ListingsAttrs is still not there. Boo!

Current structure of ListingsAttrs POST data:
[listings_attrs] => Array (
   
[4] => Array (
       
[attr_id] => 4
   
)
   
[1] => Array (
       
[attr_id] => 1
       
[value] => Off-street
   
)
)

Which now gives me this in the $listing Entity:
"listings_attrs": {
   
"4": {
       
"attr_id": "4"
   
},
   
"1": {
       
"attr_id": "1",
       
"value": "Off-street"
   
}
}

This is progress! The associated data wasn't in previous debug data.

So what am i still missing that it won't save that data? Remember, `value` is optional to the data record, it's controlled by the UI. So both of those records should be valid. Why then is neither of them being saved?

Any additional help here is appreciated.
-joe t.


On Monday, 22 December 2014 22:54:12 UTC-5, Joe T. wrote:
Sorry this took several days to respond, i was sick all weekend, didn't get anywhere near my computer.

i changed the names of the inputs from listingsattrs >> listings_attrs as you recommended (no clue how i missed that to begin with). My POST data now looks exactly as it did before, except for the name of that particular item. However, the log output for the $listing entity is still missing the associated ListingsAttrs data.

The ListingsAttrs Entity didn't have a $_accessible array, so i added a default:
$_accessible = [
 
'*' => true
];

The controller code looks like:
$listing = $this->Listings->newEntity($this->request->data);

/* i've also tried:
$listing = $this->Listings->newEntity($this->request->data, ['associated' => ['ListingsAttrs']]);
$listing = $this->Listings->newEntity($this->request->data, ['associated' => ['ItemAttrs']]);
$listing = $this->Listings->newEntity($this->request->data, ['associated' => ['ListingsAttrs.ItemAttrs']]);
$listing = $this->Listings->newEntity($this->request->data, ['associated' => ['ItemAttrs.ListingsAttrs']]);
*/


if ($this->Listings->save($listing)) {
 
// etc.
}
else {
 
throw new Exception...
}

What else can i try? i appreciate the help.
-joe

On Friday, 19 December 2014 11:29:12 UTC-5, José Lorenzo wrote:
You should post a property called listings_attrs, check your entity $_accessible array to make sure the property is also writable with request data.

On Friday, December 19, 2014 6:29:43 AM UTC+1, Joe T. wrote:
i've seen a couple similar threads about this, but not my exact problem.

i'm trying to follow the guide here: http://book.cakephp.org/3.0/en/orm/saving-data.html#converting-request-data-into-entities and coming up short. i'm not getting any errors (except a date field that constantly fails if it has a value, separate issue)...so i have no idea what's happening to the data i submit, or why it isn't saved to the DB.

My raw response data logged to Cake Debug is:

Array (
 
[title] => '123 Main St'
 
[street] => '123 Main St'
 
[lot_no] => 1
 
[lat] =>
 
[lng] =>
 
[city] => 'Hometown'
 
[county] =>
 
[state] => 'MI'
 
[zip] => '49000'
 
[area] => 900    
 
[bedrooms] => 2    
 
[bathrooms] => 1    
 
[price] => 525    
 
[ready_date] =>
 
[listingsattrs] => Array (
   
[4] => Array (
     
[id] => 4
   
)
   
[1] => Array (
     
[id] => 1
     
[value] => 'Off-street'
   
)
 
)
 
[park_id] => 1
 
[house_condition_id] => 3
 
[house_style_id] => 2
 
[term_id] => 2
 
[info_body] => '<p>Live here. It&#39;s great!</p>'
)

i have tables Listings, ItemAttrs, and ListingsAttrs. In ListingsTable, the relationship is defined as:
$this->addAssociations([
 
'belongsToMany' => [
   
'ItemAttrs' => [
     
'targetForeignKey' => 'attr_id',
     
'through'          => 'ListingsAttrs',
     
'saveStrategy'     => 'replace',
 
]
])'

Some attributes are required to have a value when assigned to a Listing (or other parent object they can be assigned to with a similar relationship). When a requires-value attribute is selected for the (in this case) Listing, a text field is shown & marked as required. The value is stored in the ListingsAttrs record with the Listing ID and ItemAttr ID.

When i submit the form, the correct attribute data is there. But it gets lost when i generate the Entity:

$listing = $this->Listings->newEntity($this->request->data, [
 
'associated' => ['ListingsAttrs']
]);


Log of $listing:
{
 
"title": "123 Main St",
 
"street": "123 Main St",
 
"lot_no": "1",
 
"lat": null,
 
"lng": null,
 
"city": "Hometown",
 
"county": null,
 
"state": "MI",
 
"zip": "49000",
 
"area": 900,
 
"bedrooms": 2,
 
"bathrooms": 1,
 
"price": 525,
 
"ready_date": null,
 
"park_id": 1,
 
"house_condition_id": 3,
 
"house_style_id": 2,
 
"term_id": 2,
 
"info_body": "<p>Live here. It&#39;s great!<\/p>\r\n"
}

i've tried creating the Listings entity without 'associated' at all, as 'associated' => 'ListingsAttrs', and 'associated' => 'ItemAttrs'

i'm trying to understand this ORM, because it looks like it should be very automated & easy to use. (By comparison, has anyone here used ZF1's ORM? Yikes.) But i don't know what i'm doing wrong here. It seems like i'm following the guide, but i'm obviously mixing something up.


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

Hi,

I already have this line below and it doesnt work at all.
I just get timed out and if I increase the time to -1 in php.ini it does nothing
Whats wrong with this cakephp email as this is annoying now.

 $Email = new CakeEmail('gmail');

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

Thank you.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

http://book.cakephp.org/2.0/en/core-utility-libraries/email.html
To load a config from EmailConfig you can use the config() method or pass it to the constructor of CakeEmail:
$Email = new CakeEmail();
$Email->config('default');
//or in constructor::
$Email = new CakeEmail('default');

Try:

$Email->config('gmail');
or
$Email = new CakeEmail('gmail');


Andras Kende


> On Dec 28, 2014, at 11:27 PM, ajt <jagguy999@gmail.com> wrote:
>
>
>
> I cant send an email as I get a generic error
> Error: An Internal Error Has Occurred.
>
> In config\email.php I have this for a real gmail account(pswd hidden)
>
> public $gmail = array(
> 'host' => 'smtp.gmail.com',
> 'port' => 465,
> 'username' => 'jagguy999@gmail.com',
> 'password' => 'XXXXX',
> 'transport' => 'Smtp',
> 'tls' => true
> );
>
> in controller I have
>
>
> App::uses('CakeEmail', 'Network/Email');
>
> public $components = array('Email','Session','Paginator');
>
> public function test() {
>
> $Email = new CakeEmail();
> $Email->from(array('jagguy999@gmail.com' => 'My Site'));
> $Email->to('jagguy999@gmail.com');
> $Email->subject('About');
> $Email->send('My message');
>
>
> }
>
>
>
>
>
>
>
>
>
>
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

It does work in MySQL though, so it should work in CakePHP also :)
Enjoy, John

On Monday, 29 December 2014 14:42:38 UTC+2, John Andersen wrote:
Assuming I understand it correctly, then you want to query your posts, so that any event_date having a month = 12 and a day = 29, not taking into account the year, must be found. :)

Based on the above I would see if this is possible:
$this->Post->find('all', array('conditions' => array(
   'MONTH(Post.event_date)' => 12,
   'DAY(Post.event_date)' => 29
)));


Would that work for you? Haven't tested it as I do not have a 2.x version running.
Enjoy, John
[snip]

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

Assuming I understand it correctly, then you want to query your posts, so that any event_date having a month = 12 and a day = 29, not taking into account the year, must be found. :)

Based on the above I would see if this is possible:
$this->Post->find('all', array('conditions' => array(
   'MONTH(Post.event_date)' => 12,
   'DAY(Post.event_date)' => 29
)));


Would that work for you? Haven't tested it as I do not have a 2.x version running.
Enjoy, John

On Monday, 29 December 2014 11:15:46 UTC+2, Salines wrote:
$this->Post->find('all',array('conditions' => array('Post.event_date' => '12-29'));  

// show posts where is Post.event_date like  12-29.

event_date fields is date type (Y-m-d), where they are stored dates of significant events.
In other words I need to show the anniversary.

Except using virtual fields where I will show formatted date without year (m-d), is there a more elegant solution?

Thanks



--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

A lot of people have problems with this issue on stackoverflow buthe solutions are not clear


2014-12-29 22:44:07 Error: [SocketException] SMTP timeout.
Request URL: /crm5/aptemails/test
Stack Trace:
#0 D:\AA-website design\crm5\lib\Cake\Network\Email\SmtpTransport.php(157): SmtpTransport->_smtpSend(NULL, '220')
#1 D:\AA-website design\crm5\lib\Cake\Network\Email\SmtpTransport.php(95): SmtpTransport->_connect()
#2 D:\AA-website design\crm5\lib\Cake\Network\Email\CakeEmail.php(1130): SmtpTransport->send(Object(CakeEmail))
#3 D:\AA-website design\crm5\app\Controller\AptemailsController.php(66): CakeEmail->send('sadfasdf asdf a...')
#4 [internal function]: AptemailsController->test()
#5 D:\AA-website design\crm5\lib\Cake\Controller\Controller.php(490): ReflectionMethod->invokeArgs(Object(AptemailsController), Array)
#6 D:\AA-website design\crm5\lib\Cake\Routing\Dispatcher.php(191): Controller->invokeAction(Object(CakeRequest))
#7 D:\AA-website design\crm5\lib\Cake\Routing\Dispatcher.php(165): Dispatcher->_invoke(Object(AptemailsController), Object(CakeRequest))
#8 D:\AA-website design\crm5\app\webroot\index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#9 {main}

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

Can you check your app/tmp/logs/error.log and app/tmp/logs/debug.log files to see if there is any additional information about the error?

Cheers

On 29 December 2014 at 10:36, ajt <jagguy999@gmail.com> wrote:
removing email from components has no effect i should have said


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.



--
Kind Regards
 Stephen Speakman

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

removing email from components has no effect i should have said


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

$this->Post->find('all',array('conditions' => array('Post.event_date' => '12-29'));  

// show posts where is Post.event_date like  12-29.

event_date fields is date type (Y-m-d), where they are stored dates of significant events.
In other words I need to show the anniversary.

Except using virtual fields where I will show formatted date without year (m-d), is there a more elegant solution?

Thanks



--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: cant send email

Hi,

This has no effect and I get the same dumb error which tells me nothing.

 $Email = new CakeEmail();
    
    
$Email->from('jagg...@gmail.com');
$Email->to('jag...@gmail.com');
$Email->subject('About');
$Email->message('My message');


    $Email->send();





--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Sunday, December 28, 2014

Re: cant send email

Remove 'Email' from your components list and try again.

Kindly inform us of the result.

Enjoy, John

On Monday, 29 December 2014 09:27:35 UTC+2, ajt wrote:


I cant send an email as I get a generic error
Error: An Internal Error Has Occurred.

In config\email.php I have this for a real gmail account(pswd hidden)
 
          public $gmail = array(
        'host' => 'smtp.gmail.com',
        'port' => 465,
         'username' => 'jagg...@gmail.com',
       'password' => 'XXXXX',
        'transport' => 'Smtp',
        'tls' => true
    );

in controller I have


App::uses('CakeEmail', 'Network/Email');

 public $components = array('Email','Session','Paginator');
 
public function test() {
    
     $Email = new CakeEmail();
$Email->from(array('jagg...@gmail.com' => 'My Site'));
$Email->to('jagg...@gmail.com');
$Email->subject('About');
$Email->send('My message');
    
    
 }
 









--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

cant send email



I cant send an email as I get a generic error
Error: An Internal Error Has Occurred.

In config\email.php I have this for a real gmail account(pswd hidden)
 
          public $gmail = array(
        'host' => 'smtp.gmail.com',
        'port' => 465,
         'username' => 'jagguy999@gmail.com',
       'password' => 'XXXXX',
        'transport' => 'Smtp',
        'tls' => true
    );

in controller I have


App::uses('CakeEmail', 'Network/Email');

 public $components = array('Email','Session','Paginator');
 
public function test() {
    
     $Email = new CakeEmail();
$Email->from(array('jagguy999@gmail.com' => 'My Site'));
$Email->to('jagguy999@gmail.com');
$Email->subject('About');
$Email->send('My message');
    
    
 }
 









--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Re: CakePHP 3.0.0-beta3 released

hi mark
I have a question
already can cakephp version 3 is used for the production phase for a very simple site?
or I still have to use cakephp version 2.

because I come from areas that do not use the English language, I use Inflector :: rules.
in cakephp version 2 I put like this in Inflector :: rules

Inflector :: rules ('singular', array ('rules' => array (), 'irregular' => array (),
     'uninflected' => array (
         'album', 'band', 'bandblog', 'bandmember', 'news', 'chart', 'genre',
         'kategoribandblog', 'kategoriberita', 'komentarbandblog',
         'komentarberita', 'komentarmusik', 'lyrics', 'minimanimuuser',
         'Music', 'ourprogreskategori', 'ourprogres', 'profileband',
         'rating', 'songgenre', 'subcategory', 'phone', 'userlevel', 'userprofile',
         'navigator', 'sitenavigator', 'groupnavigator', 'subkategoriberita',
         'komentarourprogres', 'ourprogrespic', 'musiknavigator',
         'musikandbandsubnavigator', 'article', 'kategoriartikel', 'komentarartikel',
         'subkategoriartikel', 'fotoartikel', 'event', 'musikartisnavigator', 'minimanimucheck',
         'mainadds', 'sideadds', 'fotoband', 'fotoblog', 'search', 'fotouser'
)));
Inflector :: rules ('plural', array ('rules' => array (), 'irregular' => array (),
     'uninflected' => array (
         'album', 'band', 'bandblog', 'bandmember', 'news', 'chart', 'genre',
         'kategoribandblog', 'kategoriberita', 'komentarbandblog',
         'komentarberita', 'komentarmusik', 'lyrics', 'minimanimuuser',
         'Music', 'ourprogreskategori', 'ourprogres', 'profileband',
         'rating', 'songgenre', 'subcategory', 'phone', 'userlevel', 'userprofile',
         'navigator', 'sitenavigator', 'groupnavigator', 'subkategoriberita',
         'komentarourprogres', 'ourprogrespic', 'musiknavigator',
         'musikandbandsubnavigator', 'article', 'kategoriartikel', 'komentarartikel',
         'subkategoriartikel', 'fotoartikel', 'event', 'musikartisnavigator', 'minimanimucheck',
         'mainadds', 'sideadds', 'fotoband', 'fotoblog', 'search', 'fotouser'
)));

how do I put this Inflector :: rules in cakephp version 3? if I simply put in
Inflector :: rules ('uninflected', ['album', 'band', 'bandblog', 'bandmember', 'news', 'chart', 'genre',
         'kategoribandblog', 'kategoriberita', 'komentarbandblog',
         'komentarberita', 'komentarmusik', 'lyrics', 'minimanimuuser',
         'Music', 'ourprogreskategori', 'ourprogres', 'profileband',
         'rating', 'songgenre', 'subcategory', 'phone', 'userlevel', 'userprofile',
         'navigator', 'sitenavigator', 'groupnavigator', 'subkategoriberita',
         'komentarourprogres', 'ourprogrespic', 'musiknavigator',
         'musikandbandsubnavigator', 'article', 'kategoriartikel', 'komentarartikel',
         'subkategoriartikel', 'fotoartikel', 'event', 'musikartisnavigator', 'minimanimucheck',
         'mainadds', 'sideadds', 'fotoband', 'fotoblog', 'search', 'fotouser']);

then to set the application neatness in cakephp version 2 I use the app :: build. and I use the app :: build like this
App :: build (array (
     'Model' => array
         (
         APP. 'Model'. DS,
         APP. 'Model'. DS. 'Adds'. DS,
         APP. 'Model'. DS. 'Articles'. DS,
         APP. 'Model'. DS. 'Band'. DS,
         APP. 'Model'. DS. 'Music'. DS,
         APP. 'Model'. DS. 'ourprogresAndEven'. DS,
         APP. 'Model'. DS. 'Site'. DS,
         APP. 'Model'. DS. 'User'. DS,
     ),
     'Controller' => array (
         APP. 'Controller'. DS,
         APP. 'Controller'. DS. 'Adds'. DS,
         APP. 'Controller'. DS. 'Articles'. DS,
         APP. 'Controller'. DS. 'Band'. DS,
         APP. 'Controller'. DS. 'Music'. DS,
         APP. 'Controller'. DS. 'ourprogresAndEven'. DS,
         APP. 'Controller'. DS. 'Site'. DS,
         APP. 'Controller'. DS. 'User'. DS,
     ),
     'View' => array (
         APP. 'View'. DS,
         APP. 'View'. DS. 'Adds'. DS,
         APP. 'View'. DS. 'Articles'. DS,
         APP. 'View'. DS. 'Band'. DS,
         APP. 'View'. DS. 'Music'. DS,
         APP. 'View'. DS. 'ourprogresAndEven'. DS,
         APP. 'View'. DS. 'Site'. DS,
         APP. 'View'. DS. 'User'. DS,
     ),
     'Vendor' => array (
         APP. 'Vendor'. DS,
         APP. 'Vendor'. DS. 'Recaptcha'. DS,
     ),
));

how to use the app whether this build in cakephp version 3

I thank you in advance, and sorry for my bad engglish

On Monday, November 17, 2014 9:49:13 AM UTC+7, mark_story wrote:
The CakePHP core team is excited to announce the release of CakePHP 3.0.0-beta3. While we had originally planned on only doing 2 beta releases, we're not entirely satisfied with the current ORM validation workflow, and want to do some additional work there. The new plan is to have at least two RC releases after beta3. The RC releases will be API frozen and no new features or breaking changes will be added.

Since 3.0.0-beta2, we've been hard at work incorporating community feedback, and completing the remaining changes that will break compatibility in a significant way.

# Breaking Changes since 3.0.0-beta2

* Bake templates now use a templating mechanism that involves a pre-parsing steps of the templates. This was done to improve the readability and ease of creating new bake templates. This also means that any custom templates that you may have will need to be updated.
* The default replacement for `Inflector::slug()` is now `-` instead of `_`.
* `LOG_ERROR` and `TESTS` constants were unused and have been removed.
* `Controller::$actions` was removed and replaced with `Controller::isAction()`. The new method makes it easier to customize which methods your controllers consider to be routable actions.
* `Component::initialize()` is now a post-constructor hook like all other initialize methods.
* Component has a new `beforeFilter()` event listener that is fired *before* a controllers' `beforeFilter` method is.
* `CakeSession::read()` returns null in all failure scenarios now.
* Controller actions invoked with `requestAction()` must return a Response object now. All other return values will trigger an error.
* Database configuration no longer accepts the `'login'` key. You *must* use `'username'`. This was changed to resolve inconsistencies across the framework.
* Checkbox and radio inputs are now nested inside their attached label elements. This was done to improve compatibility with a few popular CSS libraries. If you have customized the templates FormHelper uses, you may need to update your templates.
* `Cake\View\Error\MissingViewException` is now `Cake\View\Error\MissingTemplateException` in order to allow `MissingView` to be used for missing view classes.
* Authentication objects that had implemented `logout()` need to be updated to use the new `Auth.logout` event.
* The `App.www_root` configuration value has been renamed to `App.wwwRoot` for consistency reasons.


# New features since 3.0.0-beta2

* `Cake\Cache\EngineFileEngine` now generates directories when debug is off.
* There are several new standalone libraries extracted from CakePHP. The `Cache`, `Log`, `Utility` packages are now installable separately with composer.
* The `pj()` (print json) helper method has been added as a convenience when working in the interactive console or test cases.
* The `Model.initialize` event has been added. This event is fired right after a table's initialize hook has completed, allowing plugins or other listeners to interact with table objects.
* Database connections, cache engines, loggers and email transports can now be configured with a Datasource Name (DSN) using the `url` key. This makes it easier to define configuration in environment variables which is a recommended approach by many Platform as a service providers.
* `Component::initialize()` and `View::initialize()` were added.
* Arbitrary meta tags can be created with `HtmlHelper::meta()`.
* Exceptions are now raised when custom view class cannot be found.
* Request data marshaled into entities is not forcibly cast now. This makes validating entity data a bit easier as entity data more closely represents the original request data.
* The query expression builder now has a `between()` method for generating `BETWEEN` clauses.
* `Cake\ORM\Behavior::initialize()` was added.
* Stack traces are now displayed on fatal errors if xdebug is installed.
* `Request::is()` now caches results in memory.
* AuthComponent has two new events. `Auth.afterIdentify` is fired after a user is identified or logged in. `Auth.logout` is fired when `AuthComponent::logout()` is called.
* SessionComponent is deprecated. Instead you should be using `$this->request->session()` instead.
* Each hasher in the `FallbackHasher` class can have separate options now.

For more details on all the changes in 3.0.0, you can consult the [migration guide](http://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html). In closing, we'd like to thank all of the people that have helped so far with the 3.0 release. We've made great progress and without your help we wouldn't be here today.

Download a [packaged release](https://github.com/cakephp/cakephp/releases/3.0.0-beta3).

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.