Questions tagged with component

1 answer

4 votes

Asked by powtac, on 26/11/09 in Components

How can I use components in a shell

How should I include and call components in a shell?

3 answers

0 votes

Asked by lagrz, on 30/11/09 in Components

Parse Raw E-Mail

Hey guys the webserver in my host forwards incoming e-mails to a php script that I wrote which just reroutes it in the form of a post request.

I need a way to parse this raw EMAIL on the PHP file that receives this post request, and basically...

1 answer

0 votes

Asked by odin88, on 9/12/09 in Components

using model in components

I'm using CakePHP 1.1

Im trying to save data in a table but i got this error

Notice: Undefined property: AttendanceComponent::$AttendanceCache in C:\wamp\www\mpk\app\plugins\attendance\controllers\components\attendance.php on line 368

Fatal error:...

2 answers

0 votes

Asked by Max, on 16/12/09 in Models

including models in a stand alone class

I'm new to cakePHP and MVC so please bare with me. I want to create a class that can access the models but I don't know how. I tried a few things but it looks like the only way of loading one into a class is with $this-loadModel('modelname'); But...

1 answer

0 votes

Asked by buh, on 26/12/09 in Components

Using Auth with legacy database

Hi,

I'm fighting with simple Auth autentication using legacy DB with non-CakePHP schema.

In table tb_mc: I have 2 columns for authentication:

id (number) as name

admin_pass (MySQL PASSWORD hash) as password

In my contoller I create custom...

1 answer

0 votes

Asked by RomanJ, on 27/12/09 in Components

Auth component for two tables

I have to use two tables for authorization of two pieces of system. First one standard users table, second one teachers table. Is it possible to do it in CakePhp ? If yes are there any restrictions ?

Regards,

Roman

3 answers

0 votes

Asked by otisjs01, on 4/1/10 in Components

How do I use the email component?

Hello,

I am new to CakePHP and trying desperately to learn!

My most recent struggle is with the Email Component.

I have a contract. When I create the contract, I add a user. When I save the new contract...for the first time, I want to send an email...

0 answers

0 votes

Asked by otisjs01, on 8/1/10 in Models

Email Component Troubles...

I recently posted a question about the CakePHP email component, and, with the help of some of the answers and comments, was able to resolve my problem...

The thing is, solving my email problem revealed another problem!

So, here's my problem:

I have...

1 answer

0 votes

Asked by klagoggle.myopenid.com, on 19/1/10 in Helpers

Usage of components in Helpers

Hi,

i´ve written a ssh2 component to send some stuff to different servers.

The Component is working really well, but i have to use some execute functions of this component in a helper, too!

do you have any suggestions how I can solve this?

Thanks in...

1 answer

0 votes

Asked by pjb, on 2/2/10 in Components

Error sending confirmation email

Hi, I'm trying to send a confirmation email using the email component when a user signs up, but am getting the following error...

Fatal error: Call to undefined function set() in .../home/myappfolder/app/controllers/users_controller.php

Here is my...

2 answers

0 votes

Asked by christiand, on 12/2/10 in Components

Implement two separate auth components

I have a site with a client facing cms (login to manage their pages), and a customer facing landing page (login to maintain contact info and interact with elements on pages the client creates).

Clients and Customers have completely different uses...

1 answer

0 votes

Asked by fsd534we6k436353, on 15/2/10 in CakeQS

Separate captcha validation/generation into component/helper?

Hi there, i'm wondering whether it would be a "good" idea to separate CAPTCHA generation and validation into a helper and a component. The component would do the validation stuff, it would be hooked in before the auth component so that it can...

0 answers

0 votes

Asked by chadsmith729, on 20/2/10 in Components

Approvals taking forever

Hey everyone,

Has anyone else noticed that approvals are taking forever? I submitted my changes to two components over a week ago and it's still not approved (either one). What's the hold up? It used to be 24 hours and it would be approved.

Is...

2 answers

0 votes

Asked by nielin, on 26/2/10 in Components

Postmarkapp component for CakePHP

Postmarkapp.com is a new service that delivers and tracks transactional emails for web applications. Does any know of a Postmark component for CakePHP?

1 answer

0 votes

Asked by sadieFeist, on 12/3/10 in Components

EXIF or jHead

How would I go about using jhead or something like that from a component? I could just use exec, but is there a better 'cake' way?

1 answer

1 vote

Asked by cvollmann, on 16/3/10 in Components

Refresh user data for Auth

Hi,

when I update data in the User model, the Auth data is not updated.

How can I "refresh" the data which is returned by $this->Auth->user()?

Thanks in advance.

Christoph

1 answer

0 votes

Asked by andych, on 19/3/10 in Models

Fat model/skinny controller, but I need a component

Hello,

I'm a newbie to CakePHP, and in fact to oop PHP, so please forgive me if this is a silly question.

I've read a lot about fat model/skinny controller as a best practise, and it makes sense to me, so I'd like to move some things from my...

0 answers

0 votes

Asked by hkr, on 19/3/10 in Components

Email component won't work for me

Can't send email with Email component. Any help appreciated.

function email() {

$this-Email-to = 'someone@somewhere';

$this-Email-from...

1 answer

0 votes

Asked by Yopii, on 21/3/10 in Components

Est-ce que quelqu'un connait ZipComponent ?

Bonjour,

je souhaiterai utiliser ZipComponent afin de zipper des fichiers...j'arrive à faire la sélection des fichiers mais mon problème est au niveau de la conception de l'archive...je ne sais pas comment faire pour écrire l'archive puis la...

1 answer

0 votes

Asked by naoise, on 25/3/10 in Components

SMTP Error: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

Hello,

I've been doing some research but it seems there is not much about this error in CakePHP. And the code seems to be as perfect as it could be.

I am using Email Component to send an email using smtp. I Configure the SMTP as asked, but at some...

<< previous 1   2   3   4   5   6   7   8   9