--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Sunday, February 1, 2009
how populate data to textbox from databaseajax
Re: i wants to know how can i import contacts from Google, yahoo or others using cakephp
protocol.
You can use them as vendors in cakephp.
On Feb 1, 5:55 am, amar goud <amardeen...@gmail.com> wrote:
> hi all,
>
> i am doing an application which requires importing contacts from the mail
> servers like Google , yahoo and hot mail.
>
> how can i get Google API for contacts.....
>
> can any body tell this. what i have to do first.
>
> please reply me if you know.
>
> thank u.
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Why can't plugins have the AppError handler?
like twitter, fireeagle and such and a long way trough it I find out
that I can't use the AppError handler without re-writting it.
I love to know and understand why this isn't possible and what are the
plans on this.
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Batch adding children with Tree Behavior
associated with the respective parent, using a multidimensional array?
I have a data array structured like this (generated from a flat file):
[User] => array (
[name] => John
)
[Todo] => array (
[0] => array (
[type] => single
[note] => bread, milk, coffee
)
[1] => array (
[type] => multiple
[TodoChild] => array (
[0] => array (
[type] => single
[note] => cereal
)
[1] => array (
[type] => single
[note] => dessert
)
)
)
)
Todo actsAs "Tree" and has both a hasMany and belongsTo relationship
to itself (both relationships only have the foreignKey set to
"parent_id"). The model works fine when the user is adding children
via the webpage, but I want to find the quickest and easiest way to do
this manually or "programmatically" without having to resort to a ton
of code just to do this seemingly simple task.
The only way I thought of to accomplish this was to use a recursive
method that would save the parent, get its generated ID and set it as
the "parent_id" field for each child and then save each child.
However, that seemed a bit much just to simply add children to a
parent manually.
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Cakephp Access of files
exists. These images should not be accessed to anyone not logged in to
the community, for example, no one should be able to write
http://myhost/images/image1.jpg when not logged in.
I first thought of using .htaccess for that specific image-folder in
webroot, but then each user have to fill in this user/password as well
(as his login/pass to the site itself), and that seems a little
annoying. But that could be an option.
Instead I put all images outside the webroot-folder (in /app/images/),
and access them via the Media View (see Views in Cakephp Manual). This
works fine, but performance is really slow, since it takes a php-
action call for every image loaded (e.g. /Images/getImage/31), and
when showing 30 thumbnails this takes some time.
I would like to point directly to the image (for performance reasons).
Anyone out there knows of a better way to "protect" files from anyone
not logged in to the site?
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Batch adding records using Tree Behavior
"actsAs" a Tree. This Tree model has a hasMany 'child' relationship as
well as a belongsTo 'parent' relationship to the same model. This
setup works just fine when the user is interactively adding children
nodes and such. However, I also have a function that gathers data from
a flat file and inserts new records based on that data using saveAll.
My problem is I cannot find a quick and easy way to automatically
insert children at the same time. If I have a multidimensional array
('TodoChild' in the example below), is there a way to get the Tree
Behavior to use it to create the children and automatically assign
them to the proper parent?
The only way I thought to do it was by somehow using a recursive
method and doing a save on the parent first, then set the parent_id
for each direct child below it and saving each of those (then repeat
recursively). But that approach just seemed a bit much just to simply
add children.
My hasMany and belongsTo relationships for the model with Tree
Behavior only have the foreignKey set to "parent_id." Here is an
example data array with the same structure I am working with:
[User] => Array
(
[name] => John
)
[Todo] => Array
(
[0] => Array
(
[type] => single
[note] => bread, milk, eggs
)
[1] => Array
(
[type] => multiple
[TodoChild] => Array
(
[0] => Array
(
[type] => single
[note] => cereal
)
[1] => Array
(
[type] => single
[note] => dessert
)
)
)
)
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: utf-8 encoding problem
but my problem actually is caused by the browser . he send the url query to the cakephp in the form of ANSI and i configure the cake and the header of generated page to use the utf-8 so the quastion is how to change the recived ansi data to the utf-8 data> it's not about notpad++ it's about dynamic read write data
> (..)
This is a very common issue. Just follow this checklist:
1. Using a smart editor (for Windows: Notepad++, Textpad, ...; for
Gnu/Linux: Gedit,
Kedit, Geany, Kate, Vim...), be sure that all of your .php and .ctp
files are saved
with the UTF-8 (without BOM) encoding;
2. Be sure that your webserver is configured to serve the pages in
UTF-8 encoding
(in Apache, the line 'AddDefaultCharset UTF-8' in your httpd.conf);
3. Be sure that your database tables are configured with the UTF-8 encoding (in
MySql, create your tables with the proper collation option);
4. In the very last case, if the problem still persists and your are a
really paranoid,
change the PHP interpreter encoding in your php.ini.
Best regards.
--
MARCELO DE F. ANDRADE (aka "eleKtron")
Belem, PA, Amazonia, Brazil
Linux User #221105
[gus@parĂ¡ ~]# links http://pa.slackwarebrasil.org/
For Libby's backstory be told on Lost
http://www.petitiononline.com/libby423/petition.html
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---