I got the e-mail creation working, but this message always shows, is there
anyway to avoid it in datasource??
*Notice* (8): Undefined index: database
[*CORE\Cake\Model\Datasource\DataSource.php*, line *102*]
Thanks...
Also, how can i implement the find('all') and find('first') in datasource??
Thanks again
Em terça-feira, 29 de janeiro de 2013 08h55min40s UTC-2, André Luis
escreveu:
>
> Hi people, i am trying to create a Datasource to connect do Cpanel API to
> create some e-mails directly from my administrator pannel, for this i am
> using the xmlapi class from Cpanel (in Vendor folder), the use is something
> similiar to this:
>
> $api=new xmlapi('host','username','password');
> $api->set_port(2802);
> $result=$api->api2_query('username','Email','addpop',array('domain'=>'
> domain.com
> ','email'=>'email_without_domain','password'=>'password_for_user','quota'=>50));
>
>
> Just with these few lines it creates the e-mail in cpanel, but i want to
> put theses lines in a DataSource, so i can use for other clientes too...
> but my method create always returns true, and never execute what is inside
> the function create, i´ve readed the book a couple of times, and tryed some
> examples, but no success...
>
> Can anyone help me with this?
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.