Re: Only check beforeDelete if direct deletion

2013-02-17 Thread lowpass
On Sun, Feb 17, 2013 at 1:33 PM, wrote: > Unfortunately, that won't work since an Invoice does not always have a > Record. I still need to be able to get all of the Invoices for a Tenant > even if there is no Record associated with the Invoice. Similarly, there > can be Records that are not ref

Re: Smarty Debug Console with CakePHP

2013-02-17 Thread wen ger0606
Hi Anas Mughal I use the environment and cakephp2 smarty3.1.12. I have modified by referring to your blog, / / $ _template-> assign ('assigned_vars', $ _assigned_vars); When implemented, the symptoms that nothing is displayed on the console occurs. I think because you do not want to assign to deb

Re: Process CakeEmail error log on Cakephp 2.2.3

2013-02-17 Thread Robert
Maybe this can help. $email = new CakeEmail('myConfig'); $fromConfig = 'EMAIL_FROM_ADDRESS'; $fromNameConfig = 'EMAIL_FROM_NAME'; $email->from(array( $fromConfig => $fromNameConfig)); $email->sender(array( $fromConfig => $fromNameConfig)); $email->to('EMAIL_TO_ADDRESS'); $email->replyTo('EMAIL_REP

cake bake all -c db_config_name does not work

2013-02-17 Thread Robert Winkky
I can use ./cake bake all and it works great on $default. I can use ./cake bake model -c non_$default_database and that works fine and dandy. Is there any way to use ./cake bake all -c 'non_default_database'? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twit

Re: Only check beforeDelete if direct deletion

2013-02-17 Thread david . suna
Unfortunately, that won't work since an Invoice does not always have a Record. I still need to be able to get all of the Invoices for a Tenant even if there is no Record associated with the Invoice. Similarly, there can be Records that are not referenced by an Invoice. -- Like Us on FaceBook

Re: Only check beforeDelete if direct deletion

2013-02-17 Thread lowpass
On Sun, Feb 17, 2013 at 9:27 AM, wrote: > > Tenant hasMany Invoices (dependent => true) Remove the direct association between Tenant and Invoice and access the latter through Tenant->Record->Invoice. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/

Migration problem "PHP Fatal error: Class 'Inflector' not found"

2013-02-17 Thread Anja Liebermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody, as promised I finally migrate one of my 1.3 Applications to 2.0. I let the mirgation script run, changed the .htaccess and then I tried to to call my application, but always get this error: [Sun Feb 17 17:23:56 2013] [error] [client ::1

Only check beforeDelete if direct deletion

2013-02-17 Thread david . suna
I have an application built with CakePHP 1.3 with a model structure as follows: Tenant hasMany Records (dependent => true) Tenant hasMany Invoices (dependent => true) An Invoice can have a reference to a Record which I represent as Invoices belongsTo Records so that fetching an Invoice will fetch