Re: cakephp email component

2010-07-19 Thread Jeremy Burns | Class Outfit
It is so hard to help you with questions like this when we don't know what's going wrong. Can you be more specific? Can you paste an error message? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 Jul 2010, at 08:12, fadhli - wrote: > class MessagesContro

Re: How to find if findBy... is empty?

2010-07-19 Thread Jeremy Burns | Class Outfit
$jobstatus = $this->Jobstatus->findByTrackingno($this->data['Jobstatus']['track'])); if (empty($jobstatus): do something; else: do something else; endif; $this->set('jobstatus', $jobstatus); Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19

Re: how to create forms

2010-07-19 Thread Ed Propsner
http://book.cakephp.org/view/1384/Creating-Forms On Mon, Jul 19, 2010 at 10:14 AM, amr_AJ wrote: > how to create forms > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed t

Provide read-only interface for our CMS (Drupal)

2010-07-19 Thread geste
All, For an intranet application we run Drupal 6 but we also have a CakePHP application for back-office stuff. A simple example is employee directory. The CakePHP application is read-write with group-based access control. We'd like some of the CakePHP information to show up in Drupal on a read-

Login using Auth component

2010-07-19 Thread Petter Andreas Strøm
Hi, Im modifying an existing login function which uses the Auth component. My modifications is that i want to cache some user-details during the login-sequence. Im kind of looking for a way to implement this, but no luck yet. I kind of found a solution where i did the caching in the App_model bu

how to create forms

2010-07-19 Thread amr_AJ
how to create forms Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsub

Re: Auth config problem

2010-07-19 Thread Felix Fennell
Thanks very much for the code Cricket, it helped tonnes! I know have Auth functioning correctly - I still feel its a bit of a dark art but if it works it works. Anyway thanks again for your help. Felix On 19 July 2010 00:31, cricket wrote: > On Sun, Jul 18, 2010 at 4:47 AM, Felix Fennell > w

let users 'edit' database

2010-07-19 Thread Jay
ok guys, so here is the situation: - we have built up a website using cakephp and it contains several models. - we want some users to be able to "make changes" to the database via webpage - but we want to audit the changes before they are actual made to the database Our problem is, how do we know

Re: how to log php errors with debug = 0

2010-07-19 Thread euromark
your server logs should contain some information about the error (not the cake logs!) On 19 Jul., 18:49, cricket wrote: > On Mon, Jul 19, 2010 at 11:26 AM, stefanski > wrote: > > When having a php fatal error (i.e. call to not existing function) and > > debug set to 0, i get a blank page and do

Re: how to log php errors with debug = 0

2010-07-19 Thread cricket
On Mon, Jul 19, 2010 at 11:26 AM, stefanski wrote: > When having a php fatal error (i.e. call to not existing function) and > debug set to 0, i get a blank page and don't see any log entry in my > server log files. It happens in both versions 1.2 and 1.3. > > Do you experience the same problems? A

Re: Custom helpers not loaded

2010-07-19 Thread cricket
NOW you tell us the directory structure is different! On Mon, Jul 19, 2010 at 4:32 AM, Ragnis Armus wrote: > It did not work. > But i commented out theese lines and then cake showed me "Missing component > file" error. > "Create AccessController class in /app/controllers/components/access.php > f

Re: Find with no records in associated model

2010-07-19 Thread DragonFlyEye
Good call, thanks Graham! On Jul 18, 6:44 pm, Graham Weldon wrote: > I'd store a counter cache on RatingEvent, to store the number of > Ratings that event > has.http://book.cakephp.org/view/1033/counterCache-Cache-your-count > > Then you can just query where ratings_count = 0 > > Cheers, > Graha

how to log php errors with debug = 0

2010-07-19 Thread stefanski
When having a php fatal error (i.e. call to not existing function) and debug set to 0, i get a blank page and don't see any log entry in my server log files. It happens in both versions 1.2 and 1.3. Do you experience the same problems? Any ideas how to enable logging and redirect to an error page?

Re: CakePHP 1.3.3 rainbow icing edition released

2010-07-19 Thread Dérico Filho
Very Great News! Keep up the good work! I shall donate for this version! On Jul 19, 12:11 am, mark_story wrote: > The CakePHP development team is happy to announce the release of > CakePHP 1.3.3[1]. 1.3.3 is a maintenance release for the 1.3 branch > and contains bugfixes and optimizations for fe

saveAll and validation Error on associated Model

2010-07-19 Thread Max Dörfler
Hi Folks, I Have the following: Transaction hasMany ArticlesTransaction Transaction belongsTo Address ArticlesTransaction belongsTo Article ArticlesTransaction belongsTo Transaction ArticlesTransaction belongsTo Shipping (and some other Associations) and want to save the following with Transa

Re: translate emails in cron run

2010-07-19 Thread Dmitry Shevchenko
as I understand it use getText, but why it works on http, and completely break when I tried ti run it from console like php cron_dispatcher.php /CronJobs/send does anyone knew something about it Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

how to include new actions in ACL?

2010-07-19 Thread matsakaw
i struggled with Acl/Auth and i admit i just followed the steps without FULLY understanding what i did -- to generate the aros, acos and aros_acos tables using the build_Acl and initDB functions mentioned in the cake book/tutorial. i was only too glad then to finally make Acl/Auth work -- my users

translate emails in cron run

2010-07-19 Thread Dmitry Shevchenko
Hi. I have used a cron job to send emails to user, and I have a issue with translations. If I use translation in http call all is fine - pages translated correctly (I set Configure::write('Config.language', 'en'); in my app_controller)/ But when I'm trying to set language in cron - it sets, but w

array post gives number not string

2010-07-19 Thread james
I have an input that is fed from an array like; $sales = $this->Lead->User->find('list', array( 'fields' => 'username', 'position')); and that is then set in the normal way and i access it like this in my view; echo $form->input('sales', array ( 'la

Re: HABTM and populating join table

2010-07-19 Thread Mariano C.
I have just realize probably the error. My host deny me innoDB table so I use classic MyIsam and so there's no real foreign key SQL costraint (just right name convention). Is mandatory to explain with SQL proper foreign key? On 18 Lug, 12:58, "Mariano C." wrote: > I have 2 tables books and autho

Re: Custom helpers not loaded

2010-07-19 Thread Ragnis Armus
I got it working. Changed ROOT to realpath(dirname(__FILE__).'/../') Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group

Re: CakePHP 1.3.3 rainbow icing edition released

2010-07-19 Thread huoxito
What does he mean by this: "Disclaimer: No rainbows were harmed in the creation of this release." ? And when migrating from 1.3.2, all i have to do is substitute the cake directory on my application, right? On 19 jul, 04:37, Louie Miranda wrote: > Thanks everyone! Time to upgrade! :) > -- > Lo

Re: How to find if findBy... is empty?

2010-07-19 Thread Mike Karthauser
hi louie perhaps.. have you tried that? On Mon, July 19, 2010 9:16 am, Louie Miranda wrote: > I am sorry.. like this? > > if ($this->Jobstatus->findByTrackingno(null)) { > // error > } > else { > // do here > } > -- > Louie Miranda > - Email: lmira...@gmail.com > - Web: http://www.

ACL with Users that belongs to many Groups

2010-07-19 Thread marco.rizze...@gmail.com
Hi I'm newbie with cakephp. I have this structure : Users HABTM Groups. Now I would use ACL to manage permissions but ACL is right when the Users belongsTo Groups. I have try to search in the forum but I don't understand if with cakephp ACL it is or isn't possible. Can someone that has tried to do

Re: Custom helpers not loaded

2010-07-19 Thread Ragnis Armus
It did not work. But i commented out theese lines and then cake showed me "Missing component file" error. "Create AccessController class in /app/controllers/components/access.php file." Then i also commented out $components = ... line in my AppController. And then i got error The helper file app/vi

Re: How to find if findBy... is empty?

2010-07-19 Thread Louie Miranda
I am sorry.. like this? if ($this->Jobstatus->findByTrackingno(null)) { // error } else { // do here } -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Mon, Jul 19, 2010 at 4:03 PM, mike karthauser wrote: > If your tracking number is null before

Re: How to find if findBy... is empty?

2010-07-19 Thread mike karthauser
If your tracking number is null before you assign it a value you can findByTrackingno(null) Mike Karthauser Brightstorm limited Tel: 07939252144 On 19 Jul 2010, at 08:49, Louie Miranda wrote: > Anyone? thanks. > -- > Louie Miranda > - Email: lmira...@gmail.com > - Web: http://www.louiemirand

Re: alt tag for text box

2010-07-19 Thread Master Ram
it is possible to change the color for this displaying name when i am using alt attribute "array('title' => 'Contact Name')" in my existing system they are used color. when i am taking mouse on over the text box. the displaying information should be the the blue color. it is possible to chan

Re: email components

2010-07-19 Thread Louie Miranda
Maybe you need to authenticate on your Yahoo web hosting before sending an email. -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Mon, Jul 19, 2010 at 3:39 PM, fadhli - wrote: > > class MessagesController extends AppController { > > var $name = 'Mess

Re: How to find if findBy... is empty?

2010-07-19 Thread Louie Miranda
Anyone? thanks. -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Mon, Jul 19, 2010 at 2:20 PM, Louie Miranda wrote: > I have this code: > > $this->set('jobstatus', > $this->Jobstatus->findByTrackingno($this->data['Jobstatus']['track'])); > > I was wondering

email components

2010-07-19 Thread fadhli -
Message->read(null,$id); $this->Email->to = $Message['Client']['email']; $this->Email->bcc = array('ad...@c-artsmag.com '); $this->Email->subject = 'Welcome to our really cool thing'; $this->Email->replyTo = 'supp...@example.com';

Re: CakePHP 1.3.3 rainbow icing edition released

2010-07-19 Thread Louie Miranda
Thanks everyone! Time to upgrade! :) -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Mon, Jul 19, 2010 at 2:54 PM, Graham Weldon wrote: > Swt! > > Thanks to all the contributors this time around, we have had a great > constant stream of submissions from

email components

2010-07-19 Thread fadhli -
Message->read(null,$id); $this->Email->to = $message['Client']['email']; $this->Email->bcc = array('ad...@example.com '); $this->Email->subject = 'Welcome to our really cool thing'; $this->Email->replyTo = 'supp...@example.com';

cakephp email component

2010-07-19 Thread fadhli -
Message->read(null,$id); $this->Email->to = $message['Client']['email']; $this->Email->bcc = array('fad...@c-artsmag.com'); $this->Email->subject = 'Welcome to our really cool thing'; $this->Email->replyTo = 'supp...@example.com';