Re: RSS feeds in cake

2008-03-27 Thread Novice Programmer
Hello Tarique,

its the error that cake throws when it is not able to find layout and tries
to use default layout.

Thanks.


On 3/27/08, Dr. Tarique Sani [EMAIL PROTECTED] wrote:


 On Thu, Mar 27, 2008 at 9:26 AM, Novice Programmer
 [EMAIL PROTECTED] wrote:
 
  but i get cake parser error.
 

 What is the parse error?

 Tarique

 --
 =
 Cheesecake-Photoblog: http://cheesecake-photoblog.org
 PHP for E-Biz: http://sanisoft.com
 =

 



-- 
Thanks  Regards,
Novice (http://ishuonweb.wordpress.com/).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread Stephen Orr

Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had
to change the .htaccess files, the databases were slow as hell... and
their helpdesk support is pathetic. We're migrating all our sites away
from them now.

Steve

On Mar 26, 5:59 pm, Rob  Russell [EMAIL PROTECTED] wrote:
 Anybody hosted Cake on 1and1? I've really liked them so far but I
 haven't pushed any Cake apps on to that server yet. I had a VPS
 (somewhere else) and ran in to trouble locking it down so I've been
 relegated to managed virtual hosting for now (though 1and1 has met my
 needs completely so far).

 On Mar 26, 1:06 pm, [EMAIL PROTECTED] wrote:

  I agree with Chris on the VPS. I use KnownHost and LiquidWeb and both
  have been terrific.

  brian fidler
  

 http://www.brianfidler.com

  Follow me on Twitter:http://www.twitter.com/brianfidler

  Quoting Chris Hartjes [EMAIL PROTECTED]:

   On Wed, Mar 26, 2008 at 12:20 PM, jelmer [EMAIL PROTECTED] wrote:

I can't recommend bluehost, you'll run into performance problems quite
quickly I think, unless you have a very simple app. I used to have a
(vbulletin) forum there and I was suspended a few times because of
performance issues. I've heard good things about mediatemple but am
using a futurehosting.biz vps right now which is all right.

   If you have any sort of sysadmin-fu, I recommend getting a VPS as
   well.  I'm on slicehost and have had ZERO problems since switching to
   them about 5 months ago.

   --
   Chris Hartjes
   Internet Loudmouth
   Motto for 2008: Moving from herding elephants to handling snakes...
   @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Unit Testing of cakephp 1.1 (not cakephp 1.2)

2008-03-27 Thread bhushan A

Can anybody help me how to do unit testing of cakephp 1.1.. i ahve
gone though this link - 
http://cakebaker.42dh.com/2006/12/18/testing-with-cakephp-12-a-preview/
. But its only for 1.2 version. how can i achieve this.?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Cakephp 1.2 on PHP 4.3.10/Apache/2.0.49 (Fedora)

2008-03-27 Thread AL

Hi Everyone,

I am trying to setup my cake application on this configuration.

cake_1.2.0.6311-beta
PHP 4.3.10
Apache/2.0.49 (Fedora)


PHP API 20020918
PHP Extension   20020429
Zend Extension  20021010

No htaccess and App.BaseUrl is uncommented in config.php

But encountered the following errors when accessing
http://domain.com/staging_web/index.php?url=/pages/home


Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/
html/staging_web/cake/libs/view/view.php on line 634

Fatal error: Call to a member function on a non-object in /var/www/
html/staging_web/cake/libs/cache.php on line 208


Is it possible to get the application working on the above
configuration?

Any hints on rectifying the errors?


Regards,
Ai Leen


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



ticket #3794 problem...

2008-03-27 Thread skip

Hi ,

I am using cakephp1.2beta with mssql 2005 express edition..The problem
i am facing is related with ticket #3794.
I am continuously watching the cakephp trac for the solution but
without any luck..
Do anyone has sorted out the problem yet?? as I urgently need some
solution for this

Thanks in advance,

Skip

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Editing paginator URL

2008-03-27 Thread Haris

I had tried searching and found none that had similar issue. I want to
append parameters to the URL.

On Mar 27, 8:08 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
 Easy, just search in this group, found one of the many threads
 discussing this issue, then apply the solution proposed.

 On Wed, Mar 26, 2008 at 3:38 PM, Haris [EMAIL PROTECTED] wrote:

   I have a search query that I want to append to the paginator returned
   URL. How can I append parameters to the URL?

   
  Example:http://isharis.dnsalias.com/songs/search/page:2/relevance/?search=Red...

   http://bin.cakephp.org/view/1344185837

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Your database configuration file is not present.

2008-03-27 Thread Raistlin Majere

I uploaded CakePHP to /public_html, but it is giving me an error.
Your database configuration file is not present. My database
configuration file IS present! Why am I getting this error message? I
need to install CakePHP, but not CakePHP support in my host. How can I
do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Define the GMT ?

2008-03-27 Thread Neveldo

Thank aranworld, I will try this !

Cordially,
Neveldo : http://www.neveldo.fr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread Miki

 Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had
 to change the .htaccess files, the databases were slow as hell... and
 their helpdesk support is pathetic. We're migrating all our sites away
 from them now.

I have my first test cake application in 11 (no traffic). The only
issue was a line i needed to add in htaccess.

Miki.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Editing paginator URL

2008-03-27 Thread Dardo Sordi Bogado

Refactor your code to use named args, and pass them to paginator options;

in controller:

if (isset($this-params['url']['search'])) {
 $search = $this-params['url']['search'];
} else {
  $search = $this-params['named']['search']
}

$this-set('search', $search); // pass it to view

in view:

$url = array_merge($this-passedArgs, array('search' = $search));
$paginator-options(array('url' = $url));

On Thu, Mar 27, 2008 at 1:43 AM, Haris [EMAIL PROTECTED] wrote:

  I had tried searching and found none that had similar issue. I want to
  append parameters to the URL.


  On Mar 27, 8:08 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
   Easy, just search in this group, found one of the many threads
   discussing this issue, then apply the solution proposed.
  

  On Wed, Mar 26, 2008 at 3:38 PM, Haris [EMAIL PROTECTED] wrote:
  
 I have a search query that I want to append to the paginator returned
 URL. How can I append parameters to the URL?
  
 
 Example:http://isharis.dnsalias.com/songs/search/page:2/relevance/?search=Red...


 
 http://bin.cakephp.org/view/1344185837

  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: ticket #3794 problem...

2008-03-27 Thread Sliv

Just at first glance, your login function's controller doesn't already
have your user model, so you're doing an import?  Also, you should be
able to get the user id from the functionality in the auth component
or possibly the session...  If you search the group as well as the
frequent discussions page there's links to a lot of auth documentation/
solutions on various people's blogs that will probably be of great
help to you.

On Mar 27, 3:25 am, skip [EMAIL PROTECTED] wrote:
 Hi ,

 I am using cakephp1.2beta with mssql 2005 express edition..The problem
 i am facing is related with ticket #3794.
 I am continuously watching the cakephp trac for the solution but
 without any luck..
 Do anyone has sorted out the problem yet?? as I urgently need some
 solution for this

 Thanks in advance,

 Skip
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Your database configuration file is not present.

2008-03-27 Thread Sliv

-What is the exact filename of your db config file
-What does your installation dir structure look like

On Mar 27, 4:23 am, Raistlin Majere [EMAIL PROTECTED] wrote:
 I uploaded CakePHP to /public_html, but it is giving me an error.
 Your database configuration file is not present. My database
 configuration file IS present! Why am I getting this error message? I
 need to install CakePHP, but not CakePHP support in my host. How can I
 do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread SeanW

On Mar 26, 12:59 pm, Rob  Russell [EMAIL PROTECTED] wrote:
 Anybody hosted Cake on 1and1? I've really liked them so far but I
 haven't pushed any Cake apps on to that server yet. I had a VPS
 (somewhere else) and ran in to trouble locking it down so I've been
 relegated to managed virtual hosting for now (though 1and1 has met my
 needs completely so far).

I've run some pretty simple cake stuff on 11 and have been pretty
happy. I wrote up about it:

http://ertw.com/blog/2007/11/05/pushing-a-cakephp-app-from-dev-to-prod/

some people have also commented on the article with improvements to my
scripts.

Sean
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Non Numeric index issues.

2008-03-27 Thread Defranco

No ideas?

Also I found this bug on Trac that I think that is related with my
issue:

https://trac.cakephp.org/ticket/4224

/Erico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Define the GMT ?

2008-03-27 Thread Neveldo

Re-hi,

I've tried your solution. I'm working on WAMPServer 5. I tried to
config the timezone by php.ini or .htaccess but it don't change the
date() value or the created date when a insert new data with cake.

Can you help me ?

thank !

Cordially,
Neveldo : http://www.neveldo.fr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Your database configuration file is not present.

2008-03-27 Thread Raistlin Majere

the name is database.php

the dir structure is unchanged

On Mar 27, 9:32 am, Sliv [EMAIL PROTECTED] wrote:
 -What is the exact filename of your db config file
 -What does your installation dir structure look like

 On Mar 27, 4:23 am, Raistlin Majere [EMAIL PROTECTED] wrote:

  I uploaded CakePHP to /public_html, but it is giving me an error.
  Your database configuration file is not present. My database
  configuration file IS present! Why am I getting this error message? I
  need to install CakePHP, but not CakePHP support in my host. How can I
  do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Your database configuration file is not present.

2008-03-27 Thread Raistlin Majere

I searched for root_path and root_app in there, but the text was not
found.

On Mar 27, 9:31 am, bingo [EMAIL PROTECTED] wrote:
 Probably CakePHP is not able to access the databaes configuration..
 Open app/webroot/index.php file and change appropriate settings such
 as root_path, root_app, etc as suggested in the file.

 Regards,

 On Mar 27, 4:23 am, Raistlin Majere [EMAIL PROTECTED] wrote:

  I uploaded CakePHP to /public_html, but it is giving me an error.
  Your database configuration file is not present. My database
  configuration file IS present! Why am I getting this error message? I
  need to install CakePHP, but not CakePHP support in my host. How can I
  do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Buttons with the form helper

2008-03-27 Thread MonkeyGirl

Hi again gang!

I stumbled upon a neat article about using HTML button elements, as
opposed to input elements that happen to be buttons:

http://particletree.com/features/rediscovering-the-button-element/

I think it'd be really neat to get the form helper to generate these.
However, when I try to do it using either $form-input('foo',
array('type' = 'button')); or $form-button('foo'); , it makes an
input element with a type attribute of button, rather than making an
actual button element.

Echoing out the raw HTML just before $form-end(); works just fine,
but I'm always wary of going over Cake's head, so I was wondering if
there was a way to do it properly.

Sorry if I'm missing something obvious, but is there a way to get the
form helper to generate button elements?

Thanks again everyone,
Zoe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Define the GMT ?

2008-03-27 Thread Neveldo

Ok, I think the simpliest way to do this is to define the GMT in the
bootstrap file :

Configure::write('gmt', 1);

We can use it when displaying dates in views to take account of the
GMT timezone.

resolved :)

Cordially,
Neveldo : http://www.neveldo.fr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: RSS feeds in cake

2008-03-27 Thread Samuel DeVore

is your rss view in a folder like /views/entities/rss/view.ctp
and did you make a rss layout like
/views/layouts/rss/default.ctp

Sam D

On Wed, Mar 26, 2008 at 11:43 PM, Novice Programmer
[EMAIL PROTECTED] wrote:
 Hello Tarique,

 its the error that cake throws when it is not able to find layout and tries
 to use default layout.

 Thanks.



 On 3/27/08, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
 
  On Thu, Mar 27, 2008 at 9:26 AM, Novice Programmer
  [EMAIL PROTECTED] wrote:
  
   but i get cake parser error.
  
 
  What is the parse error?
 
  Tarique
 
  --
  =
  Cheesecake-Photoblog: http://cheesecake-photoblog.org
  PHP for E-Biz: http://sanisoft.com
  =
 
 



 --
 Thanks  Regards,
 Novice (http://ishuonweb.wordpress.com/).

  




-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using crumbs in cake 1.2

2008-03-27 Thread ygneo

Thanks! It's works!

On 26 mar, 15:40, grigri [EMAIL PROTECTED] wrote:
 Just leave the url parameter blank and you won't get a link:

 ?php $html-addCrumb('Gestión de usuarios'); ?

 Note that if you do this, html is allowed [the input is not h()-ed],
 so if you have any  or  characters you'll have to escape them
 manually.

 On Mar 26, 9:55 am,ygneo[EMAIL PROTECTED] wrote:

  Hi everybody!

  I'm learning to use crumbs with cake 1.2, but I don't find out how to
  show the first crumb out of an anchor link (a) to avoid the user
  clicks and reload of the page. This is my code:

  ?php $html-addCrumb('Gestión de usuarios', '/usuarios/nuevo/',
  array('id'='seleccionada')); ?

  h3?php echo $html-getCrumbs(); ? /h3

  I'll like to show

  Gestión de usuarios

  and not

  a id =seleccionada href=/usuarios/nuevoGestión de usuarios/a

  If that is possible?

  Excuse me if my english is poor, I'm spanish.

  Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Localizate month names

2008-03-27 Thread ygneo

Thanks everybody, it works, I didn't know it would be in
bootstrap.php.

On 27 mar, 01:37, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
   Be careful though with LC_ALL, because it has a wider effect than just
   localizing month names... eg. for French, setting the separator for
   float to the comma instead of the dot, which brings trouble when
   inserting to a MySQL database not configured the same.

 Yes, I know, but that was also a requirement for the app.

   As to me, I simply use :

   setlocale(LC_TIME,fr_FR.UTF-8);

   Guillaume
   --
   Cake blog:http://cherryonthe.popnews.com

   On 26 mar, 19:34, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
setlocale does work for me, I have this in app/config/bootstrap.php :

   setlocale(LC_ALL, 'es_AR.utf8');On Wed, Mar 26, 2008 at 8:29 
   AM,ygneo[EMAIL PROTECTED] wrote:

  Hi everybody!

  Anyone knows a good method to localizate month names when using $form-
  input with a date field?

  I mean, setlocale doesn't works for me, and I think it would works
  with L10n, with I haven't find out how...

  Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cakephp 1.2 on PHP 4.3.10/Apache/2.0.49 (Fedora)

2008-03-27 Thread Gwoo

http://domain.com/staging_web/index.php/pages/home is the correct url.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread SumanRS

I've had the same experience as Miki. You need to be good at htaccess
files to get cake working on 1and1 ... but running Cake on 1and1 seems
fine.

- SumanRS

On Mar 27, 7:06 am, Miki [EMAIL PROTECTED] wrote:
  Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had
  to change the .htaccess files, the databases were slow as hell... and
  their helpdesk support is pathetic. We're migrating all our sites away
  from them now.

 I have my first test cake application in 11 (no traffic). The only
 issue was a line i needed to add in htaccess.

 Miki.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Localizate month names

2008-03-27 Thread Molt

Anybody a clue then, why the current nightly (March 25th) doesn't
display the utf-8 name for march (in german März) anymore?

echo utf8_encode(
 $form-input('datetime',array('label' = 'Datum  
Beginn',
'timeFormat' = 24, 'dateFormat' = 'DMY'))
);

this is my code

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



UTF8 monthname in date-picker

2008-03-27 Thread Molt

Heyho,
when using the beta 1.2 the following code was working great:

echo utf8_encode(
 $form-input('datetime',array('label' = 'Datum  Beginn',
'timeFormat' = 24, 'dateFormat' = 'DMY'))
);

Anyway, now i tried the nightly of 2008-03-25 and it does not like
this way :(
Instead of the german März (for march) i get simply nothing, an empty
string.

Does anybody know, whats up with this? I know this is a nightly, but
i'd like to know if i made some mistake or i just have to wait for
some codechanges :)

thanks a lot in advance!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: UTF8 monthname in date-picker

2008-03-27 Thread Molt

uhm, i'm sorry for the doublepost ... had some technical problems o_O




On Mar 27, 3:38 pm, Molt [EMAIL PROTECTED] wrote:
 Heyho,
 when using the beta 1.2 the following code was working great:

 echo utf8_encode(
  $form-input('datetime',array('label' = 'Datum  Beginn',
 'timeFormat' = 24, 'dateFormat' = 'DMY'))
 );

 Anyway, now i tried the nightly of 2008-03-25 and it does not like
 this way :(
 Instead of the german März (for march) i get simply nothing, an empty
 string.

 Does anybody know, whats up with this? I know this is a nightly, but
 i'd like to know if i made some mistake or i just have to wait for
 some codechanges :)

 thanks a lot in advance!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



SOAP server. Handle by controller.

2008-03-27 Thread wDevil

I want to make SOAP service with WSDL generation like this
http://bakery.cakephp.org/articles/view/a-component-to-help-creating-soap-services,
but with handle by controller like this
http://bakery.cakephp.org/articles/view/implementing-soap-on-cakephp.
With authorization.

app/controllers/components/soap.php
?php
vendor('wshelper/lib/soap/IPReflectionClass.class');
vendor('wshelper/lib/soap/IPReflectionCommentParser.class');
vendor('wshelper/lib/soap/IPXMLSchema.class');
vendor('wshelper/lib/soap/IPReflectionMethod.class');
vendor('wshelper/lib/soap/WSDLStruct.class');
vendor('wshelper/lib/soap/WSDLException.class');

/**
 * Class SoapComponent
 *
 * Generate WSDL and handle SOAP calls
 */
class SoapComponent extends Component
{
var $params = array();

function initialize($controller)
{
$this-params = $controller-params;
}

/**
 * Get WSDL for specified model.
 *
 * @param string $modelClass : model name in camel case
 * @param string $serviceMethod : method of the controller that
will handle SOAP calls
 */
function getWSDL($modelId, $serviceMethod = 'call')
{
$modelClass = $this-__getModelClass($modelId);
$expireTime = '+1 year';
$cachePath = $modelClass . '.wsdl';

// Check cache if exist
$wsdl = cache($cachePath, null, $expireTime);

// If DEBUG  0, compare cache modified time to model file
modified time
if ((Configure::read()  0)  (! is_null($wsdl))) {

$cacheFile = CACHE . $cachePath;
if (is_file($cacheFile)) {
$modelMtime = filemtime($this-
__getModelFile($modelId));
$cacheMtime = filemtime(CACHE . $cachePath);
if ($modelMtime  $cacheMtime) {
$wsdl = null;
}
}

}

// Generate WSDL if not cached
if (is_null($wsdl)) {
App::import('Controller',array($modelClass));
$refl = new IPReflectionClass($this-
__getFullNameClass($modelId));

$controllerName = $this-params['controller'];
$serviceURL = Router::url(/$controllerName/
$serviceMethod, true);

$wsdlStruct = new WSDLStruct('http://
schema.example.com',
 $serviceURL . '/' .
$modelId,
 SOAP_RPC,
 SOAP_LITERAL);
$wsdlStruct-setService($refl);
try {
$wsdl = $wsdlStruct-generateDocument();
// cache($cachePath, $wsdl, $expireTime);
} catch (WSDLException $exception) {
if (Configure::read()  0) {
$exception-Display();
exit();
} else {
return null;
}
}
}

return $wsdl;
}

/**
 * Handle SOAP service call
 *
 * @param string $modelId : underscore notation of the called
model
 *  without _service ending
 * @param string $wsdlMethod : method of the controller that will
generate the WSDL
 */
function handle($modelId, $wsdlMethod = 'wsdl')
{
$modelClass = $this-__getModelClass($modelId);
$wsdlCacheFile = CACHE . $modelClass . '.wsdl';

// Try to create cache file if not exists
if (! is_file($wsdlCacheFile)) {
$this-getWSDL($modelId);
}

if (is_file($wsdlCacheFile)) {
$server = new SoapServer($wsdlCacheFile);
} else {
$controllerName = $this-params['controller'];
$wsdlURL = Router::url(/$controllerName/$wsdlMethod,
true);
$server = new SoapServer($wsdlURL . '/' . $modelId);
}
//$server-setClass($modelClass.Controller);
$server-setClass($controllerName.'Controller');
$server-handle();
}

/**
 * Get model class for specified model id
 *
 * @access private
 * @return string : the model id
 */
function __getModelClass($modelId)
{
$inflector = new Inflector;
return ($inflector-camelize($modelId) . 'service');
}

function __getFullNameClass($modelId)
{
$inflector = new Inflector;
return ($inflector-camelize($modelId) .
'serviceController');
}


/**
 * Get model file for specified model id
 *
 * @access private
 * @return string : the filename
 */
function __getModelFile($modelId)
{
$modelDir = dirname(dirname(dirname(__FILE__))) . DS .
'controllers';
return $modelDir . DS . $modelId . '_controller.php';
}
}
?

app/controllers/service_controller.php
?php
class ServiceController extends AppController
{
public $name = 'Service';
public $uses = array();
public $helpers = array();
public $components = array('Soap');

public function call()
{
CakeLog::write(LOG_DEBUG,'Begin 

Can a Custom Helper render an element?

2008-03-27 Thread [EMAIL PROTECTED]

Again, this strikes me as devastatingly simple. Again, I've searched
through docs and manuals to no avail.

I want
class EditorHelper extends Helper
...
function displayControl($name) {
//set a bunch of stuff then
$this-element(editor/$name..thtml);
  }

but, obviously, there's no Helper::element method so i also try
View::element(editor/$name..thtml);

which yields:
Method EditorHelper::renderElement does not exist [CORE/cake/libs/view/
helper.php, line 148]

so the element()  method is doing a $this-renderElement...

so it's starting to look like this just isn't possible?

is there somewhere else that reusable elements should be put if you're
going to use helpers rather than views to display them?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Buttons with the form helper

2008-03-27 Thread b logica

You'd have to patch HTMLHelper yourself. It currently does not have
any capability to output a button tag. To it, 'button' means an input
with type = 'button'. This should be changed, IMHO.

On Thu, Mar 27, 2008 at 9:49 AM, MonkeyGirl [EMAIL PROTECTED] wrote:

  Hi again gang!

  I stumbled upon a neat article about using HTML button elements, as
  opposed to input elements that happen to be buttons:

  http://particletree.com/features/rediscovering-the-button-element/

  I think it'd be really neat to get the form helper to generate these.
  However, when I try to do it using either $form-input('foo',
  array('type' = 'button')); or $form-button('foo'); , it makes an
  input element with a type attribute of button, rather than making an
  actual button element.

  Echoing out the raw HTML just before $form-end(); works just fine,
  but I'm always wary of going over Cake's head, so I was wondering if
  there was a way to do it properly.

  Sorry if I'm missing something obvious, but is there a way to get the
  form helper to generate button elements?

  Thanks again everyone,
  Zoe.
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can a Custom Helper render an element?

2008-03-27 Thread grigri

It is possible quite easily.

The reason your attempt failed is that View::element internally calls
View::renderElement via the $this variable, which [because you're
calling it statically from within the helper] is resolved to the
helper.

Just get a reference to the view object:

class BreakfastHelper extends AppHelper {
  function eggs() {
$View = ClassRegistry::getObject('view');
$View-element('bacon');
  }
}

Note that you don't need to add the extension to element() or
renderElement(), it is handled automatically.

On Mar 27, 3:40 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Again, this strikes me as devastatingly simple. Again, I've searched
 through docs and manuals to no avail.

 I want
 class EditorHelper extends Helper
 ...
 function displayControl($name) {
 //set a bunch of stuff then
 $this-element(editor/$name..thtml);
   }

 but, obviously, there's no Helper::element method so i also try
 View::element(editor/$name..thtml);

 which yields:
 Method EditorHelper::renderElement does not exist [CORE/cake/libs/view/
 helper.php, line 148]

 so the element()  method is doing a $this-renderElement...

 so it's starting to look like this just isn't possible?

 is there somewhere else that reusable elements should be put if you're
 going to use helpers rather than views to display them?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can a Custom Helper render an element?

2008-03-27 Thread [EMAIL PROTECTED]

just in case someone stumbles by this thread with a  similar issue:

you have to have

return $View-element(editor/$name);

if your view call is like

echo $myHelper-displayControl($name);

OR

function displayControl($name) {
$View = ClassRegistry::getObject('view');
echo $View-element(editor/$name);
}

And I'm up and running, thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Buttons with the form helper

2008-03-27 Thread MonkeyGirl

 You'd have to patch HTMLHelper yourself. It currently does not have
 any capability to output a button tag. To it, 'button' means an input
 with type = 'button'. This should be changed, IMHO.

Ah, thank you. At least I know now, thanks.

Zoe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Test suite 1.2: Is there a report for the Core Test Cases fails?

2008-03-27 Thread Defranco

Hi all,

I'm running test suite 1.2 and I'm getting some core test cases fails
on 1.2 beta.

Is there a standard test report for the core test cases that core
people got while released cake 1.2 beta so I could compare fails
results to check if cake is working fine on my system.

regards

Erico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Test Suite: is there a way to test for expected exception errors?

2008-03-27 Thread aranworld

I am working on setting up a test and part of my test triggers an
exception error.  This is intentional, though.  I actually want to
throw the exception, because it proves that the code is working
correctly.

However, it doesn't seem like there is anything like
'assertException' ... I'm not even sure this would work anyways.

My question is, how do you design a test in which you want to throw an
exception to prove that the code is working correctly?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Test suite 1.2: Is there a report for the Core Test Cases fails?

2008-03-27 Thread aranworld

I would be curious to see this as well.

However, I believe that you SHOULD be seeing many failing test cases
with the core tests.  I think this is why 1.2 is still a beta release
-- there are still a bunch of bugs to work out.

On Mar 27, 9:35 am, Defranco [EMAIL PROTECTED] wrote:
 Hi all,

 I'm running test suite 1.2 and I'm getting some core test cases fails
 on 1.2 beta.

 Is there a standard test report for the core test cases that core
 people got while released cake 1.2 beta so I could compare fails
 results to check if cake is working fine on my system.

 regards

 Erico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: RSS feeds in cake

2008-03-27 Thread Anupom
You can try out this tutorial
http://anupom.wordpress.com/2008/03/12/rss-in-cakephp-12/


On Thu, Mar 27, 2008 at 8:13 PM, Samuel DeVore [EMAIL PROTECTED] wrote:


 is your rss view in a folder like /views/entities/rss/view.ctp
 and did you make a rss layout like
 /views/layouts/rss/default.ctp

 Sam D

 On Wed, Mar 26, 2008 at 11:43 PM, Novice Programmer
 [EMAIL PROTECTED] wrote:
  Hello Tarique,
 
  its the error that cake throws when it is not able to find layout and
 tries
  to use default layout.
 
  Thanks.
 
 
 
  On 3/27/08, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
  
   On Thu, Mar 27, 2008 at 9:26 AM, Novice Programmer
   [EMAIL PROTECTED] wrote:
   
but i get cake parser error.
   
  
   What is the parse error?
  
   Tarique
  
   --
   =
   Cheesecake-Photoblog: http://cheesecake-photoblog.org
   PHP for E-Biz: http://sanisoft.com
   =
  
  
 
 
 
  --
  Thanks  Regards,
  Novice (http://ishuonweb.wordpress.com/).
 
   
 



 --
 --
 (the old fart) the advice is free, the lack of crankiness will cost you

 - its a fine line between a real question and an idiot

 http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
 http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
 http://blog.samdevore.com/cakephp-pages/i-cant-bake/

 



-- 
Anupom Syam
TrippertLabs, Dhaka
http://www.anupom.wordpress.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Test Suite using a console or shell script

2008-03-27 Thread Defranco

Is there a standard way to run Test Suite 1.2 cases using a script
(like console) or the only way is via web interface?

I'm running it trying to run unix commands like:

php webroot/test.php | lynx -stdin -dump

but I want to know if there is a better way to do it.

thanks

Erico


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Run query in background while showing Please wait

2008-03-27 Thread kdecapite

 If I'm understanding it correctly, you just have a full name in the import
 model and broken out first and last names in your contact model.

I may have not explained the setup properly. I don't actually have a
full_name field in either table (import_contacts and contacts are
the actual MySQL table names). Each of these tables have fn and ln
fields, however. So the problem is that I need to somehow find all
records in the contacts table which have the same values in the fn
and ln fields as the import_contacts table.

 Hmm. Is there a way you could make them directly correlate? It's a
 pretty fast DB query if you can get them to line up.

The only idea I have at the moment is to create a field in both tables
which simply stores the concatenated value of a record's fn and ln
fields. This would require me to write a script to retro-fit the
existing 30k contact records, as well as update some logic in my add
contact controller. Not to mention this would also create a redundant
field in the table and still doesn't ultimately solve the problem
because what if in the future I want to find duplicates matching fn,
ln and mi (middle initial)? I would have to create yet another
dummy field in my table.

 The beauty of doing the heavy lifting in SQL, even if you can't do it
 in the ORM, is that you only have to bring the matches across the
 wire. So instead of a minimum of 30,000 records coming out of the DB
 (and each getting messed around with Cake's ORM) you get only the
 dupes.

Oh I hear you on this one :) Once I realized I *couldn't* do it with
SQL I was quite bummed! Of course, maybe there's still a way...

- Kevin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Test Suite using a console or shell script

2008-03-27 Thread Sliv

I haven't tried this, but you may want to check it out:

http://lemoncake.wordpress.com/2007/06/24/cakephp-test-suite-shell/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Reset Password Tutorial (if anyone needs it!)

2008-03-27 Thread John R

Along with the disclaimer that this might not be a GREAT way to do
this method, I present my first CakePHP tutorial: Reset Password

http://www.johnroa.net/2008/03/27/cakephp-tutorial-reset-password-cake-12xxx/

Enjoy!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread Stephen Orr

Perhaps I came down a little hard on them. I had a bad experience with
their support the other day, which has resulted in me moving a client
site to Webfusion instead. Stupidity really.

On Mar 27, 2:31 pm, SumanRS [EMAIL PROTECTED] wrote:
 I've had the same experience as Miki. You need to be good at htaccess
 files to get cake working on 1and1 ... but running Cake on 1and1 seems
 fine.

 - SumanRS

 On Mar 27, 7:06 am, Miki [EMAIL PROTECTED] wrote:

   Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had
   to change the .htaccess files, the databases were slow as hell... and
   their helpdesk support is pathetic. We're migrating all our sites away
   from them now.

  I have my first test cake application in 11 (no traffic). The only
  issue was a line i needed to add in htaccess.

  Miki.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Your database configuration file is not present.

2008-03-27 Thread Stephen Orr

I know this might seem illogical to you - but ALL the information you
need to get Cake working is in the docs. Hell, in most cases all you
have to do is upload the files as downloaded either from the site or
from SVN. This is all I've ever had to do.

Rename app/config/database.default.php to database.php, add your
database settings to it, and that should get you a basic, if minimal,
Cake site running. Beyond that, the docs will help further.

If you're trying to install it in a wildly different folder structure,
then yes, you will have to change some paths in app/webroot/index.php
- but unless you're doing so, you will generally NEVER need to touch
it.

On Mar 27, 1:46 pm, Raistlin Majere [EMAIL PROTECTED] wrote:
 I searched for root_path and root_app in there, but the text was not
 found.

 On Mar 27, 9:31 am, bingo [EMAIL PROTECTED] wrote:

  Probably CakePHP is not able to access the databaes configuration..
  Open app/webroot/index.php file and change appropriate settings such
  as root_path, root_app, etc as suggested in the file.

  Regards,

  On Mar 27, 4:23 am, Raistlin Majere [EMAIL PROTECTED] wrote:

   I uploaded CakePHP to /public_html, but it is giving me an error.
   Your database configuration file is not present. My database
   configuration file IS present! Why am I getting this error message? I
   need to install CakePHP, but not CakePHP support in my host. How can I
   do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Run query in background while showing Please wait

2008-03-27 Thread b logica

On Thu, Mar 27, 2008 at 12:59 PM, kdecapite [EMAIL PROTECTED] wrote:

  I may have not explained the setup properly. I don't actually have a
  full_name field in either table (import_contacts and contacts are
  the actual MySQL table names). Each of these tables have fn and ln
  fields, however. So the problem is that I need to somehow find all
  records in the contacts table which have the same values in the fn
  and ln fields as the import_contacts table.


I could be misinterpreting your needs, but ...

SELECT c.id, c.fn, c.ln FROM contacts AS c
INNER JOIN import_contacts AS ic ON c.fn = ic.fn AND c.ln = ic.ln;

This will select the id, fn, and ln from contacts where it also exists
in import_contacts.

  The only idea I have at the moment is to create a field in both tables
  which simply stores the concatenated value of a record's fn and ln
  fields. This would require me to write a script to retro-fit the
  existing 30k contact records, as well as update some logic in my add
  contact controller. Not to mention this would also create a redundant
  field in the table and still doesn't ultimately solve the problem
  because what if in the future I want to find duplicates matching fn,
  ln and mi (middle initial)? I would have to create yet another
  dummy field in my table.


UPDATE TABLE contacts ADD COLUMN full_name VARCHAR(128);  -- or whatever size
UPDATE TABLE contacts SET full_name = CONCAT_WS(' ', fn, ln);

BUT, you'd probably be far better off simply creating an index on the tables:

CREATE INDEX contacts_fullname ON contacts (fn, ln);
CREATE INDEX import_contacts_fullname ON import_contacts (fn, ln);

This is all for MySQL, which i'm assuming you're using.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread Baz
Nope, you didn't come down too hard on 1and1.

But it all depends on what you're trying to do. Frankly, I haven't gotten to
the point where I need a VPS yet. All I need is the right shared host to
dump some stuff on. I frequently use Wordpress as an informal benchmark.
Most shared hosting plans can usually support a good size blog with tons of
plugins for bells and whistles.

Also remember, CakePHP has some great caching capabilities.

Again, depends on what you're doing and how much traffic you anticipate.
It's your doing a simple site, then you *shouldn't* need more than a good
shared host. (I've had bad experiences with Dreamhost, other people have had
great experiences. I'm currently evaluating HostMonster. They seem good).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Reset Password Tutorial (if anyone needs it!)

2008-03-27 Thread Baz
Um???

You may have your links mixed up, there's nothing there.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Installation into subdirectory - Missing Controller errors

2008-03-27 Thread Matt

Hi Group,

I'm new to Cake and struggling to get my first app installed. I've
been following the blog tutorial at [1], but with one subtle
difference in my setup: I've installed Cake into a subdirectory.

I dumped everything from the zip into /webroot/cake, fired my browser
and navigated to http://localhost/cake. The css was missing, and so I
modified my .htaccess to look like this:

IfModule mod_rewrite.c
   RewriteEngine on
   RewriteBase /cake/
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]
/IfModule

Cake told me it could connect to the database, and I pressed on with
the tutorial. Unfortunately, when I get to Now you should be able to
point your browser to http://www.example.com/posts/index; (modified
accordingly to http://localhost/cake/posts/index), I get:

Missing controller.
You are seeing this error because controller PostsController could not
be found.

But PostsController is definitely there, and correct ;-)

I have no idea where to go from here. My guess is that the app
directory is not where Cake is expecting it to be, but I can't find
any clues as to where it's actually looking.

What am I doing wrong?

Many thanks,
Matt.


[1] http://manual.cakephp.org/appendix/blog_tutorial

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: RSS feeds in cake

2008-03-27 Thread Novice Programmer
Hello Anupom,

i tried this tutorial only.. method 2 works for me.. but i can't get method
1 to work.. though finally i decided that method 2 is the way i want to go
so my problem resolved itself.. :)

thanks.

On Thu, Mar 27, 2008 at 10:54 PM, Anupom [EMAIL PROTECTED] wrote:

 You can try out this tutorial
 http://anupom.wordpress.com/2008/03/12/rss-in-cakephp-12/



 On Thu, Mar 27, 2008 at 8:13 PM, Samuel DeVore [EMAIL PROTECTED] wrote:

 
  is your rss view in a folder like /views/entities/rss/view.ctp
  and did you make a rss layout like
  /views/layouts/rss/default.ctp
 
  Sam D
 
  On Wed, Mar 26, 2008 at 11:43 PM, Novice Programmer
  [EMAIL PROTECTED] wrote:
   Hello Tarique,
  
   its the error that cake throws when it is not able to find layout and
  tries
   to use default layout.
  
   Thanks.
  
  
  
   On 3/27/08, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
   
On Thu, Mar 27, 2008 at 9:26 AM, Novice Programmer
[EMAIL PROTECTED] wrote:

 but i get cake parser error.

   
What is the parse error?
   
Tarique
   
--
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=
   
   
  
  
  
   --
   Thanks  Regards,
   Novice (http://ishuonweb.wordpress.com/).
  

  
 
 
 
  --
  --
  (the old fart) the advice is free, the lack of crankiness will cost you
 
  - its a fine line between a real question and an idiot
 
  http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
  http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
  http://blog.samdevore.com/cakephp-pages/i-cant-bake/
 
 
 


 --
 Anupom Syam
 TrippertLabs, Dhaka
 http://www.anupom.wordpress.com/
 



-- 
Thanks  Regards,
Novice (http://ishuonweb.wordpress.com/).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread Zoltan

Any particular problems with DreamHost I should watch out for? So far
(last 4 months) support seems to be good.

Zoltan

On Mar 26, 2:39 pm, Haris [EMAIL PROTECTED] wrote:
 In your own case, I would recommend you to stay away from dreamhost
 aka nightmarehost.

 On Mar 26, 11:16 pm, Zoltan [EMAIL PROTECTED] wrote:

  Thanks for all the recommendations, looks like the company I'm doing
  this for decided DreamHost was fine for now.

  Zoltanwww.nachogrid.ca

  On Mar 26, 1:59 pm, Rob  Russell [EMAIL PROTECTED] wrote:

   Anybody hosted Cake on 1and1? I've really liked them so far but I
   haven't pushed any Cake apps on to that server yet. I had a VPS
   (somewhere else) and ran in to trouble locking it down so I've been
   relegated to managed virtual hosting for now (though 1and1 has met my
   needs completely so far).

   On Mar 26, 1:06 pm, [EMAIL PROTECTED] wrote:

I agree with Chris on the VPS. I use KnownHost and LiquidWeb and both
have been terrific.

brian fidler


   http://www.brianfidler.com

Follow me on Twitter:http://www.twitter.com/brianfidler

Quoting Chris Hartjes [EMAIL PROTECTED]:

 On Wed, Mar 26, 2008 at 12:20 PM, jelmer [EMAIL PROTECTED] wrote:

  I can't recommend bluehost, you'll run into performance problems 
 quite
  quickly I think, unless you have a very simple app. I used to have a
  (vbulletin) forum there and I was suspended a few times because of
  performance issues. I've heard good things about mediatemple but am
  using a futurehosting.biz vps right now which is all right.

 If you have any sort of sysadmin-fu, I recommend getting a VPS as
 well.  I'm on slicehost and have had ZERO problems since switching to
 them about 5 months ago.

 --
 Chris Hartjes
 Internet Loudmouth
 Motto for 2008: Moving from herding elephants to handling snakes...
 @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread [EMAIL PROTECTED]

11 dedicated server is pretty good.

On Mar 26, 11:48 pm, Stephen Orr [EMAIL PROTECTED] wrote:
 Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had
 to change the .htaccess files, the databases were slow as hell... and
 their helpdesk support is pathetic. We're migrating all our sites away
 from them now.

 Steve

 On Mar 26, 5:59 pm, Rob  Russell [EMAIL PROTECTED] wrote:

  Anybody hosted Cake on 1and1? I've really liked them so far but I
  haven't pushed any Cake apps on to that server yet. I had a VPS
  (somewhere else) and ran in to trouble locking it down so I've been
  relegated to managed virtual hosting for now (though 1and1 has met my
  needs completely so far).

  On Mar 26, 1:06 pm, [EMAIL PROTECTED] wrote:

   I agree with Chris on the VPS. I use KnownHost and LiquidWeb and both
   have been terrific.

   brian fidler
   

  http://www.brianfidler.com

   Follow me on Twitter:http://www.twitter.com/brianfidler

   Quoting Chris Hartjes [EMAIL PROTECTED]:

On Wed, Mar 26, 2008 at 12:20 PM, jelmer [EMAIL PROTECTED] wrote:

 I can't recommend bluehost, you'll run into performance problems quite
 quickly I think, unless you have a very simple app. I used to have a
 (vbulletin) forum there and I was suspended a few times because of
 performance issues. I've heard good things about mediatemple but am
 using a futurehosting.biz vps right now which is all right.

If you have any sort of sysadmin-fu, I recommend getting a VPS as
well.  I'm on slicehost and have had ZERO problems since switching to
them about 5 months ago.

--
Chris Hartjes
Internet Loudmouth
Motto for 2008: Moving from herding elephants to handling snakes...
@TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: verständnisfrage zur direkten formularspeicherung in der datenbank

2008-03-27 Thread Kalileo

You started reading the tutorials - good!

Now you might want to read also the manual(s), and there the chapters
about form validation and about authentication. That should present
you answers to your questions.

Generally it is you to design your application to make a scenario as
you describe it impossible. CakePHP just offers the tools to implement
your design with minimal effort.

And btw. you can increase the chances for an answer here dramatically
if you ask in English language ;)

glowhand wrote:
 Hallo!
 Also ich habe bisher in den Tutorials zu CakePHP gelesen, dass man
 ganz einfach mit ein paar Helper-Tags ein Formular generieren kann,
 nach dessen Absendung im Controller dank gleich lautender
 Datenbankfelder/Formulareingabefeldnamen sofort speichern kann.
 So k�nnte ich ein Anmeldeformular erstellen mit
 username,password,email und das dann mit $this-User-save($this-
 form) speichern (oder so �hnlich).
 Dabei k�nnte jedoch ein Nutzer ein eigenes Formularfeld vort�uschen
 (zum Beispiel userlevel), das dann auch gespeichert wird. Wenn er in
 diesem Feld admin eintr�gt, wird er sp�ter �ber
 Administratorenrechte verf�gen. Nur so als kleines Beispiel.
 Wie kann ich das verhindern? Nat�rlich, ich k�nnte ein neues Array
 erzeugen ($registerdata) und nur die gew�nschten Formularfelder dort
 eintragen... also $registerdata['username'] = $this-form['username'];
 $registerdata['password'] = $this-form['password'] usw... aber das
 w�re im Endeffekt wieder sehr umst�ndlich und die ganze Formular-
 Datenbank-Prozedur w�re nicht wirklich durch CakePHP vereinfacht
 worden.
 Ich hoffe, ich finde hier eine Antwort zu meiner Frage.
 Es kann sein, dass meine PHP-Beispiele nicht vollst�dnig richtig sind,
 aber es geht mir nur ums Prinzip, eigentlich nichtmal direkt in
 Verbindung mit CakePHP.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: acl.php : Call to undefined function uses()

2008-03-27 Thread jamest_amr

Works perfectly, thanks Stonez.  Looks like the IMB tutorial is wrong.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: acl.php : Call to undefined function uses()

2008-03-27 Thread John David Anderson


On Mar 27, 2008, at 2:52 PM, jamest_amr wrote:


 Works perfectly, thanks Stonez.  Looks like the IMB tutorial is wrong.

That accursed International Maritime Bureau is always posting outdated  
CakePHP tutes. :(

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



translate behavoiur + not fetching translations on recursive fields

2008-03-27 Thread cakeFreak

I just got into this post explaining the issue I encountered with the
Translate Behavior:

=
http://groups.google.com/group/cake-php/browse_thread/thread/2e1567a159e16b55/34485c24eb5a44f7?lnk=gstq=associations+%2B+translate+behavior#34485c24eb5a44f7

Anyone got this problem fixed *AUTOMAGICALLY*?

Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



any way around habtm hacks ?

2008-03-27 Thread keen

Are there any ways of implementing filtering rows with a clause from
the the other model in habtm relation without a hack like described
here 
http://bakery.cakephp.org/articles/view/habtm-hacks-to-menage-columns-in-both-models
?
Recursion also adds a lot of queries, which cant be healthy for a big
app. What is the best practice ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: any way around habtm hacks ?

2008-03-27 Thread Sliv

There's a bunch of links related to HABTM on the frequent
discussions page
http://groups.google.com/group/cake-php/web/frequent-discussions

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: looking for a hosting company

2008-03-27 Thread jason m

I've had success with media temple dedicated virtual servers. They are
about $50/month (a little less if you pay a year in advance) and I
setup cake many times with no problems so far. Speed is pretty good
and also the support was always quick and helpful. It was also easy to
manage clients and setup auto backups with their plesk software.

On Mar 26, 9:53 pm, Zoltan [EMAIL PROTECTED] wrote:
 Just wondering if anyone has a hosting company they'd recommend.
 I've personally hosted a few sites on DreamHost, speed is ok, but
 getting Cake sites up and running is problem-free. On the other hand,
 I've used Rackspace, which is faster, but keep on running into
 problems.

 If anybody has a hosting company they'd recommend, I'd appreciate it.

 Thanks,
 Zoltanwww.yyztech.ca
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



access rights

2008-03-27 Thread Raistlin Majere

What access rights do I give to each CakePHP file?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Run query in background while showing Please wait

2008-03-27 Thread jonknee

 I may have not explained the setup properly. I don't actually have a
 full_name field in either table (import_contacts and contacts are
 the actual MySQL table names). Each of these tables have fn and ln
 fields, however. So the problem is that I need to somehow find all
 records in the contacts table which have the same values in the fn
 and ln fields as the import_contacts table.

That should still be able to be handled pretty easily with SQL. You
got me interested so I created a test DB formatted like you said
(first_name, last_name) and this query works fine. Only spits out the
dupes (when first and last names are the same, if one of the two is
different it doesn't show up):

SELECT * FROM contactImport WHERE first_name IN (SELECT first_name
FROM contact) AND last_name in (SELECT last_name FROM contact)

b logica's way would work too, so you could just check whatever is
faster. I don't have 30,000 records to test that out on :P.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Run query in background while showing Please wait

2008-03-27 Thread Dardo Sordi Bogado

  SELECT * FROM contactImport WHERE first_name IN (SELECT first_name
  FROM contact) AND last_name in (SELECT last_name FROM contact)

That is a really bad query (for 30k records) and even don't solve the issue.

  b logica's way would work too, so you could just check whatever is
  faster. I don't have 30,000 records to test that out on :P.


blogica's one seems to be right.




  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: access rights

2008-03-27 Thread Dardo Sordi Bogado

  What access rights do I give to each CakePHP file?

It depends greatly on what are you intend to do, but:

app/tmp and it's contents should be writtable by the user running PHP.
and app/webroot/ and it's contents should be readable by the user
running your webserver.


  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Installation into subdirectory - Missing Controller errors

2008-03-27 Thread Dardo Sordi Bogado

It should be printing in that error page the route to where it is
expecting the file and the class name, double check both.

If you are starting with cake, I recommend you start with cake 1.2 (
http://book.cakephp.org ) it is far better, and you will find more
documentation, code, and people using it.

On Thu, Mar 27, 2008 at 4:16 PM, Matt [EMAIL PROTECTED] wrote:

  Hi Group,

  I'm new to Cake and struggling to get my first app installed. I've
  been following the blog tutorial at [1], but with one subtle
  difference in my setup: I've installed Cake into a subdirectory.

  I dumped everything from the zip into /webroot/cake, fired my browser
  and navigated to http://localhost/cake. The css was missing, and so I
  modified my .htaccess to look like this:

  IfModule mod_rewrite.c
RewriteEngine on
RewriteBase /cake/
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
  /IfModule

  Cake told me it could connect to the database, and I pressed on with
  the tutorial. Unfortunately, when I get to Now you should be able to
  point your browser to http://www.example.com/posts/index; (modified
  accordingly to http://localhost/cake/posts/index), I get:

  Missing controller.
  You are seeing this error because controller PostsController could not
  be found.

  But PostsController is definitely there, and correct ;-)

  I have no idea where to go from here. My guess is that the app
  directory is not where Cake is expecting it to be, but I can't find
  any clues as to where it's actually looking.

  What am I doing wrong?

  Many thanks,
  Matt.


  [1] http://manual.cakephp.org/appendix/blog_tutorial

  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Layout's Look for Elements in wrong place!

2008-03-27 Thread Jérôme



On 1 fév, 05:08, Neil [EMAIL PROTECTED] wrote:
 I keep getting this error:
 Not Found: C:\server\htdocs\cake\app\views\views\elements\cats.ctp

 why is it adding the extra views ?

OK. I was wrong. I was getting the same error because I was using
echo $this-element('footer');, but now It works by using echo
$this-renderElement('footer');.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Adding meta description tags on a view page

2008-03-27 Thread Rusty

Hi,

I'm not sure if I am doing something wrong, but I am trying to add a
meta tag on the view page using the following command:

echo $html-meta('description', 'meta description goes in here',
array('type'='description'), false);

Doing this, nothing shows up on the page. If I set the inline to true,
it shows right at the top of the page, but after all the header
information from the layout page.

I would like to have it so that setting it to false puts it up in the
head section (as per the API).

Does anyone have any ideas, or is it me doing something wrong?

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Layout's Look for Elements in wrong place!

2008-03-27 Thread Jérôme

On 1 fév, 09:42, AD7six [EMAIL PROTECTED] wrote:
 On Feb 1, 5:08 am, Neil [EMAIL PROTECTED] wrote:

  I keep getting this error:
  Not Found: C:\server\htdocs\cake\app\views\views\elements\cats.ctp

  why is it adding the extra views ?

 I think that's an error with the error message I doubt it is looking
 in thewrongplace.
 hth,
 AD

I keep getting the same error myself with 1.2 Beta. And I'm sure it's
looking at the wrong place, I've double-checked it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Run query in background while showing Please wait

2008-03-27 Thread kdecapite

Thanks to everyone who has contributed so far, it's much appreciated!

Now, here's where we stand...

jonknee's query took about 25-27 seconds and returned 154 records.

b logica's query took about 6 seconds and returned 24 records

My original query takes 18 seconds and returns ALL records and is
exactly this:

SELECT CONCAT(`Contact`.`ln`, `Contact`.`fn`) AS `full_name`,
`Contact`.`id`, `Contact`.`created`, `Contact`.`modified`,
`Contact`.`fn`, `Contact`.`ln`, `Contact`.`co`, `Contact`.`email1`,
`Contact`.`phone_home`, `Address`.`line1`, `Address`.`line2`,
`Address`.`city`, `Address`.`st`, `Address`.`zip` FROM `contacts` AS
`Contact` LEFT JOIN `addresses` AS `Address` ON `Contact`.`id` =
`Address`.`contact_id` WHERE `Contact`.`ln`  '' AND `Contact`.`fn`
 '' AND `Contact`.`ln` IS NOT NULL AND `Contact`.`fn` IS NOT NULL
ORDER BY `Contact`.`ln` ASC, `Contact`.`fn` ASC

Then I store the results into an array and run this query:

SELECT * FROM `import_contacts` AS `ImportContact` ORDER BY `ln` ASC,
`fn` ASC

I store those results into an array, too, then I loop through the
ImportContact array looking for a matching key (PHP's array_key_exists
function). I can do this because I format the two result set arrays
using a concatenated string as the key of the array. For instance, a
record with a first name of Mark and last name of Smith gets
stored as:

array(MarkSmith = array(field1 = value1, field2 =
value2));

This is working great, it's just timing out my PHP script because it
can take 3+ minutes to execute the whole thing across the 30k records
I have :-/


On Mar 27, 5:44 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
   SELECT * FROM contactImport WHERE first_name IN (SELECT first_name
   FROM contact) AND last_name in (SELECT last_name FROM contact)

 That is a really bad query (for 30k records) and even don't solve the issue.

   b logica's way would work too, so you could just check whatever is
   faster. I don't have 30,000 records to test that out on :P.

 blogica's one seems to be right.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



View this page CakePHP In The Blogosphere

2008-03-27 Thread Sliv

-Added Megite Discover: cakephp link

Click on http://groups.google.com/group/cake-php/web/cakephp-in-the-blogosphere
- or copy  paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: any way around habtm hacks ?

2008-03-27 Thread Sliv

Just a side note, GG's pages and files feature has been pretty messed
up for a while and they've been apparently working on trying to fix
the many issues - one big one to watch out for is that you don't
always get the most recent version of the page on load - check the
drop down list of versions to ensure you're viewing the latest
revision.

On Mar 27, 7:36 pm, Sliv [EMAIL PROTECTED] wrote:
 There's a bunch of links related to HABTM on the frequent
 discussions 
 pagehttp://groups.google.com/group/cake-php/web/frequent-discussions
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Run query in background while showing Please wait

2008-03-27 Thread jonknee

 Now, here's where we stand...

 jonknee's query took about 25-27 seconds and returned 154 records.

 b logica's query took about 6 seconds and returned 24 records

Sounds about right, except for the difference in number of dupes. How
many are there in total?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---