Recording Emails Sent

2015-07-27 Thread #2Will
I'm trying to work out a good way to record all the emails the system has 
sent. I want to record them to DB, with columns for To, Subject and 
Message. 

I don't think that CakeEmail triggers any events or callbacks I can hook 
into?
If I write a custom Log, I think I just get back the Whole message as text. 
 

It seems like the best way is to  write my own myEmail class that extends 
CakeEmail.

how can I get hold of the HTML message and Text message to be sent from 
within say the send method?

Will

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Security Component is Ruining my Life

2014-09-09 Thread #2Will
I think my hacks to avoid black holes is a mess.  I'm sure the component is 
ace. 

 It does however give off a lot of false positives and looking round the 
web, not just for me.  With that in mind, it would be awesome if it was 
more expressive about what triggered it.  

Also, it's awkward having it and then not using it.  Once the site gets 
hacked, ill have to stand at the front and tell all the others why i didn't 
use the security component. 

I do a lot of other stuff to white list fields etc to mitigate this (and 
the site gets penetration tested and hasn't been completely owned yet) so 
there is some effort going into doing it properly.  

W



On Tuesday, 9 September 2014 18:23:39 UTC+10, José Lorenzo wrote:
>
> Don't use it if you think it is a mess and not real security.
>
> You can implement secure forms yourself by using field whitelists and a 
> csrf token. I rarely use this component and I manage with those pretty fine
>
> On Tuesday, September 9, 2014 3:47:05 AM UTC+2, #2Will wrote:
>>
>> I've got an app i have been maintaining for a while now.  The security 
>> component causes more headaches than anything else.  In fact, because 
>> cakephp is so nice to work with, i think Security Component (SC) causes all 
>> the headaches...
>>
>> I've read through the docs a fair bit, i have bits of code scattered 
>> around turning off the SC all over the place, which makes me feel sick from 
>> 2 points of view:  
>>
>> 1.  What a mess
>> 2.  No SC == not great security. 
>>
>>
>> One issue is it doesn't seem to give back enough detail on EXACTLY what 
>> went wrong.  
>>
>> This morning a form that has no JS has decided to blackhole even though 
>> i'm applying the following fugly hack to ask it to leave me alone
>>
>>
>> $this->Security->allowedControllers = array("people");
>> if ( in_array($this->action, array('edit' ,  'simport'))){
>>   $this->Security->validatePost = false;
>>  }
>>
>>
>> I email myself every time these occur.  With "details" of the error. 
>>  Which more or less amount to $type  = "auth" - which according to the docs 
>> means:
>>
>> "Indicates a form validation error, or a controller/action mismatch 
>> error."
>>
>> well, i  / JS hasn't messed with the form (that's what form validation is 
>> about right?) and that is being disabled anyway,  and it's showing the form 
>> in the action simport and posting to that action, all in the same 
>> controller.  
>>
>> adding this deeply depressing line of code makes my basic form work:
>>  $this->Components->unload('Security');
>>
>> How can I get much better details of the error? How can I work with SC in 
>> a better way so it is generally on, not disabled around the site for 
>> assorted poorly understood reasons..?
>>
>> W
>>
>>

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Why CakePHP ?

2014-09-09 Thread #2Will
really? for everything? how is it? do you ever find it's missing anything? 
ecommerce, multi-language, plugins ?

nice looking new site for it, as my mum would say tho, needs more pictures. 
 

On Tuesday, 9 September 2014 17:35:12 UTC+10, Marlin Cremers wrote:
>
> That's the reason why my company uses Croogo. It gives us the ability to 
> have the ease of use of a CMS but with the raw power of CakePHP.
>
> On Tuesday, 9 September 2014 06:08:22 UTC+2, Dakota wrote:
>>
>> Or use Croogo (croogo.com) and get the best of both worlds (cms and 
>> cakephp)
>
>

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Why CakePHP ?

2014-09-08 Thread #2Will
You need a cms.  have a look at silverstripe, statamic or wordpress. 
 depending on your needs, one of those will be lovely.  

Don't use java.  Don't roll your own cms. 

have a great day

Will

On Tuesday, 2 September 2014 15:47:59 UTC+10, prakhil samar wrote:
>
> Hi All,
>
> Hope you all are doing well
>
> I have a question, or i would say a confusion.
>
> I need to built a website approx 80 web pages. This will be a CMS site. 
>
> I have a confusion that should i built that in JAVA or CakePHP.
>
> Can someone please educate me exact differences between the both, i mean 
> advantages of CakePHP over JAVA or vice versa ?
>
> Thanks
>

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Security Component is Ruining my Life

2014-09-08 Thread #2Will
I've got an app i have been maintaining for a while now.  The security 
component causes more headaches than anything else.  In fact, because 
cakephp is so nice to work with, i think Security Component (SC) causes all 
the headaches...

I've read through the docs a fair bit, i have bits of code scattered around 
turning off the SC all over the place, which makes me feel sick from 2 
points of view:  

1.  What a mess
2.  No SC == not great security. 


One issue is it doesn't seem to give back enough detail on EXACTLY what 
went wrong.  

This morning a form that has no JS has decided to blackhole even though i'm 
applying the following fugly hack to ask it to leave me alone


$this->Security->allowedControllers = array("people");
if ( in_array($this->action, array('edit' ,  'simport'))){
  $this->Security->validatePost = false;
 }


I email myself every time these occur.  With "details" of the error.  Which 
more or less amount to $type  = "auth" - which according to the docs means:

"Indicates a form validation error, or a controller/action mismatch error."

well, i  / JS hasn't messed with the form (that's what form validation is 
about right?) and that is being disabled anyway,  and it's showing the form 
in the action simport and posting to that action, all in the same 
controller.  

adding this deeply depressing line of code makes my basic form work:
 $this->Components->unload('Security');

How can I get much better details of the error? How can I work with SC in a 
better way so it is generally on, not disabled around the site for assorted 
poorly understood reasons..?

W

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: MustacheCake - A Mustache implementation for CakePHP.

2013-07-21 Thread #2Will
This is cool.  Nice one!

Are you using these for all your views? Are there any limitations you have 
come across using for templates? for example  Can you call elements in .ctp 
files from the moustache files & vice-versa?

Will



On Saturday, 20 July 2013 23:31:58 UTC+10, Dismounted wrote:
>
> Hi all,
>
> I've just committed a "final"-ish version of my plugin that integrates 
> Mustache (http://mustache.github.io/) as a custom View class in Cake.
>
> Why did I create "yet another" one of these? From what I've been able to 
> find, other Mustache plugins either: a) implement Mustache as a view 
> helper, not as a complete view rendering system replacement; or b) are 
> created for older versions of Cake.
>
> Please take a look and let me know of any suggestions/improvements/issues. 
> To get started, there are a couple of example files in 
> "MustacheCake/View/Layouts" and "MustacheCake/View/Pages", which are the 
> default shipped Cake files transposed into Mustache syntax.
>
> GitHub repo: https://github.com/Dismounted/MustacheCake 
>
> Cheers!
>

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Pattern Matching for Security->unlockedFields

2013-03-04 Thread #2Will
I'm dynamicly adding fields for hasMany relation in my form, with JS. 
 Thats obviously messing with the Security components form tampering 
detection - and blackholing the request

U can get it to not blackhole by doing this in the beforeFilter:

$this->Security->unlockedFields = array(  'Cat0name');

I guess i could add Cat1name, Cat2name, cat3name etc etc to the array.  But 
it makes me feel sad.  Is there a better way? Can I get it to pattern match 
somehow?  Iv'e got in my head ideas like "regex" - is that at all possible?

I must admit, i read the code for the _validatePost function that uses the 
unlockedFields setting, and I didn't really fully understand it. 

*Thanks for any pointers*
*
*
*Will*

 

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Fat CakePHP

2012-08-07 Thread #2Will
Cake is about 9Mb  - its not very much.  You could dump some bits like the 
console or some other part you aren't using.  Not much gain to be made 
though, and then anybody building your sites with the cms is denied that 
component. 

I hear version 3 will be smaller in terms of file size because of benefits 
of php 5.4 -  but then you will need a host with 5.4, which is probably a 
trickier requirement than a host with more than say 50mb of space.  



On Wednesday, 8 August 2012 13:21:19 UTC+10, Thiago Belem wrote:
>
> Please, 
>
> Define "lite version", what do you think that should be stripped out?
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Cakephp 2.2 with php 5.4

2012-07-25 Thread #2Will
Thanks, 

Yes i have that stuff set -> rewrite is working when the version is set to 
5.2, not when 5.4.  I'm not changing anything but php version. 

i agree its odd. For the moment, i'm using mamp pro which allows me to use 
5.3, and the site is working.  


w

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cakephp 2.2 with php 5.4

2012-07-24 Thread #2Will
Iv'e had to reinstall MAMP and the new version has php5.2.17 or 5.4.  I'm 
working on an app that uses cake2.2  the site dosn't work at all.   All 
urls get a generic 404 error.  (not the cake one) 

I don't get any errors in cakes logs or php logs, just a "not found or 
unable to stat" in apache logs. 

Is this to be expected? Is cake2.2 not compatible with php5.4, or am i 
doing something silly?

If i switch mamp back to 5.2.17 my various dev sites work well, but this 
one throws php5.3 related errors. 

thanks for any pointers, 

will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake becomes super-slow when loading assets from Plugins

2012-06-03 Thread #2Will
Me too.  Debug kits jquery takes 5 seconds to load.  - blocking page load.

On Tuesday, 29 May 2012 17:58:25 UTC+10, Ernesto wrote:
>
> i forgot to say i'm usign Cake 2.2.0-RC1 on a Win7 server
>
> Il giorno martedì 29 maggio 2012 09:51:28 UTC+2, Ernesto ha scritto:
>>
>> Hi all!
>>
>> i noticed that Cake gets very, very slow (about 50x times slower) if i 
>> load assets from Plugins.
>>
>> Here's my layout code
>>
>> http://www.w3.org/1999/xhtml";>
>> 
>> > echo $this->Html->charset();
>> echo "". $title ."";
>> echo $this->Html->meta("icon");
>> echo $this->Html->css(array(
>> "generic",
>> $this->layout ."/form",
>> $this->layout ."/menu",
>> $this->layout ."/top",
>> "/". $this->request->plugin ."/css/". $this->layout //this css gives 
>> troubles 
>> ));
>> ?>
>> 
>> 
>> 
>> 
>> > echo $this->Menu->output();
>> echo "". $title ."";
>> echo $this->Azioni->output();
>> ?>
>> 
>> fetch("content"); ?>
>> 
>> 
>> 
>>
>> Am i doing something wrong?
>>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: A collection of Coda clips for CakePHP

2012-05-28 Thread #2Will
Hey dude.  Thanks for these.  Really helpful starting point.  I have added 
a few in as i go of some stuff i can never remember.  




On Saturday, 30 May 2009 11:35:08 UTC+10, DanielMedia wrote:
>
> Hi All, 
>
> Just wanted to drop in and let anyone know who might be interested 
> (And uses the Coda IDE) that I've put together a collection of clips 
> for CakePHP. You can check them out here: 
>
> http://code621.com/content/6/a-collection-of-coda-clips-for-cakephp 
>
> Hope someone finds the collection useful and sorry for the spam in the 
> group. But how else to let fellow bakers know? 
>
> Bake on, 
>
> Dan

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Twig Templates

2012-05-28 Thread #2Will
oh, the plugin is this one: https://github.com/predominant/TwigView


>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Twig Templates

2012-05-28 Thread #2Will
Hello

I have been trying out twig templates.  I was pretty sceptical at first but 
we are doing an app where it would be great if the templates where auto 
escaped and the syntax keeps everything much more tidy which is nice. 

Anyway, I have only had partial success.  Grahams plugin seems really 
excellent but as it stands you can't leave auto escaping on.  Also the 
elements are not getting view variables and there dosn't seem to be a way 
to pass the element variables explicitly. 

Does anybody have any advice on this? Is the plugin the best way to go?  Is 
using Twig a sensible thing to do?  It would be great to have but i don't 
want to introduce a ton of problems because cake and twig just arn't meant 
to play together .

I'm using cake 2.1.2 and twig 1.4.0

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: The Great Web Framework Shootout

2012-02-20 Thread #2Will
I guess part of the problem for cake with this stuff is public image.
Good framework.  Bit slow.

whatever.  It makes building stuff easy.  and i have never had a
server performance issue with it.  hopefully one day i will.

w



On Feb 21, 11:58 am, Seth  wrote:
> Hello everyone,
>
> I apologize for the fresh publicity that this received with an old version
> of CakePHP. The last version of these tests were run in September of 2011,
> and I just recently decided to move the code to GitHub but didn't expect
> that it would be picked up by Hacker News, Reddit, etc. Oops! Embarrassing
> :(
>
> I will be refreshing the tests across the board as soon as I find the time
> to do so, and am hoping to use CakePHP 2.1. If you guys want to check
> Jose's pull request and make sure all is configured as it should be then
> that will help me give Cake it's best fighting chance.
>
> Remember not to take any of this too personally though, there's nothing at
> all scientific about tests like these.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Organizing Controllers into subfolders in CakePHP 2

2011-12-22 Thread #2Will
You Can still set alternative locations for everything in the
bootstrap though.

I do this for my CMS.  So everything for the cms is in one place, and
the stuff specific to the site is in another.

w

App::build(array(
  'Plugin' => array(ROOT . '/Tractor/Plugin/'),
  'Controller' => array(ROOT . '/Tractor/Controller/'),
  'Model' => array(ROOT . '/Tractor/Model/'),
  'Model/Behavior' => array(ROOT . '/Tractor/Model/Behaviour/'),
  'View' => array(ROOT . '/Tractor/View/'),
  'View/Helper' => array(ROOT . '/Tractor/View/Helper/'),
  ));


On Dec 22, 4:14 pm, Jeremy Burns | Class Outfit
 wrote:
> Having an admin interface that allows you to manage 'static' data would lead 
> to at least one controller for each model/table, probably.
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 21 Dec 2011, at 20:05:29, Brad Koch wrote:
>
>
>
>
>
>
>
> > So, in summary:
> > * Don't use subfolders anymore.
> > * If you want to start making partitions between files, use a plugin.
>
> > @Miles, just an example.  Lots of models would equal lots of
> > controllers.  I've had schemas that had over 60 tables before, so it
> > wouldn't be unreasonable at all to see up to 100.  I promise there's
> > no hideous case of abuse going on =)
>
> > On Dec 20, 9:55 pm, José Lorenzo  wrote:
> >> I would use plugins, it is a very natural way of organizing related code
> >> into logical and reusable chunks
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: TextHelper->Truncate Fails!

2011-12-16 Thread #2Will
I had a play around with this.  I thought i was getting better results
with using exact => true but I still got spans cut off.  I Removed all
the inline style and set exact to true and now I can't get it to cut
any tags off.

Seems like It can't cope with inline styles.  Are you doing an email
newsletter? If not, can you avoid inline styles?

w

On Dec 16, 7:54 pm, Carlos Romeu Esteve  wrote:
> I'm trying to truncate this text without lose the HTML tags:
>
> Text=
> El biógrafo de Steve Jobs, Walter
> Isaacson, explica porqué Jobs le pidió que le hiciera su biografía en
> este artículo de El País.
> Por qué Steve era distinto.
> http://www.elpais.com/
> articulo/primer/plano/Steve/era/distinto/elpepueconeg/
> 20111009elpneglse_4/Tes">http://www.elpais.com/articulo/primer/plano/
> Steve/era/distinto/elpepueconeg/20111009elpneglse_4/Tes
> Ya se ha publicado la biografía de
> Steve Jobs escrita por Walter Isaacson  "Steve Jobs by Walter
> Isaacson", aquí os dejamos la dirección de amazon donde
> podeís adquirirla.
> http://www.amazon.com/Steve-
> Jobs-Walter-Isaacson/dp/1451648537
>
> Then my code is this:
>                  $truncateText = $this->Text->truncate(
>                         $text,
>                         500,
>                         array(
>                                 'ending' => '... ',
>                                 'exact' => false,
>                                 'html' => true
>                         )
>                 );
>                 echo $truncateText;
>         ?>
>
> And I'm getting this one:
>
> El biógrafo de Steve Jobs, Walter
> Isaacson, explica porqué Jobs le pidió que le hiciera su biografía en
> este artículo de El País.
> Por qué Steve era distinto.
> http://www.elpais.com/
> articulo/primer/plano/Steve/era/distinto/elpepueconeg/
> 20111009elpneglse_4/Tes">http://www.elpais.com/articulo/primer/plano/
> Steve/era/distinto/elpepueconeg/20111009elpneglse_4/Tes
> Ya se ha publicado la biografía de
> Steve Jobs escrita por Walter Isaacson "Steve Jobs by Walter
> Isaacson", aquí os dejamos la dirección de amazon donde
> podeís adquirirla.
> )
>
> Because in the text between the tags there are no space ( style="font-size: medium;">http://www.amazon.com/Steve-Jobs-Walter-
> Isaacson/dp/1451648537)
>
> And the functions goes to cut the phrase in the atributte space of the
> tag.
>
> I dunno if is the correct place for ask this, and I dunno if someone
> will understand that mistake. Anyway I had construct my own function,
> is yet in beta phase because is not really flexible in options, but I
> won't post it since I get a response here, because I want to know if
> It's error or what is it.
>
> So what you think? :S

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


CakeDC Tag Plugin

2011-12-15 Thread #2Will
Hi

I'm using the Tags plugin.  Its working ok generally.  But when trying
to paginate a list filtered by tag, I'm not getting any related table
data at all.  No related tags (a relationship the plugin deals with)
and nothing from simple has one  relationships i have defined in the
post model either.

So i'm paginating like this

$this->paginate['Tagged'] = array(
'model' => 'Post',
'tagged',
'by' => $this->passedArgs['tag']);
$posts = $this->paginate('Tagged');


Has anyone been able to make this work? Can't think this is how its
supposed to work.

Thanks

will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


afterFind via a hasmany relationship with paginate

2011-11-22 Thread #2Will
Hello,

When doing this

$projects = $this->paginate();

and project hasmany round, should afterFind in Round be called?  I put
a bit of debug code in there and it isn't being run.

If it isn't supposed to because it is related data no worries, just
wondering if it supposed to do it and I have dones something wrong or
not?

Thanks

w

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: First try does not seem to find the CSS file

2011-11-20 Thread #2Will
this is normally because the .htaccess file is missing from the site
root.  because it is a hidden file or whatever...

w

On Nov 20, 7:43 pm, johng  wrote:
> I have followed a tutorial for my first try using the scaffold, and I
> can connect to db and produce the output. But the data is barely
> readable as it shows a dark green on heavy green background.
> Obviously it is not finding the needed css file, but I cannot
> determine where to fix this.
>
> Here is top of html source
>
> === 8< ==
> 
>         
> 
>                 CakePHP: the rapid development php framework:
>                 Scaffold :: Index :: Pffids     
>         
> 
> 
>
> 
> === >8 ==
>
> John

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: query

2011-11-01 Thread #2Will
Arn't you using contain?  I think if you set recursive = -1 for all
the models and created your finds with contains to the models you
actually needed, you wouldn't be hiding what tables are being queried,
and the performance wouldn't be bad.


w

On Nov 2, 6:24 am, Chris Cinelli 
wrote:
> So, the reason we do not use "find" very often are both legacy (for me) and
> practical.
> Before I joined the company they were using an outsourcing team that
> developed the most of the project. The login used to be VERY slow and the
> engineer hired before of me found that the "find"s on the user at login
> time, were performing a few hundred of queries. So he decide to go around
> using pure SQL.
>
> I went through some of the source code of CakePHP but I admit that I did
> not touch the ORM part at all. I am looking to our code right now. We have
> a lot of queries that have to (left and inner) join 10+ tables ( I can see
> a few with 11 and one with 12). There are a few problems about using
> CakePHP ORM:
>
> 1) You hide to the developer the tables that you are going to use. First of
> all in these case it is not so clear to know what the recursive number is
> going to be. You still need to have the database schema in front of you.
>
> 2) It does not seem that the ORM give you a lot of control on how a query
> is resolved.
>
> 3) CakePHP does not seem to do just one query but a few of them increasing
> the time to get a result to unacceptable levels. The user table for example
> is linked with at least 30 tables (probably more). Some of these
> relationships are one to many. Some of the queries need to go 3-4 levels
> deeper.  It is absolute madness to think that is Ok having cake making 200+
> queries when you can get the result with one query. I read some complains
> in some articles that were criticizing CakePHP's ORM comparing it to the
> Ruby's one (that is still not the fastest). Maybe things can be done
> better. If you have an application serving 200 users that are not too
> demanding maybe it is Ok running 200+ queries in a find in a controller and
> having the users sometimes wait for 10+ seconds to the system to respond.
> But when the number of users increase to 10K+ and 100K+ nobody would be
> able to use the system. Furthermore to deliver a good user experience, you
> usually need to give an answer to the user in  SQL query well designed you can do that.
>
> So in the end to have more control on how the data is accessed and keep and
> acceptable speed we decided to use find only when it needs only one (rarely
> two) tables and they have maximum one relationship with other table.
>
> I would really like to use the ORM, and I was a strong support of using the
> ORM for everything but in practice it does not seem to scale well.
> Am I missing something here ?
>
> Best,
>     Chris
>
>
>
>
>
>
>
> On Tue, Nov 1, 2011 at 2:43 AM, WebbedIT  wrote:
> > @Chris: Please no, not another person advocating the use of $this-
> > >query()!  Although this one is really special as anytime you join two
> > models you give up and revert to running your own SQL?!?
>
> > Just because you can't get your head around associating models
> > together and running Model::find (should get your head around
> > containable too) does not mean you should recommend to others early in
> > the learning curve to follow your cop-out path.
>
> > There are so many reasons to learn how to use Cake properly and it
> > certainly does not make life harder, in fact you could not be further
> > from the truth.  OK there are some circumstances where you need to
> > learn how to leverage Model::find a little, but these are very few and
> > far between and the benefits of having your data arrays passed back in
> > a manner that the Form helper and Model::save expects them in saves
> > you a ton of time.
>
> > Please go back to the book and take the time to learn it and don't
> > advise others to give up on it.
>
> > Paul.
>
> > On Oct 31, 9:07 am, Chris Cinelli
> >  wrote:
> > > We have complicated queries that span across 8 tables. We decided to use
> > > pure SQL code. We defined our data source and run SQL through it defining
> > > our custom methods in the model that execute the query. If the query is
> > > just on one table we use the ORM but pure SQL pretty much in the other
> > > cases. The purpouse of the ORM layer is to make things easier. If you
> > make
> > > it  more complicated, why are you doing it?
> > > On Oct 31, 2011 1:55 AM, "WebbedIT"  wrote:
>
> > > > Without seeing any of your code (model associations would have been
> > > > nice) I logically assume you are using Article HABTM Tag.
>
> > > > If so this does not create a model for the join table, but instead
> > > > puts in place some automagic to allow you to link many-to-many records
> > > > between the two models.  As such you can't run a find on the join
> > > > model, which is what you would have to do to be able to have
> > > > conditions spanning the three tables.
>
> > > 

Re: Retrieve extra field with generatetreelist

2011-10-23 Thread #2Will
You can speficy the field to use as the value, but i think only one
field havn't tried though...

$tasks = $this->Category->generateTreeList(null, null,
'{n}.Category.status', "-");

you could make a combinded field in the model.

What i have done in the past is order by lft to get the records in
order but with the whole row available.

$categories = $this->Category->find('all',
array('order'=>array('Category.lft asc')))  ;


hth

On Oct 24, 5:32 am, MetZ  wrote:
> Hi...
>
> Sooo.. no suggestions?
>
> $categories = $this->Category->generatetreelist(null, null, null, '|--
> ', $recursive = -1 );
>
> Looking to retrieve the extra field "Category.published" and display
> it in my html table.
>
> Should I use another find and merge them or something?
>
> Using this in view:
> 
>                                         
>                                                 
>                                                          style="text-align:center;">
>                                                          __('Name');?>
>                              __('Status');?>
>                                                          style="text-align:center;">
>                                                 
>                                         
>                                         
>                  foreach ($categories as $key=>$value):
>                 $class = null;
>                 if ($i++ % 2 == 0) {
>                 $class = 'odd';
>                 }
>                 $edit = $html->link($html->image("icons/16_icon_edit.png"),
> array('action' => 'edit', $key), array('title'=>'Endre','escape' =>
> false));
>         $delete = $html->link($html->image("icons/
> 16_icon_delete.png"), array('action' => 'delete', $key),
> array('valign'=>'center','class'=>'delete_trigger','rel'=>'#error','title'= 
> >'Slett','escape'
> => false));
>         ?>
>
>     
>     
>     
>     N/A
>       
>
>    
> 
> 
> 
>
> On 19 Okt, 18:48, MetZ  wrote:
>
>
>
>
>
>
>
> > Hi all.
> > I am wondering how I can retrieve an extra field from my rows using
> > generatetreelist?
> > $this->data = $this->Category->generatetreelist(null, null, null,
> > '   ');
>
> > The field I am looking for is "status", to display if the category is
> > active or not.
>
> > And,, btw.. I am using generatetreelist to list all nested categories
> > in a html table with children.
> > If u know of a better way to get all categories, and to put everything
> > in an array to output in a html table, please let me know ;)
>
> > Thanks for all and any help!
> > Regards!
> > -Tom

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Can't get Plugin model to work / be noticed at all

2011-10-23 Thread #2Will
hmm, its broken again this morning.  Cache fully switched off.
issue unresolved.

here are the paths its looking in (App::path('Model', 'Calendar')):
[0] => /Users/willbarker/Dropbox/tractor2/app/Plugin/Calendar/
Model/
[1] => /Users/willbarker/Dropbox/tractor2/app/Plugin/Calendar/
models/
[2] => /Users/willbarker/Dropbox/tractor2/app/Plugin/Calendar/Lib/
Model/

and my Event model is in Calendar/Model, feeling lonely and ignored.

doing this:

if ($className == 'Event'){
echo $className."";
print_r($paths);
echo "";
}

in App.php in the core, I get a different result:

Array
(
[0] => /Users/willbarker/Dropbox/tractor2/Tractor/Model/
[1] => /Users/willbarker/Dropbox/tractor2/app/Model/
[2] => /Users/willbarker/Dropbox/tractor2/app/models/
)

it dosn't seem to know im wanting the plugin model






On Oct 22, 3:41 pm, José Lorenzo  wrote:
> Well, it happens because in certain pages you visit some classes are loaded
> and in other pages it could load different ones. The cache will be written
> (appending new classes) every time, but in debug mode it gets cleaned after
> a short period, hence the erratic behavior of sometimes being able to load
> the class and some others not.
>
> I'm glad that resolved the issue :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Can't get Plugin model to work / be noticed at all

2011-10-21 Thread #2Will
Thanks Jose, that cleared it out and everything was working again last
night, but this morning it had forgotten again and wasn't using the
model.  I cleared out the cake cache and it used the model.  No doubt
it will forget again soon.

What could be causing this? Its like it sometimes writes something
wrong to the cache and then gets stuck on that.

On Oct 21, 5:28 pm, José Lorenzo  wrote:
> App::uses('CalendarAppModel', 'Calendar.Model') in each model in your plugin
> should do the trick :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Can't get Plugin model to work / be noticed at all

2011-10-20 Thread #2Will
this is looking super buggy.  if i click around my site, one moment it
can find the model the next it can't.

eg: "Fatal error: Class 'CalendarAppModel' not found in /Users/
willbarker/Dropbox/tractor2/Tractor/Plugin/Calendar/Model/Event.php on
line 2"

on a page that 5 mins ago worked fine.

is there a way to look up where its looking for a model class?

On Oct 20, 1:36 pm, "#2Will"  wrote:
> OK, its being ignored again.  Haven't changed the code in the plugin
> and have deleted the cache 18 times & even rebooted the machine.
>
> Does anybody have any clues whats going on here?
>
> w
>
> On Oct 18, 6:13 pm, "#2Will"  wrote:
>
>
>
>
>
>
>
> > Oh.  Now it works.  But no idea why, so not so much a self rescue as a
> > drift to the river bank.
>
> > I cleared some caches for about the millionth time and hay presto, the
> > hasOne data shows up too.  must have accidentally lined everything up
> > at last.
>
> > ah well, on with the code.
>
> > On Oct 18, 6:05 pm, "#2Will"  wrote:
>
> > > I upgraded to 2.0 today, which went quite smoothly, but i still have
> > > this problem
>
> > > the book says:  "You should get a “Missing Model” error"  but i don't
> > > at all.
>
> > > Looking in the included file list in debugkit - it is including the
> > > controller files for the plugin, but not the model.  I think its just
> > > using the automagic model creation on the fly. (at least i think cake
> > > does that)
>
> > > On Oct 17, 4:53 pm, "#2Will"  wrote:
>
> > > > Hello
>
> > > > I'm trying to make a calendar plugin for 1.3.  Its sort of working,
> > > > but the Event model definition is being ignored and so its
> > > > relationship to other models (in the main app) are not working.
>
> > > > I guess im putting it in the wrong place, but ive gone round and round
> > > > and round in circles and its not getting better.
>
> > > > /app/plugins/calendar/models/event.php
> > > >  > > > class Event extends CalendarAppModel {
> > > >         var $name = 'Event';
> > > > etc
>
> > > > /app/plugins/calendar/controllers/events_controller.php
>
> > > >  > > > class EventsController extends CalendarAppController {
> > > >         var $uses = array('Calendar.Event');
>
> > > > etc.
>
> > > > As far as i can see that should work.  Any suggestions why it isn't or
> > > > how to work out why it isn't working very much appreciated.  Stumped.
>
> > > > will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: using App::build in cakephp 2.0 to specify a path for plugins

2011-10-20 Thread #2Will
Yep, that fixed it,  thank you very much,  it was simple but i was
stuck.

will

On Oct 20, 5:11 pm, "#2Will"  wrote:
> Thank you jose! i am gonna literally run home and try that now!
>
> On Oct 20, 1:41 pm, José Lorenzo  wrote:
>
>
>
>
>
>
>
> > You are missing a trailing slash in you App::build() path

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: using App::build in cakephp 2.0 to specify a path for plugins

2011-10-19 Thread #2Will
Thank you jose! i am gonna literally run home and try that now!



On Oct 20, 1:41 pm, José Lorenzo  wrote:
> You are missing a trailing slash in you App::build() path

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Can't get Plugin model to work / be noticed at all

2011-10-19 Thread #2Will
OK, its being ignored again.  Haven't changed the code in the plugin
and have deleted the cache 18 times & even rebooted the machine.

Does anybody have any clues whats going on here?

w

On Oct 18, 6:13 pm, "#2Will"  wrote:
> Oh.  Now it works.  But no idea why, so not so much a self rescue as a
> drift to the river bank.
>
> I cleared some caches for about the millionth time and hay presto, the
> hasOne data shows up too.  must have accidentally lined everything up
> at last.
>
> ah well, on with the code.
>
> On Oct 18, 6:05 pm, "#2Will"  wrote:
>
>
>
>
>
>
>
> > I upgraded to 2.0 today, which went quite smoothly, but i still have
> > this problem
>
> > the book says:  "You should get a “Missing Model” error"  but i don't
> > at all.
>
> > Looking in the included file list in debugkit - it is including the
> > controller files for the plugin, but not the model.  I think its just
> > using the automagic model creation on the fly. (at least i think cake
> > does that)
>
> > On Oct 17, 4:53 pm, "#2Will"  wrote:
>
> > > Hello
>
> > > I'm trying to make a calendar plugin for 1.3.  Its sort of working,
> > > but the Event model definition is being ignored and so its
> > > relationship to other models (in the main app) are not working.
>
> > > I guess im putting it in the wrong place, but ive gone round and round
> > > and round in circles and its not getting better.
>
> > > /app/plugins/calendar/models/event.php
> > >  > > class Event extends CalendarAppModel {
> > >         var $name = 'Event';
> > > etc
>
> > > /app/plugins/calendar/controllers/events_controller.php
>
> > >  > > class EventsController extends CalendarAppController {
> > >         var $uses = array('Calendar.Event');
>
> > > etc.
>
> > > As far as i can see that should work.  Any suggestions why it isn't or
> > > how to work out why it isn't working very much appreciated.  Stumped.
>
> > > will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


using App::build in cakephp 2.0 to specify a path for plugins

2011-10-19 Thread #2Will
Hello

I have added a path to my plugins paths at the top of my bootstrap
file like this:
App::build(array(
  'Plugin' => array(ROOT . '/tractor/Plugin')
  ));

and put the glorious debugKit in that folder.  I get the error below.
Can anybody help me out here?   Seems like there isn't much to go
wrong, but i have managed to make a mistake somewhere...

Fatal error: Uncaught exception 'MissingPluginException' with message
'Plugin DebugKit could not be found.' in /Users/willbarker/Dropbox/
tractor2/lib/Cake/Core/CakePlugin.php:96
Stack trace:
#0 /Users/willbarker/Dropbox/tractor2/lib/Cake/Core/
CakePlugin.php(128): CakePlugin::load('DebugKit', Array)
#1 /Users/willbarker/Dropbox/tractor2/app/Config/bootstrap.php(73):
CakePlugin::loadAll()
#2 /Users/willbarker/Dropbox/tractor2/lib/Cake/Core/Configure.php(81):
include('/Users/willbark...')
#3 /Users/willbarker/Dropbox/tractor2/lib/Cake/bootstrap.php(137):
Configure::bootstrap(true)
#4 /Users/willbarker/Dropbox/tractor2/app/webroot/index.php(77):
include('/Users/willbark...')
#5 {main} thrown in /Users/willbarker/Dropbox/tractor2/lib/Cake/Core/
CakePlugin.php on line 96


doing this:   debug(App::path('Plugin'));   gives me this:

Array
(
[0] => /Users/willbarker/Dropbox/tractor2/tractor/Plugin
[1] => /Users/willbarker/Dropbox/tractor2/app/Plugin/
[2] => /Users/willbarker/Dropbox/tractor2/app/plugins/
[3] => /Users/willbarker/Dropbox/tractor2/plugins/
)

Ive double checked it is actually in that folder.  in fact i have
looked about 15 times.

i am loading my plugins like this:

 CakePlugin::loadAll();

Thanks,

will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0.0 release

2011-10-18 Thread #2Will
sorry, beyond me also.  I run mamp on my apple.  Its simple and works
and i guess it has pdo on it as it runs 2.0.  Try that.

will

On Oct 19, 1:42 pm, zer0_gravity  wrote:
> You are right I don't have pdo installed on my php server. I have done
> some googling i found out it requires possibly compiling and building
> php source . I have a new probably now tried compiling and building
> php source but i broke php and now it not working. luckly I made a
> backup.
>
> I need a working library file (similar to the dll that came with the
> windows version of pdo php extension) for my mac x os
>
> I need your help please?
>
> specs on my mac
> Mac OS X  ver 10.5.8
>
> On Oct 17, 11:46 pm, "#2Will"  wrote:
>
>
>
>
>
>
>
> > Any error messages?
>
> > Did you rename the file to database.php?
>
> > do you have pdo installed?
>
> > On Oct 18, 3:15 pm, zer0_gravity  wrote:
>
> > > Hi everyone
> > > I just install Cake 2.0.0 and I am having an issue with it. The issue
> > > is that cakePHP is not able to connect to the database (Mysql). I
> > > check the database config file to make sure that it is configured
> > > properly but the strangest thing is that when I installed an older
> > > version(1.3.13) there is no problem for cake connecting to the
> > > database (Mysql)? What is happening here?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0 Released

2011-10-18 Thread #2Will
Congratulations and thank you to the team.  Cake 2.0 is awesome.  The
upgrade process is straight forward and now my app is extra fast and
fabulous.

Thanks!

Will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0.0 release

2011-10-18 Thread #2Will
Yep - I think cake switched data access to PDO for 2.0.   This is a
php module   - not part of the Cake download.  If this is missing that
might be why cake connected before upgrade and not after.

do a phpinfo and find out if its installed.

w

On Oct 19, 5:51 am, Paul Vaughan  wrote:
> I had this problem and after much googling I discovered I needed to enable
> an extension with a name like pdo_mysql.so (or pdo_mysql.dll on windows) and
> restart apache before cake would successfully connect.
>
> Sorry for the lack of detail but i am not near my dev pc and can't shell
> into it.
>
> Hope this helps.
>
> Paul.
> On Oct 18, 2011 7:35 PM, "zer0_gravity"  wrote:
>
>
>
>
>
>
>
> > I did just that and on the default CakePHP page it reported an error
> > "Cake is NOT able to connect to the database"
>
> > On Oct 18, 9:25 am, pedro rojo  wrote:
> > > past all package of cakephp2.0 in your folder www and follow a simple
> > > installation  (dont use cake bake)
> > > after relaod your application test and see which  do you have the same
> > > problem ?
> > > this a simle test
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: 2.0 upgrade shell

2011-10-18 Thread #2Will
I did this yesterday.  Similar process - i wasn't sure how to run the
upgrade shell,

I ended up replacing the app folder with my 1.3 app, and then running
the shell.  I don't have it in my path so instead i cd'd to my app
folder and ran ../lib/Cake/Console/cake upgrade all

which renamed a lot of folders and stuff.

After that it was a lot of fixing $html  to $this->Html (yes, i know -
shouldn't have done it like that)  and putting turnery operators
instead of ife functions (especially in things like slug-able
behaviours etc) and replacing file with spf.

Iv'e got most of a fairly complex app running in a day.  Still got
some ajax pagination stuff to fix tomorrow.  but all in al its not too
difficult at all.

Thanks to the team that made the migration docs, the upgrade script
and the new 2.0 release - its all v awesome!

w

On Oct 19, 4:31 am, "Larry E. Masters"  wrote:
> Thanks for updating your progress here. I hope this will help others as they
> start migrating to 2.0. If you find anything that can help us improve the
> upgrade process at the core level let us 
> knowhttp://cakephp.lighthouseapp.com/dashboard
>
> --
> Larry E. Masters
>
> On Tue, Oct 18, 2011 at 12:27 PM, Jeremy Burns | Class Outfit <
>
>
>
>
>
>
>
> jeremybu...@classoutfit.com> wrote:
> > I got it to work.
>
> > Firstly, I didn't have my path set up correctly. To remedy it, I changed
> > the .profile file in my home directory as follows:
>
> > export
> > PATH=/usr/local/mysql:/user/bin:/Data/jeremyburns/Sites/CakePHP/cake:/Data/ 
> > jeremyburns/Sites/CakePHP_2_0/lib/Cake/Console:$PATH
>
> > -> this being the important piece:
> >  :/Data/jeremyburns/Sites/CakePHP_2_0/lib/Cake/Console
>
> > Then I created a new CakePHP 2.0 site and replaced the entire /app folder
> > with my 1.3.13 /app folder.
>
> > Then I navigated to the /app folder in Terminal and ran: cake upgrade all
>
> > When I visit the new site I'm getting a few errors that I am working
> > through and will post progress.
>
> > Jeremy Burns
> > Class Outfit
>
> >http://www.classoutfit.com
>
> > On 18 Oct 2011, at 17:21, rchavik wrote:
>
> > I'm guessing here, but I find that having directories in app/plugins/ may
> > cause the upgrade shell to give errors. Try removing the plugins in that
> > directory.
>
> > I have also managed to perform upgrade by renaming the app/config to
> > app/Config, and implicitly load the plugins by CakePlugin::loadAll()
> > Note: it will upgrade the plugins too. So that might not be what you want.
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php
>
> >  --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Can't get Plugin model to work / be noticed at all

2011-10-18 Thread #2Will
Oh.  Now it works.  But no idea why, so not so much a self rescue as a
drift to the river bank.

I cleared some caches for about the millionth time and hay presto, the
hasOne data shows up too.  must have accidentally lined everything up
at last.

ah well, on with the code.

On Oct 18, 6:05 pm, "#2Will"  wrote:
> I upgraded to 2.0 today, which went quite smoothly, but i still have
> this problem
>
> the book says:  "You should get a “Missing Model” error"  but i don't
> at all.
>
> Looking in the included file list in debugkit - it is including the
> controller files for the plugin, but not the model.  I think its just
> using the automagic model creation on the fly. (at least i think cake
> does that)
>
> On Oct 17, 4:53 pm, "#2Will"  wrote:
>
>
>
>
>
>
>
> > Hello
>
> > I'm trying to make a calendar plugin for 1.3.  Its sort of working,
> > but the Event model definition is being ignored and so its
> > relationship to other models (in the main app) are not working.
>
> > I guess im putting it in the wrong place, but ive gone round and round
> > and round in circles and its not getting better.
>
> > /app/plugins/calendar/models/event.php
> >  > class Event extends CalendarAppModel {
> >         var $name = 'Event';
> > etc
>
> > /app/plugins/calendar/controllers/events_controller.php
>
> >  > class EventsController extends CalendarAppController {
> >         var $uses = array('Calendar.Event');
>
> > etc.
>
> > As far as i can see that should work.  Any suggestions why it isn't or
> > how to work out why it isn't working very much appreciated.  Stumped.
>
> > will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Can't get Plugin model to work / be noticed at all

2011-10-18 Thread #2Will
I upgraded to 2.0 today, which went quite smoothly, but i still have
this problem

the book says:  "You should get a “Missing Model” error"  but i don't
at all.

Looking in the included file list in debugkit - it is including the
controller files for the plugin, but not the model.  I think its just
using the automagic model creation on the fly. (at least i think cake
does that)






On Oct 17, 4:53 pm, "#2Will"  wrote:
> Hello
>
> I'm trying to make a calendar plugin for 1.3.  Its sort of working,
> but the Event model definition is being ignored and so its
> relationship to other models (in the main app) are not working.
>
> I guess im putting it in the wrong place, but ive gone round and round
> and round in circles and its not getting better.
>
> /app/plugins/calendar/models/event.php
>  class Event extends CalendarAppModel {
>         var $name = 'Event';
> etc
>
> /app/plugins/calendar/controllers/events_controller.php
>
>  class EventsController extends CalendarAppController {
>         var $uses = array('Calendar.Event');
>
> etc.
>
> As far as i can see that should work.  Any suggestions why it isn't or
> how to work out why it isn't working very much appreciated.  Stumped.
>
> will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: rendering elements from helpers in Cakephp2

2011-10-17 Thread #2Will
oh, awesome.  thank you very much indeed! : )

On Oct 18, 5:23 pm, rchavik  wrote:
> A helper has the calling view object already stored in its $_View variable.
>
> Try:
>
> $this->_View->element('...');

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


rendering elements from helpers in Cakephp2

2011-10-17 Thread #2Will
Hello,

in 1.3, I could do this:

 $View =& ClassRegistry::getObject('view');

// boring code

 $str = str_replace($tagMatches[0][$i], $View->element($element,
$options), $str);

and i could ouptut elements from my filter helper.  For short codes
and stuff.

I think View has been removed from the ClassRegistry for 2.0.  How can
i do this now?

I tried this:  $View = new View($this->controller);

but all the helpers except for core ones get forgotten, and then the
fatal errors being.

thanks for any help

will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0.0 release

2011-10-17 Thread #2Will
Any error messages?

Did you rename the file to database.php?

do you have pdo installed?



On Oct 18, 3:15 pm, zer0_gravity  wrote:
> Hi everyone
> I just install Cake 2.0.0 and I am having an issue with it. The issue
> is that cakePHP is not able to connect to the database (Mysql). I
> check the database config file to make sure that it is configured
> properly but the strangest thing is that when I installed an older
> version(1.3.13) there is no problem for cake connecting to the
> database (Mysql)? What is happening here?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Can't get Plugin model to work / be noticed at all

2011-10-16 Thread #2Will
Hello

I'm trying to make a calendar plugin for 1.3.  Its sort of working,
but the Event model definition is being ignored and so its
relationship to other models (in the main app) are not working.

I guess im putting it in the wrong place, but ive gone round and round
and round in circles and its not getting better.

/app/plugins/calendar/models/event.php
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Errors trying to run a shell in cron

2011-09-29 Thread #2Will
Thanks, but it isn't that the settings are wrong on the folder: the
console is trying to use the wrong folder.



On Sep 29, 5:25 pm, Andras Kende  wrote:
> Try:
>
> chmod -R 777 /home/kindlem1/tmp
>
> On Sep 29, 2011, at 2:01 AM, #2Will wrote:
>
>
>
>
>
>
>
> > Hello.  I made a shell for my app - notify.  It emails people things.
> > Its all working from the command prompt on my mac , but when i try and
> > use it on the stage server through cron, it emails me an error. It
> > seems like cake is looking for things in the wrong place:
>
> > "/home/kindlem1/tmp/cache/persistent/ is not writable"
>
> > which is because the app is in /home/kindlem1/public_html/eeip   - the
> > staging subdomain points to this dir.
>
> > What can i do?
>
> > --error message--
> > Warning: _cake_core_ cache was unable to write 'cake_dev_' to File
> > cache in /home/kindlem1/public_html/eeip/lib/Cake/Cache/Cache.php on
> > line 310
>
> > Warning: /home/kindlem1/tmp/cache/persistent/ is not writable in /home/
> > kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
> > 306
>
> > Warning: /home/kindlem1/tmp/cache/models/ is not writable in /home/
> > kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
> > 306
> > [31;4mWarning Error: [0m _cake_core_ cache was unable to write
> > 'cake_console_' to File cache in [/home/kindlem1/public_html/eeip/lib/
> > Cake/Cache/Cache.php, line 310]
>
> > [31;4mError: [0m Shell file notify could not be loaded.
> > #0 /home/kindlem1/public_html/eeip/lib/Cake/Console/
> > ShellDispatcher.php(166): ShellDispatcher->_getShell('notify')
> > #1 /home/kindlem1/public_html/eeip/lib/Cake/Console/
> > ShellDispatcher.php(69): ShellDispatcher->dispatch()
> > #2 /home/kindlem1/public_html/eeip/app/Console/cake.php(24):
> > ShellDispatcher::run(Array)
> > #3 {main}
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Errors trying to run a shell in cron

2011-09-29 Thread #2Will
Sorry, fogort some things:

Cakephp2.0 rc2

and my cron comand is:
home/kindlem1/public_html/eeip/app/Console/cake notify

On Sep 29, 5:01 pm, "#2Will"  wrote:
> Hello.  I made a shell for my app - notify.  It emails people things.
> Its all working from the command prompt on my mac , but when i try and
> use it on the stage server through cron, it emails me an error. It
> seems like cake is looking for things in the wrong place:
>
> "/home/kindlem1/tmp/cache/persistent/ is not writable"
>
> which is because the app is in /home/kindlem1/public_html/eeip   - the
> staging subdomain points to this dir.
>
> What can i do?
>
> --error message--
> Warning: _cake_core_ cache was unable to write 'cake_dev_' to File
> cache in /home/kindlem1/public_html/eeip/lib/Cake/Cache/Cache.php on
> line 310
>
> Warning: /home/kindlem1/tmp/cache/persistent/ is not writable in /home/
> kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
> 306
>
> Warning: /home/kindlem1/tmp/cache/models/ is not writable in /home/
> kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
> 306
>  [31;4mWarning Error: [0m _cake_core_ cache was unable to write
> 'cake_console_' to File cache in [/home/kindlem1/public_html/eeip/lib/
> Cake/Cache/Cache.php, line 310]
>
>  [31;4mError: [0m Shell file notify could not be loaded.
> #0 /home/kindlem1/public_html/eeip/lib/Cake/Console/
> ShellDispatcher.php(166): ShellDispatcher->_getShell('notify')
> #1 /home/kindlem1/public_html/eeip/lib/Cake/Console/
> ShellDispatcher.php(69): ShellDispatcher->dispatch()
> #2 /home/kindlem1/public_html/eeip/app/Console/cake.php(24):
> ShellDispatcher::run(Array)
> #3 {main}

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Errors trying to run a shell in cron

2011-09-29 Thread #2Will
Hello.  I made a shell for my app - notify.  It emails people things.
Its all working from the command prompt on my mac , but when i try and
use it on the stage server through cron, it emails me an error. It
seems like cake is looking for things in the wrong place:

"/home/kindlem1/tmp/cache/persistent/ is not writable"

which is because the app is in /home/kindlem1/public_html/eeip   - the
staging subdomain points to this dir.

What can i do?

--error message--
Warning: _cake_core_ cache was unable to write 'cake_dev_' to File
cache in /home/kindlem1/public_html/eeip/lib/Cake/Cache/Cache.php on
line 310

Warning: /home/kindlem1/tmp/cache/persistent/ is not writable in /home/
kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
306

Warning: /home/kindlem1/tmp/cache/models/ is not writable in /home/
kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
306
 [31;4mWarning Error: [0m _cake_core_ cache was unable to write
'cake_console_' to File cache in [/home/kindlem1/public_html/eeip/lib/
Cake/Cache/Cache.php, line 310]

 [31;4mError: [0m Shell file notify could not be loaded.
#0 /home/kindlem1/public_html/eeip/lib/Cake/Console/
ShellDispatcher.php(166): ShellDispatcher->_getShell('notify')
#1 /home/kindlem1/public_html/eeip/lib/Cake/Console/
ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /home/kindlem1/public_html/eeip/app/Console/cake.php(24):
ShellDispatcher::run(Array)
#3 {main}

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: 2.0 Pdo errors

2011-09-28 Thread #2Will
Yes there is.  turn debug to zero and look in the log files instead.
there is a nice sane error message about data integrity.i really
wish i did that 2 hours ago.


w




On Sep 28, 6:25 pm, "#2Will"  wrote:
> Im using cakephp 2.0 and getting some funny errors:
>
> "[PDOException] You cannot serialize or unserialize PDO instances"
> plus a stack trace.
>
> In this case its saving a habtm relationship from a multi select.
> Normally easy, but today it keeps breaking.  Why? no idea. Worked
> yesterday.
>
> Is there a way to get a better error message from cake?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


2.0 Pdo errors

2011-09-28 Thread #2Will
Im using cakephp 2.0 and getting some funny errors:

"[PDOException] You cannot serialize or unserialize PDO instances"
plus a stack trace.

In this case its saving a habtm relationship from a multi select.
Normally easy, but today it keeps breaking.  Why? no idea. Worked
yesterday.

Is there a way to get a better error message from cake?







-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Duplicate emails sent.

2011-09-23 Thread #2Will
OK, thanks.  I think this is a bug.  or rather, i can't think what
else it could be.  Ill file a ticket.

On Sep 23, 11:44 am, Andras Kende  wrote:
> Seems to happening with my config too:
>
>                 App::uses('CakeEmail', 'Network/Email');
>                 $body = print_r($click, true) . ' - ' . print_r($product, 
> true);
>                 $email = new CakeEmail();
>                 $email->from('and...@andraskende.com');
>                 $email->to('and...@kende.com');
>                 $email->subject(env('HTTP_HOST') . ' - click - ' . 
> date('Y-m-d H:i:s'));
>                 $email->send($body);
>
> Sep 22 21:39:06 localhost postfix/pickup[10492]: 30B163F707: uid=33 
> from=
> Sep 22 21:39:06 localhost postfix/cleanup[11886]: 30B163F707: 
> message-id=<4e7be33a-0be8-48f2-84b1-2c3242e42...@www.unionofsports.com>
> Sep 22 21:39:06 localhost postfix/qmgr[29587]: 30B163F707: 
> from=, size=2893, nrcpt=1 (queue active)
> Sep 22 21:39:06 localhost postfix/pickup[10492]: 36B5C3F708: uid=33 
> from=
> Sep 22 21:39:06 localhost postfix/cleanup[11892]: 36B5C3F708: 
> message-id=<4e7be33a-0be8-48f2-84b1-2c3242e42...@www.unionofsports.com>
> Sep 22 21:39:06 localhost postfix/qmgr[29587]: 36B5C3F708: 
> from=, size=2893, nrcpt=1 (queue active)
> Sep 22 21:39:06 localhost postfix/smtp[11893]: 30B163F707: 
> to=, relay=aspmx.l.google.com[74.125.115.26]:25, 
> delay=0.55, delays=0.01/0/0.06/0.48, dsn=2.0.0, status=sent (250 2.0.0 OK 
> 1316741946 n3si2277992vcu.198)
> Sep 22 21:39:06 localhost postfix/qmgr[29587]: 30B163F707: removed
> Sep 22 21:39:06 localhost postfix/smtp[11894]: 36B5C3F708: 
> to=, relay=aspmx.l.google.com[74.125.115.26]:25, 
> delay=0.61, delays=0/0/0.07/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 
> 1316741946 k11si2287874vcq.91)
> Sep 22 21:39:06 localhost postfix/qmgr[29587]: 36B5C3F708: removed
>
> Gmail removes the duplicates though..
>
> Andras Kende
>
> On Sep 22, 2011, at 8:35 PM, Vinícius Moraes de Araújo wrote:
>
>
>
>
>
>
>
> > It happens to me too,
>
> > Atenciosamente,
>
> > Vinícius Moraes
>
> > 2011/9/22 #2Will 
> > I have Upgraded to the new RC2 but this is still an issue.
>
> > This happens with either the default Mail config or using gmail as
> > smtp. So it dosn't seem to be something to do with the server.
>
> > if anybody can shed any light on this, that would be awesome.
>
> > will
>
> > On Sep 22, 3:25 pm, "#2Will"  wrote:
> > > Still stuck on this.
>
> > > Whats odd is it is sending duplicates to my work email, and another
> > > pop type email - but if i set the to my gmail, just the one email.
>
> > > Seems odd.  Must be a reason.
>
> > > w
>
> > > On Sep 14, 4:25 pm, "#2Will"  wrote:
>
> > > > Hello
>
> > > > My little app is sending duplicates of itsemails.
>
> > > > Here is an example function:
> > > > [code]
> > > > $this->log($media);
> > > > App::uses('CakeEmail', 'Network/Email');
> > > > $CakeEmail = new CakeEmail();
> > > > $CakeEmail->viewVars(array('media'=>$media, 'person'=>$person));
> > > > $CakeEmail->from(Configure::read('app.email'));
> > > > $CakeEmail->to ( $person['email'] );
> > > > $CakeEmail->subject('New File Notification from  ' .
> > > > Configure::read('app.name'));
> > > > $CakeEmail->template('media_add', 'default');
> > > > $CakeEmail->emailFormat('text');
> > > > $CakeEmail->send();
> > > > [/code]
> > > > The code only runs once - verified by checking the logs for the $media
> > > > dump - and that template isn't referenced anywhere else   - so it
> > > > isn't redierecting off and sending again.
>
> > > > What could it be?  I'm a bit stumped for ideas to debug it
>
> > > > Thanks,
>
> > > > Will
>
> > > > oh, cake2.0 rc1
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Duplicate emails sent.

2011-09-22 Thread #2Will
I have Upgraded to the new RC2 but this is still an issue.

This happens with either the default Mail config or using gmail as
smtp. So it dosn't seem to be something to do with the server.


if anybody can shed any light on this, that would be awesome.

will





On Sep 22, 3:25 pm, "#2Will"  wrote:
> Still stuck on this.
>
> Whats odd is it is sending duplicates to my work email, and another
> pop type email - but if i set the to my gmail, just the one email.
>
> Seems odd.  Must be a reason.
>
> w
>
> On Sep 14, 4:25 pm, "#2Will"  wrote:
>
>
>
>
>
>
>
> > Hello
>
> > My little app is sending duplicates of itsemails.
>
> > Here is an example function:
> > [code]
> > $this->log($media);
> > App::uses('CakeEmail', 'Network/Email');
> > $CakeEmail = new CakeEmail();
> > $CakeEmail->viewVars(array('media'=>$media, 'person'=>$person));
> > $CakeEmail->from(Configure::read('app.email'));
> > $CakeEmail->to ( $person['email'] );
> > $CakeEmail->subject('New File Notification from  ' .
> > Configure::read('app.name'));
> > $CakeEmail->template('media_add', 'default');
> > $CakeEmail->emailFormat('text');
> > $CakeEmail->send();
> > [/code]
> > The code only runs once - verified by checking the logs for the $media
> > dump - and that template isn't referenced anywhere else   - so it
> > isn't redierecting off and sending again.
>
> > What could it be?  I'm a bit stumped for ideas to debug it
>
> > Thanks,
>
> > Will
>
> > oh, cake2.0 rc1

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Duplicate emails sent.

2011-09-21 Thread #2Will
Still stuck on this.

Whats odd is it is sending duplicates to my work email, and another
pop type email - but if i set the to my gmail, just the one email.

Seems odd.  Must be a reason.

w

On Sep 14, 4:25 pm, "#2Will"  wrote:
> Hello
>
> My little app is sending duplicates of itsemails.
>
> Here is an example function:
> [code]
> $this->log($media);
> App::uses('CakeEmail', 'Network/Email');
> $CakeEmail = new CakeEmail();
> $CakeEmail->viewVars(array('media'=>$media, 'person'=>$person));
> $CakeEmail->from(Configure::read('app.email'));
> $CakeEmail->to ( $person['email'] );
> $CakeEmail->subject('New File Notification from  ' .
> Configure::read('app.name'));
> $CakeEmail->template('media_add', 'default');
> $CakeEmail->emailFormat('text');
> $CakeEmail->send();
> [/code]
> The code only runs once - verified by checking the logs for the $media
> dump - and that template isn't referenced anywhere else   - so it
> isn't redierecting off and sending again.
>
> What could it be?  I'm a bit stumped for ideas to debug it
>
> Thanks,
>
> Will
>
> oh, cake2.0 rc1

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
ok, so i wrapped the protected methods in the appModel.  Surely this
is a hack? now the behaviour isn't very self contained and the methods
that clever core devs protected are now exposed by me.

so anyway, its working.  i forked marianos code on github.  but i
doubt its the best way.

will


On Sep 19, 6:49 pm, "#2Will"  wrote:
> Thanks for replies,  appologies for the multiple posting.
>
> > Well, you can just use the public method `public Model::delete($id =
> > null, $cascade = true)`, which will call `protected
> > _Model::_deleteDependent($id, $cascade)
>
> The behaviour is skipping delete in favor of making the record as
> deleted = 1 so that records can be un-deleted or whatever.    so i
> don't think i can call delete.
>
> > Why declaring a function protected if you want to use it outside of
> > descendant classes.
>
> I'm not: the method is in the core.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
Thanks for replies,  appologies for the multiple posting.


> Well, you can just use the public method `public Model::delete($id =
> null, $cascade = true)`, which will call `protected
> _Model::_deleteDependent($id, $cascade)

The behaviour is skipping delete in favor of making the record as
deleted = 1 so that records can be un-deleted or whatever.so i
don't think i can call delete.


> Why declaring a function protected if you want to use it outside of
> descendant classes.

I'm not: the method is in the core.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
Hello

I am trying to use Mariano's soft delete plugin with cakephp 2.0 but
have come accross  little problem

"Call to protected method Model::_deleteDependent() from context
'SoftDeletableBehavior' "

so thats "$model->_deleteDependent($id, $cascade);" on line 102

This error is because as per the migration guides comments, there are
now visibility keywords for model methods.

so, how can i access these methods from the behaviour?

Thanks for any help.  it would be really usefull to get this working
as its a behaviour im sure lots of people use a lot.

Will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
Hello

I am trying to use Mariano's soft delete plugin with cakephp 2.0 but
have come accross  little problem

"Call to protected method Model::_deleteDependent() from context
'SoftDeletableBehavior' "

so thats "$model->_deleteDependent($id, $cascade);" on line 102

This error is because as per the migration guides comments, there are
now visibility keywords for model methods.

so, how can i access these methods from the behaviour?

Thanks for any help.  it would be really usefull to get this working
as its a behaviour im sure lots of people use a lot.

Will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread #2Will
Hello

I am trying to use Mariano's soft delete plugin with cakephp 2.0 but
have come accross  little problem

"Call to protected method Model::_deleteDependent() from context
'SoftDeletableBehavior' "

so thats "$model->_deleteDependent($id, $cascade);" on line 102

This error is because as per the migration guides comments, there are
now visibility keywords for model methods.

so, how can i access these methods from the behaviour?

Thanks for any help.  it would be really usefull to get this working
as its a behaviour im sure lots of people use a lot.

Will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-15 Thread #2Will
I'm not sure about statistics, i mean they can be misleading right?

for example - your google trends thing  - does it really say cakephp
is struggling? or does it say RoR has tanked from its 2006 peak down
to sub cake levels of interest?  And is django the bomb? or are half
its hits mostly about a character in an upcoming tarantino film?  I'm
not sure.  Zend is below cake on the graph. quite right and proper.

Either way, Django is awesome i'm sure  - but cake is brilliant, easy
(thats the point right? to make it easier?), powerful,  simple to
deploy and generally fab.

Also, a nice chap called simon emailed me yesterday out of the blue
about a job. i said no thanks i have one - but it goes to show you...

will



On Sep 16, 12:26 am, Janos Csikos  wrote:
> Hi Guys,
>
> I'm Cake fan since 2006 and excited about the coming 2.0, but I have
> to say this "CLASSIC trolling" means something.
>
> I mean thats true there is no CakePHP jobs posted.
> That's true there is not the latest cake sites are listed in the "just
> baked" box on cakephp.org.
> And also true the drupal (and ror, zend, ) much more popular than 
> cake:http://www.google.com/trends?q=cakephp%2C+django%2C+ruby+on+rails%2C+...
>
> Only we (cake community) can change on these:
> 1. The framework getting better so more developer will like it, but it
> still can not be part of the enterprise targets until:
>       - there is no developing platform behind that ... I hate saying
> that but I'm still developing in textmate rather than "cakeified"
> Eclipse or "CloudIDE" (Zend has)
>       - there is no centralised Certification System just like Zend
> has. (does the community need it?)
> 2. Why we don't send our last built site to the cake community as
> "just baked" (should we?). Actually I don't do that, so who could able
> to say that million $$ site is written in cake or not?
> 3. If that is the tendency, then why we don't publish a very easy
> configurable/usable off-self CMS/shop/anything? I'm sure you are also
> done some nice idea in cake, not just me. Worth to share?
>
> What do you think? This "seo optimized question strategy" is helps or
> just damage prestige of cake?
>
> Please let me know if you agree or disagree with me or you have any comment.
>
> Thanks,
> Janos
>
> ps: sorry about my english
>
>
>
>
>
>
>
> On Mon, Sep 12, 2011 at 8:28 AM, rchavik  wrote:
> > His style is writing is different compared to previous postings.  Perhaps
> > his account was compromised
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> >http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Editing data

2011-09-14 Thread #2Will
Are you doing a saveAll rather than save in your controller?

On Sep 14, 7:27 pm, Mohd Hasnol  wrote:
> inside edit.ctp
>
> Form->create('Useradmin', array('action'=>'edit'));?>
>                      echo $this->Form->input('A.first_name');
>                     echo $this->Form->input('A.last_name');
>                     echo $this->Form->input('A.contact_no');
>                     echo $this->Form->input('A.email');
>                     echo $this->Form->input('B.username');
>                     echo $this->Form->input('B.password');?>
>
> i only can edit username and password.
>
> Thanks.
>
> On Wed, Sep 14, 2011 at 9:50 AM, euromark wrote:
>
>
>
>
>
>
>
> > a less abstract code example would help
> > you code post your "real" code. maybe this way we can figure out whats
> > wrong with your code.
>
> > On 14 Sep., 05:35, nOLL  wrote:
> > > Hi,
>
> > > I have a form that use 2 models(A,B). For create and view function it
> > > was run perfectly, but there is a problem when editing the form. I use
> > > B controller for all the function(CRUD) and i only can edit the B
> > > table attributes but for A attributes the data remain the same.
>
> > > I follow thishttp://
> > book.cakephp.org/view/1650/hasMany-through-The-Join-Model
> > > for the form.
>
> > > Whats the problem actually?
>
> > > Thanks,
> > > nOLL
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Duplicate emails sent.

2011-09-13 Thread #2Will
Hello


My little app is sending duplicates of its emails.

Here is an example function:
[code]
$this->log($media);
App::uses('CakeEmail', 'Network/Email');
$CakeEmail = new CakeEmail();
$CakeEmail->viewVars(array('media'=>$media, 'person'=>$person));
$CakeEmail->from(Configure::read('app.email'));
$CakeEmail->to ( $person['email'] );
$CakeEmail->subject('New File Notification from  ' .
Configure::read('app.name'));
$CakeEmail->template('media_add', 'default');
$CakeEmail->emailFormat('text');
$CakeEmail->send();
[/code]
The code only runs once - verified by checking the logs for the $media
dump - and that template isn't referenced anywhere else   - so it
isn't redierecting off and sending again.

What could it be?  I'm a bit stumped for ideas to debug it

Thanks,

Will

oh, cake2.0 rc1

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Can I safely start a project on 2.0RC1?

2011-09-08 Thread #2Will
I'd definetly go for 2.0.

Ive developed an app on 2.0 beta & rc1.  very few problems really.



On Sep 9, 11:07 am, Greg Skerman  wrote:
> RC1 indicates very close to "release"
>
> If you're starting a new project from scratch, its entirely likely by the
> time you get to production, it will be in the wild as a stable release.
>
> I'd say go for it..
>
>
>
>
>
>
>
> On Fri, Sep 9, 2011 at 8:20 AM, Lucho Molina  wrote:
> > Hello, following the discussion started on
>
> >http://groups.google.com/group/cake-php/browse_thread/thread/95529bf7...
> > I would like to know what the current status is.
>
> > I'm starting a project that should be out in production in mid
> > november, so would you guys recommend using 2.0 now? I don't want to
> > do it in 1.3 only to realize later that the migration is a PITA, and
> > that I have to miss 2.0 functionalities.
>
> > I can live with a couple of bugs here and there, I can even get my
> > hands dirty and patch the core myself, but if there are loads of bugs,
> > then it might not be very smart to go live with a too-patchy core.
>
> > Thoughts?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 2 app deployed on a subdomain

2011-09-07 Thread #2Will
agreed.  In my experience, it is never a bug with cake, always
something i did wrong or a server set up thing.

hmm, its wobbling along now ok.  Ill report back what happens when it
deploys to the live server rather than this shared staging
environment.

thanks for helping me out with this.

will

On Sep 7, 9:44 pm, WebbedIT  wrote:
> >  why the change?
> > is it  a bug? Something wrong with the server setup?
>
> Doubt it's a bug or more people than you would be mentioning it.
>
> Someone more experienced with Cake2.0 / .htaccess / mod_rewrite would
> ahve to answer that one though, currently out of my little league.
>
> HTH, Paul

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 2.0 Email - Passing variables to templates

2011-09-06 Thread #2Will
oh yeah.  doh.  thanks!

its also in the docs i was attempting to read:
http://book2.cakephp.org/en/core-utility-libraries/email.html

will

On Sep 7, 2:20 pm, "Dr. Tarique Sani"  wrote:
> CakeEmail::viewVars()
>
> Seehttps://github.com/cakephp/docs/blob/master/en/core-utility-libraries...
> for more
>
> Tarique
>
> On Wed, Sep 7, 2011 at 4:40 AM, #2Will  wrote:
> > Hello,
>
> > When using the new email Utility library with cake 2.0, what is the
> > procedure for passing variables?
>
> --
> =
> PHP for E-Biz:http://sanisoft.com
> =

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


cakephp 2.0 Email - Passing variables to templates

2011-09-06 Thread #2Will
Hello,

When using the new email Utility library with cake 2.0, what is the
procedure for passing variables?

In the past, I just used set, and that passed a variable to the
view  / email template.  I could also use Configure::read

these aren't working any more.

Thanks

will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 2 app deployed on a subdomain

2011-09-06 Thread #2Will
hmm.  i fixed it. sort of.

My htaccess in webroot was:


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]


but looking at a 1.3 app on the same server (different subdomain) it
was


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


So i have used this and the app is working.   Obviously not ideal to
be sticking bits of 1.3 into my 2.0 app to get it working.  I don't
really understand the changes in the htaccess file  - why the change?
is it  a bug? Something wrong with the server setup?

thanks

will

On Sep 7, 8:09 am, "#2Will"  wrote:
> Sorry for confusion, yes thats right just an app, deployed in the
> simple cake way, whole thing up onto the one area (which happens to be
> a subdomain)
>
> its just /people/login for the login action
>
> On Sep 6, 5:44 pm, WebbedIT  wrote:
>
>
>
>
>
>
>
> > No I think you're reading it right, but if it's a different app it's a
> > different app - a sub-domain is still a different domain when used in
> > that context.
>
> > If you want to have one central core you can go for the advanced
> > installation but if I read your post fully I can see I have been
> > thrown by your topic mentioning sub-domains (note to self: stop skim
> > reading people posts).
>
> > OK, so this has nothing to do with sub-domains, this is simply a
> > configuration issue on a different domain.  Looks as thought
> > the .htaccess files are not doing their jobs correctly.
>
> > Do your other apps access the login at '/app/webroot/people/people/
> > login' or do they instead  access '/people/login'?
>
> > HTH, Paul
> > @phpMagpie
>
> > On Sep 6, 12:29 am, "#2Will"  wrote:
>
> > > ok, thank you for replying.
>
> > > I think what they are talking about in that is when you want to be
> > > able to use different subdomains for different links etc?
>
> > > That shouldn't be necessary just to deploy the whole app to a
> > > subdomain should it?  or am i reading that wrong?
>
> > > Thanks
>
> > > will
>
> > > On Sep 5, 9:59 pm, WebbedIT  wrote:
>
> > > > Cake 2.0 beings some canges to the router to help with subdomains that
> > > > were touched on at 
> > > > CakeFest:http://book2.cakephp.org/en/appendices/new-features-in-cakephp-2-0.ht...
>
> > > > HTT, Paul
> > > > @phpMagpie
>
> > > > On Sep 5, 1:38 am, "#2Will"  wrote:
>
> > > > > comparing debug($_SERVER) between local and stage sites
>
> > > > > local:      [PHP_SELF] => /app/webroot/index.php/people/login
> > > > > stage:    [PHP_SELF] => /app/webroot/people/login
>
> > > > > This seems like a likely to be relevent, but what could be causing
> > > > > it?  I think i have all my htaccess files present.
>
> > > > > Looking at other apps ive deployed to subdomain-stage , the PHP_SELF
> > > > > is /app/webroot/index.php  without the /controller/action   - but
> > > > > thats 1.3 apps.
>
> > > > > hmm.  more digging.
>
> > > > > On Sep 5, 10:11 am, "#2Will"  wrote:
>
> > > > > > just running some debug statements looking at paths:
>
> > > > > > debug(ROOT);
> > > > > > debug(WWW_ROOT);
> > > > > > debug(WEBROOT_DIR);
> > > > > > debug(APP_DIR);
> > > > > > debug(APP_PATH);
> > > > > > gives me
>
> > > > > > /home/kindlem1/public_html/elip
> > > > > > /home/kindlem1/public_html/elip/app/webroot/
> > > > > > webroot
> > > > > > app
> > > > > > /home/kindlem1/public_html/elip/app/
>
> > > > > > Which i think looks as expected.
>
> > > > > > On Sep 5, 9:58 am, "#2Will"  wrote:
>
> > > > > > > Sorry, forgot to mention: i'm on 2.0 rc1
>
> > > > > > > On Sep 5, 9:56 am, "#2Will"  wrote:
>
> > > > > > > > Hello
>
> > > > > > > > I have deployed a little app to a subdomain as a stage 
> > > > > > > > environment -
> > > > > > > > iv'e done this before with 1.3 apps and not had to do anything 
> > > > > > > > special
> > > > >

Re: cakephp 2 app deployed on a subdomain

2011-09-06 Thread #2Will
Sorry for confusion, yes thats right just an app, deployed in the
simple cake way, whole thing up onto the one area (which happens to be
a subdomain)

its just /people/login for the login action


On Sep 6, 5:44 pm, WebbedIT  wrote:
> No I think you're reading it right, but if it's a different app it's a
> different app - a sub-domain is still a different domain when used in
> that context.
>
> If you want to have one central core you can go for the advanced
> installation but if I read your post fully I can see I have been
> thrown by your topic mentioning sub-domains (note to self: stop skim
> reading people posts).
>
> OK, so this has nothing to do with sub-domains, this is simply a
> configuration issue on a different domain.  Looks as thought
> the .htaccess files are not doing their jobs correctly.
>
> Do your other apps access the login at '/app/webroot/people/people/
> login' or do they instead  access '/people/login'?
>
> HTH, Paul
> @phpMagpie
>
> On Sep 6, 12:29 am, "#2Will"  wrote:
>
>
>
>
>
>
>
> > ok, thank you for replying.
>
> > I think what they are talking about in that is when you want to be
> > able to use different subdomains for different links etc?
>
> > That shouldn't be necessary just to deploy the whole app to a
> > subdomain should it?  or am i reading that wrong?
>
> > Thanks
>
> > will
>
> > On Sep 5, 9:59 pm, WebbedIT  wrote:
>
> > > Cake 2.0 beings some canges to the router to help with subdomains that
> > > were touched on at 
> > > CakeFest:http://book2.cakephp.org/en/appendices/new-features-in-cakephp-2-0.ht...
>
> > > HTT, Paul
> > > @phpMagpie
>
> > > On Sep 5, 1:38 am, "#2Will"  wrote:
>
> > > > comparing debug($_SERVER) between local and stage sites
>
> > > > local:      [PHP_SELF] => /app/webroot/index.php/people/login
> > > > stage:    [PHP_SELF] => /app/webroot/people/login
>
> > > > This seems like a likely to be relevent, but what could be causing
> > > > it?  I think i have all my htaccess files present.
>
> > > > Looking at other apps ive deployed to subdomain-stage , the PHP_SELF
> > > > is /app/webroot/index.php  without the /controller/action   - but
> > > > thats 1.3 apps.
>
> > > > hmm.  more digging.
>
> > > > On Sep 5, 10:11 am, "#2Will"  wrote:
>
> > > > > just running some debug statements looking at paths:
>
> > > > > debug(ROOT);
> > > > > debug(WWW_ROOT);
> > > > > debug(WEBROOT_DIR);
> > > > > debug(APP_DIR);
> > > > > debug(APP_PATH);
> > > > > gives me
>
> > > > > /home/kindlem1/public_html/elip
> > > > > /home/kindlem1/public_html/elip/app/webroot/
> > > > > webroot
> > > > > app
> > > > > /home/kindlem1/public_html/elip/app/
>
> > > > > Which i think looks as expected.
>
> > > > > On Sep 5, 9:58 am, "#2Will"  wrote:
>
> > > > > > Sorry, forgot to mention: i'm on 2.0 rc1
>
> > > > > > On Sep 5, 9:56 am, "#2Will"  wrote:
>
> > > > > > > Hello
>
> > > > > > > I have deployed a little app to a subdomain as a stage 
> > > > > > > environment -
> > > > > > > iv'e done this before with 1.3 apps and not had to do anything 
> > > > > > > special
> > > > > > > to get it to work. The app works on my localhost
>
> > > > > > > I'm getting errors where for example the login form now gives 
> > > > > > > error
>
> > > > > > > Error: The requested address '/app/webroot/people/people/login' 
> > > > > > > was
> > > > > > > not found on this server
>
> > > > > > > and if i enable debug in config.php debug kit gives is broken, 
> > > > > > > with
> > > > > > > files missing because they are pointing to wrong addresses
>
> > > > > > > eg:  app/webroot/people/debug_kit/js/js_debug_toolbar.js
>
> > > > > > > Is there something special i need to do for cakephp2 apps in
> > > > > > > subdomains?
>
> > > > > > > Thanks v much for any help,
>
> > > > > > > will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 2 app deployed on a subdomain

2011-09-05 Thread #2Will
ok, thank you for replying.

I think what they are talking about in that is when you want to be
able to use different subdomains for different links etc?

That shouldn't be necessary just to deploy the whole app to a
subdomain should it?  or am i reading that wrong?

Thanks

will

On Sep 5, 9:59 pm, WebbedIT  wrote:
> Cake 2.0 beings some canges to the router to help with subdomains that
> were touched on at 
> CakeFest:http://book2.cakephp.org/en/appendices/new-features-in-cakephp-2-0.ht...
>
> HTT, Paul
> @phpMagpie
>
> On Sep 5, 1:38 am, "#2Will"  wrote:
>
>
>
>
>
>
>
> > comparing debug($_SERVER) between local and stage sites
>
> > local:      [PHP_SELF] => /app/webroot/index.php/people/login
> > stage:    [PHP_SELF] => /app/webroot/people/login
>
> > This seems like a likely to be relevent, but what could be causing
> > it?  I think i have all my htaccess files present.
>
> > Looking at other apps ive deployed to subdomain-stage , the PHP_SELF
> > is /app/webroot/index.php  without the /controller/action   - but
> > thats 1.3 apps.
>
> > hmm.  more digging.
>
> > On Sep 5, 10:11 am, "#2Will"  wrote:
>
> > > just running some debug statements looking at paths:
>
> > > debug(ROOT);
> > > debug(WWW_ROOT);
> > > debug(WEBROOT_DIR);
> > > debug(APP_DIR);
> > > debug(APP_PATH);
> > > gives me
>
> > > /home/kindlem1/public_html/elip
> > > /home/kindlem1/public_html/elip/app/webroot/
> > > webroot
> > > app
> > > /home/kindlem1/public_html/elip/app/
>
> > > Which i think looks as expected.
>
> > > On Sep 5, 9:58 am, "#2Will"  wrote:
>
> > > > Sorry, forgot to mention: i'm on 2.0 rc1
>
> > > > On Sep 5, 9:56 am, "#2Will"  wrote:
>
> > > > > Hello
>
> > > > > I have deployed a little app to a subdomain as a stage environment -
> > > > > iv'e done this before with 1.3 apps and not had to do anything special
> > > > > to get it to work. The app works on my localhost
>
> > > > > I'm getting errors where for example the login form now gives error
>
> > > > > Error: The requested address '/app/webroot/people/people/login' was
> > > > > not found on this server
>
> > > > > and if i enable debug in config.php debug kit gives is broken, with
> > > > > files missing because they are pointing to wrong addresses
>
> > > > > eg:  app/webroot/people/debug_kit/js/js_debug_toolbar.js
>
> > > > > Is there something special i need to do for cakephp2 apps in
> > > > > subdomains?
>
> > > > > Thanks v much for any help,
>
> > > > > will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
comparing debug($_SERVER) between local and stage sites

local:  [PHP_SELF] => /app/webroot/index.php/people/login
stage:[PHP_SELF] => /app/webroot/people/login

This seems like a likely to be relevent, but what could be causing
it?  I think i have all my htaccess files present.

Looking at other apps ive deployed to subdomain-stage , the PHP_SELF
is /app/webroot/index.php  without the /controller/action   - but
thats 1.3 apps.

hmm.  more digging.


On Sep 5, 10:11 am, "#2Will"  wrote:
> just running some debug statements looking at paths:
>
> debug(ROOT);
> debug(WWW_ROOT);
> debug(WEBROOT_DIR);
> debug(APP_DIR);
> debug(APP_PATH);
> gives me
>
> /home/kindlem1/public_html/elip
> /home/kindlem1/public_html/elip/app/webroot/
> webroot
> app
> /home/kindlem1/public_html/elip/app/
>
> Which i think looks as expected.
>
> On Sep 5, 9:58 am, "#2Will"  wrote:
>
>
>
>
>
>
>
> > Sorry, forgot to mention: i'm on 2.0 rc1
>
> > On Sep 5, 9:56 am, "#2Will"  wrote:
>
> > > Hello
>
> > > I have deployed a little app to a subdomain as a stage environment -
> > > iv'e done this before with 1.3 apps and not had to do anything special
> > > to get it to work. The app works on my localhost
>
> > > I'm getting errors where for example the login form now gives error
>
> > > Error: The requested address '/app/webroot/people/people/login' was
> > > not found on this server
>
> > > and if i enable debug in config.php debug kit gives is broken, with
> > > files missing because they are pointing to wrong addresses
>
> > > eg:  app/webroot/people/debug_kit/js/js_debug_toolbar.js
>
> > > Is there something special i need to do for cakephp2 apps in
> > > subdomains?
>
> > > Thanks v much for any help,
>
> > > will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
just running some debug statements looking at paths:

debug(ROOT);
debug(WWW_ROOT);
debug(WEBROOT_DIR);
debug(APP_DIR);
debug(APP_PATH);
gives me

/home/kindlem1/public_html/elip
/home/kindlem1/public_html/elip/app/webroot/
webroot
app
/home/kindlem1/public_html/elip/app/

Which i think looks as expected.

On Sep 5, 9:58 am, "#2Will"  wrote:
> Sorry, forgot to mention: i'm on 2.0 rc1
>
> On Sep 5, 9:56 am, "#2Will"  wrote:
>
>
>
>
>
>
>
> > Hello
>
> > I have deployed a little app to a subdomain as a stage environment -
> > iv'e done this before with 1.3 apps and not had to do anything special
> > to get it to work. The app works on my localhost
>
> > I'm getting errors where for example the login form now gives error
>
> > Error: The requested address '/app/webroot/people/people/login' was
> > not found on this server
>
> > and if i enable debug in config.php debug kit gives is broken, with
> > files missing because they are pointing to wrong addresses
>
> > eg:  app/webroot/people/debug_kit/js/js_debug_toolbar.js
>
> > Is there something special i need to do for cakephp2 apps in
> > subdomains?
>
> > Thanks v much for any help,
>
> > will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
Sorry, forgot to mention: i'm on 2.0 rc1

On Sep 5, 9:56 am, "#2Will"  wrote:
> Hello
>
> I have deployed a little app to a subdomain as a stage environment -
> iv'e done this before with 1.3 apps and not had to do anything special
> to get it to work. The app works on my localhost
>
> I'm getting errors where for example the login form now gives error
>
> Error: The requested address '/app/webroot/people/people/login' was
> not found on this server
>
> and if i enable debug in config.php debug kit gives is broken, with
> files missing because they are pointing to wrong addresses
>
> eg:  app/webroot/people/debug_kit/js/js_debug_toolbar.js
>
> Is there something special i need to do for cakephp2 apps in
> subdomains?
>
> Thanks v much for any help,
>
> will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


cakephp 2 app deployed on a subdomain

2011-09-04 Thread #2Will
Hello

I have deployed a little app to a subdomain as a stage environment -
iv'e done this before with 1.3 apps and not had to do anything special
to get it to work. The app works on my localhost

I'm getting errors where for example the login form now gives error


Error: The requested address '/app/webroot/people/people/login' was
not found on this server

and if i enable debug in config.php debug kit gives is broken, with
files missing because they are pointing to wrong addresses

eg:  app/webroot/people/debug_kit/js/js_debug_toolbar.js

Is there something special i need to do for cakephp2 apps in
subdomains?

Thanks v much for any help,

will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: console errors when running 2.0 Console/cake

2011-08-15 Thread #2Will
Hi Jose,

i am on 2.0.0-beta

I downloaded again just now and tried it again without the debug_kit
plugin.  Same result.

i'm trying to fiddle about with debug statements, but not getting
far.

The $matches array for that first missing index ('tag') is:

## DEBUG ##
Array
(
[0] => Notice Error:
[1] => error
[2] => Notice Error:
[3] => error
)

###

which dosn't look good. Looking up at whats calling this function,

return preg_replace_callback(
'/<(?[a-z0-9-_]+)>(?.*?)<\/(\1)>/ims', 
array($this,
'_replaceTags'), $text
);
where $text is

Notice Error: Undefined index:  tag in [/Users/
willbarker/Dropbox/elip/lib/Cake/Console/ConsoleOutput.php, line 197]

Obviously if i amend my styleText function to just dish out the $text
as it is fed it, i get something quite passable,

Welcome to CakePHP v2.0.0-beta Console
---
App : app
Path: /Users/willbarker/dropbox/elip/app/
---
Interactive Bake Shell
---
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[F]ixture
[T]est case
[Q]uit
What would you like to Bake? (D/M/V/C/P/F/T/Q)


and the < question > tags etc are ok.  But all this makes me wonder
whats up with my set up.

Thanks for checking this for me. its sort of working with the hacked
ConsoleOutput.php, but I'd be interested in getting to the bottom of
it still.  It makes me wonder what could be up with my setup?

will




On Aug 16, 1:17 am, José Lorenzo  wrote:
> I am on the same setup as you are, and just ran the command as you described
> without any errors. Can you confirm you have the latest 2.0 code?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: console errors when running 2.0 Console/cake

2011-08-14 Thread #2Will
Hi Jose,

i am using OSX 10.6.8 and i am cd'ing into the app folder  and running
Console/cake

in amongst row after row of notices are all the messages i am
expecting when running that based on the docs in github.

one thing i have noticed this morning is that it makes a comment about
the paths, and my output dosn't conform to what it is saying:
"
-app: app
 -working: /Users/willbarker/dropbox/elip/app
 -root: /Users/willbarker/dropbox/elip
 -core: /Users/willbarker/Dropbox/elip/lib

{lots of notices}

Your working path should be the same as your application path to
change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp
"

is it an issue that the app path is just "app" or is that the expected
value?

Thanks for any help,

Will




On Aug 14, 11:19 am, José Lorenzo  wrote:
> Can you paste the complete command you are using to run the shell? What
> operating system are you using?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


console errors when running 2.0 Console/cake

2011-08-12 Thread #2Will
Hello,

I'm starting a new project and have installed cake2.0 today.  All good
so far, got the debug kit working etc.

I have run into a problem when trying to run bake, i'm getting lots of
repeated notices along the lines of

"Undefined index:  tag in /Users/me/sites/mywebapp/lib/Cake/Console/
ConsoleOutput.php on line 195"

Line 195 looks like this:

$style = $this->styles($matches['tag']);

and the other errors are all along similar lines,

Notice: Undefined index: error in /Users/ne/sitez/webapp/lib/Cake/
Console/ConsoleOutput.php on line 210

$styleInfo[] = self::$_options[$option];

These lines are from the replace tags, which from the look of things
replaces html with color codes for the console i think?

so something Iv'e done has gone wrong there.  Could cake1.3 sites
elsewhere on the machine be conflicting or something?

Thanks for any pointers,

will

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 1.3.11 and 2.0.0-beta released

2011-07-26 Thread #2Will
Thanks to everyone on the team - hugely appreciated.

Will

On Jul 27, 1:46 pm, taqman filler  wrote:
> thank you for hard work
>
> Best Regard
>
> taqman
>
> 2011/7/27 Vitor Pacheco :
>
>
>
>
>
>
>
> > great job! thank you for this!
>
> > 2011/7/26 O.J. Tibi 
>
> >> Thanks for the great news, José! I'll be upgrading my 1.3 core as soon as
> >> possible. :)
>
> >> --
> >> Our newest site for the community: CakePHP Video Tutorials
> >>http://tv.cakephp.org
> >> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> >> others with their CakePHP related questions.
>
> >> To unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> >> athttp://groups.google.com/group/cake-php
>
> > --
> > Vitor Pacheco
> > Skype: vitor.pacheco.costa
> > Msn: vitor-...@hotmail.com
> > Cel.: 71 8626-7909
> > Tel.: 71 3378-5778
> > Tel.: 71 3287-3475
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> >http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Newbie model question...

2011-04-27 Thread #2Will
You need a similar association in the council model defenition for
hasmany people. You don't need to do anything in the regions model to
get the people, cake works its way through.

Then use recursive to automatically provide deeper associations, or
use contain to be more specific about what you want, to avoid
performance hits.  I normally get it working with recursive and then
tighten things up with contain once i can see its working.

hth

will

On Apr 28, 9:04 am, Staple  wrote:
> Hi there,
>
> I have an application with 'Regions' that have many 'Councils' that in
> turn have many 'People'.
>
> It is all working well and the view page of a 'Region' has the
> associated 'Councils' available in it. I need to get deeper to get the
> 'People' available on the 'Region' view page as well. My model looks
> like this (I imagine I need to add 'People' to the model?):
>
>  class Region extends AppModel {
>         var $name = 'Region';
>         var $displayField = 'name';
>         //The Associations below have been created with all possible keys,
> those that are not needed can be removed
>
>         var $hasMany = array(
>                 'Council' => array(
>                         'className' => 'Council',
>                         'foreignKey' => 'region_id',
>                         'dependent' => false,
>                         'conditions' => '',
>                         'fields' => '',
>                         'order' => '',
>                         'limit' => '',
>                         'offset' => '',
>                         'exclusive' => '',
>                         'finderQuery' => '',
>                         'counterQuery' => ''
>                 )
>         );
>
> }
>
> ?>
>
> Any help much appreciated...

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 1.3.8 and 1.2.10 released

2011-04-20 Thread #2Will
Thanks Mark and anyone else that contributed.  cake rocks, and its
amazing you guys get time to work on it.  respect and thank you!

On Mar 21, 6:47 am, mark_story  wrote:
> The CakePHP core team is proud to announce the immediate availability
> of CakePHP 1.3.8 and 1.2.10. These releases are bugfix/maintenance
> releases for the 1.2 and 1.3 branches. Since the release CakePHP 1.3.7
> in January, there have been over 35 commits[1] and 30 tickets
> resolved. The 1.2 branch has 20 commits[2] and 15 tickets resolved,
> since the release of 1.2.9 in November. There have been a few changes
> that may affect your application in each version:
>
> ### 1.3
>
> - Boolean handling for Postgres has been improved.
> - Installs using the top level index.php and no url re-writing should
> work better now.
> - DboMysqli no longer incorrectly handles socket and port options.
> - Blackholes caused by defining custom name attributes on fields has
> been fixed.
> - The %e time specifier now works on windows.
> - Cake console properly runs when started in C:\ on windows.
> - Actions starting with their prefix, but lacking a '_' are correctly
> handled now.
> - You can now create submit buttons with no text.
>
> ### 1.2
>
> - Paths for virtual machines are now correctly handled.
> - Installs using the top level index.php and no url re-writing should
> work better now.
> - Date headers are now correctly added to emails sent from
> EmailComponent.
> - EmailComponent now registers and un-registers its View instance,
> this allows helpers to access View when rendering email messages.
> - FormHelper::checkbox() now correctly handles checked = false.
> - TextHelper::autoLinkEmails now correctly links email addresses with
> '.'
>
> Development on 2.0 continues to progress well. A few topic branches
> have been merged in. Most notably, re-implementation of AuthComponent,
> Pagination as a component, and HttpSocket.  If you are interested in
> what the future might contain, you can view the in progress wiki
> pages[3], and open tickets[4] on lighthouse.
>
> A huge thanks to all involved in terms of both contributions through
> commits, tickets, documentation edits, and otherwise contribute to the
> framework. Without you there would be no CakePHP.
>
> - View the 1.2.10 changelog [1]
> - View the 1.3.8 changelog [2]
> - Download packaged releases [5]
>
> ### Links
>
> - [1]http://cakephp.org/changelogs/1.3.8
> - [2]http://cakephp.org/changelogs/1.2.10
> - [3]http://cakephp.lighthouseapp.com/projects/42648-cakephp/overview
> - [4]http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/bins/...
> - [5]http://github.com/cakephp/cakephp/downloads

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Locale files No such file or directory error apparently causing speed issues.

2011-02-02 Thread #2Will
again, ta for pitching in with some help here.

On Feb 2, 8:17 pm, AD7six  wrote:
> On Feb 2, 5:48 am, "#2Will"  wrote:
>
> > Hi Thanks for your response AD7six
>
> > When you say its not an error, do you mean cake is meant to do this,
> > as part of looking for files in a set order till finds a default?
>
> so, you didn't look at what strace does?

i read the wiki page.  it shows all the things the server does to show
the page.  So yeah, i agree its not an error to look for a file, just
mt have noticed its doing it rather a lot.

>
> how is (php equivalent):
>
> if (!file_exists('this one')) {
>   echo 'no file here';
>
> }
>
> an error?

nope


>
>
>
> > I didn't have a locale set (i hadn't really thought to as im not
> > trying to be international) so i put
> > Configure::write('Config.language', 'eng'); into my boot strap.  Guess
> > i need to do this for all my cake projects.
>
> You should find a reason before you do anything - which involves
> looking at hte cake code and finding WHY it's continually looking for
> the same file.

k.  its not finding any messages for default domain, and when that
happens it sets :

$this->__domains[$domain][$this->__lang][$this->category] = array();

which isn't enough to avoid looking again : if (empty($_this-
>__domains[$domain][$_this->__lang][$_this->category])) {

Is that really the issue though?  why no messages? as there are
messages in my default.po file.

its not finding default.po with the file_exists call. which is odd.
Ive copied the path and it opens the dir in finder.  think ive managed
to spell "default.po" correctly.  Why might that be?

hmm. bit stumped for today.


>
>
>
> > I ran the console i18n thing, and it developed various po files and i
> > have put them into my eng dir.
>
> > Its now looking for core.po and core.mo and can't find them  - Should
> > i be making those? If so, how do i make the core.po and core.mo
> > files?
>
> what version of cake are you using?

1.3.6


>
>
>
> > What could be wrong with cache set up? Ive just uncommented the file
> > cache set up & set disable cache to false in core.php and that seems
> > to be generating lots of cache files as expected. Is it more
> > complicated than this? I don't think it is right?
>
> when you find out why the i18n class is continually looking for the
> same file, you should be able to answer that.



>
>
>
> > This all seems like a lot of set up for a feature im not using. Which
> > makes me think its either a non issue or im doing something
> > fundamentally wrong.
>
> the i18n logic is only invoked if you use it - so somewhere in your
> app or dependencies is a call to __(... . there are __( calls
> throughout the cake core.

yep, and where i have those calls from my bake templates.


>
> AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Locale files No such file or directory error apparently causing speed issues.

2011-02-01 Thread #2Will
Hi Thanks for your response AD7six

When you say its not an error, do you mean cake is meant to do this,
as part of looking for files in a set order till finds a default?

I didn't have a locale set (i hadn't really thought to as im not
trying to be international) so i put
Configure::write('Config.language', 'eng'); into my boot strap.  Guess
i need to do this for all my cake projects.

I ran the console i18n thing, and it developed various po files and i
have put them into my eng dir.

Its now looking for core.po and core.mo and can't find them  - Should
i be making those? If so, how do i make the core.po and core.mo
files?

What could be wrong with cache set up? Ive just uncommented the file
cache set up & set disable cache to false in core.php and that seems
to be generating lots of cache files as expected. Is it more
complicated than this? I don't think it is right?

This all seems like a lot of set up for a feature im not using. Which
makes me think its either a non issue or im doing something
fundamentally wrong.




On Jan 28, 8:56 pm, AD7six  wrote:
> On Jan 28, 5:57 am, "#2Will"  wrote:
>
>
>
> > Hi Everyone,
>
> > Im getting quite slow speeds off a small site hosted onMediaTemples
> > Grid service.  The Tech guys there say that my app (a basic cms) is
> > giving this error:
>
> > "There seem to be many failed stats for /app/locale/LC_MESSAGES. An
> > strace of the index.php shows ~216 failed calls for this directory and
> > files within it"
>
> > eg:
>
> > access("/nfs/c03/h01/mnt/45558/domains/soulstarvision.com/html/app/
> > locale//LC_MESSAGES/default.po", F_OK) = -1 ENOENT (No such file or
> > directory)
>
> > Why would cake throw this error?
>
> it's not an error
>
> >  Im not sure where the guy is seeing this as its not in cake's logs or the 
> > server error_log.
>
> He's looking at a strace log (as he states in the 
> messagehttp://en.wikipedia.org/wiki/Strace) showing what files your php app
> is looking for.
>
>
>
> > I notice the double // bit.  Im wondering if there shouls be something
> > like "eng" in there.  Am i barking at the wrong tree?
>
> right tree :)
>
> > If not, why is "eng" missing.
>
> > There isn't anything in my /eng/LC_Messages dir anyway.
>
> Repeatedly looking for the same file is a symptom of not having your
> cache setup correctly. looking for locale//LC_MESSAGES is a symptom of
> something else not being configured correctly - which if you do a bit
> of investigating in the i18n code should either yeild:
>
> * a config issue
> * a bug
>
> in either case - you should be able to figure out what to do about it.
>
> hth,
>
> AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Using two tables

2011-01-30 Thread #2Will
I think you need to have a look at hasMany.

User has many my_files. http://book.cakephp.org/view/1043/hasMany

So something like:

class User extends AppModel {
var $name = 'User';
var $hasMany = 'MyFile';
}



On Jan 30, 10:33 pm, newguy  wrote:
> Hi
> I am working on implementing file upload functionality in my site, I
> have a table called users which contains user's login information.
> I want to have another table my_files with the following fields in
> which I can store the file uploaded by the user.
>
> `id`, `name`, `created`, `modified'
>
> My database.php file has this:
>
>  class DATABASE_CONFIG
> {
>    var $default = array('driver'   => 'mysql',
>                         'connect'  => 'mysql_pconnect',
>                         'host'     => 'localhost',
>                         'login'    => 'root',
>                         'password' => 'root',
>                         'database' => 'users' );}
>
> ?>
>
> I want to know how should I include this new table in my code and use
> it to save the uploaded file and its information.
>
> This is my view file for upload option(upload.ctp):
>
>      echo $form->create('User', array('action' => 'upload', 'type' =>
> 'file'));
>     echo $form->file('File');
>     echo $form->submit('Upload');
>     echo $form->end();
> ?>
>
> This is my only model file:
>  class User extends AppModel
> {
>   var $name = 'User';
>   var $otherDB='my_files';
>   var $validate = array(
>     'username' => array(
>     'rule' => 'isUnique',
>     'message' => 'Username not available'
>     ),
>     'password' => array(
>     'rule' => array('minLength',8),
>     'message' => 'Minimum length is 8'
>     ),
>     'email' => array(
>     'rule' =>  array('email',true),
>     'message' => 'Enter valid email address'
>     )
>   );
>
> }
>
> ?>
>
> I have nothing for upload in the controller.
>
> I have read previous posts about using multiple tables but could
> really understand because of my limited knowledge in php/cake.
> Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Jquery Help

2011-01-29 Thread #2Will
You can include whatever JS you need like this:

http://book.cakephp.org/view/1589/script

its pretty straightforward.  Just add in the script in either the
layout ctp or the view.  Bit of fiddling about to make sure jquery is
added before the jquery dependent plugin and you are off.

if you are adding code you want just outputted to the page you can do
something like this:

$a = "
$(document).ready(function() {

//ACCORDION BUTTON ACTION
$('div.accordionButton').click(function() {
$('div.accordionContent').slideUp('normal');
$(this).next().slideDown('normal');
});

//HIDE THE DIVS ON PAGE LOAD
$(\"div.accordionContent\").hide();

$(\".open\").trigger('click');

});
";
$this->Js->buffer($a);


in your view, and then in the bottom of the layout.ctp file, output
the buffer like this:

echo $this->Js->writeBuffer();

make sure you do that below  your echo $scripts_for_layout  so you
don't fall over jquery dependency.

hth


On Jan 30, 4:40 pm, tubiz  wrote:
> Please as many web designers will say Jquery is one of the most
> popular Javascript framwework. But the problem i am having is how to
> implement jquery in my cake apps.
> Is is in the view i will import the jquery source and how do i write
> custom jquery code to target specific section of my site like a form
> ("that will be created using the Form Helper") and is it possible to
> use to jquery autocomplete plugin on my site.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Locale files No such file or directory error apparently causing speed issues.

2011-01-27 Thread #2Will
Hi Everyone,

Im getting quite slow speeds off a small site hosted on Media Temples
Grid service.  The Tech guys there say that my app (a basic cms) is
giving this error:

"There seem to be many failed stats for /app/locale/LC_MESSAGES. An
strace of the index.php shows ~216 failed calls for this directory and
files within it"

eg:

access("/nfs/c03/h01/mnt/45558/domains/soulstarvision.com/html/app/
locale//LC_MESSAGES/default.po", F_OK) = -1 ENOENT (No such file or
directory)

Why would cake throw this error? Im not sure where the guy is seeing
this as its not in cake's logs or the server error_log.

I notice the double // bit.  Im wondering if there shouls be something
like "eng" in there.  Am i barking at the wrong tree? If not, why is
"eng" missing.

There isn't anything in my /eng/LC_Messages dir anyway.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: JS Helper Submit method. Easy, but how do i add to it?

2010-11-13 Thread #2Will
So I think this might be easier just to write using jquery on its
own.  Cake has written the bind for me, and ive given the button an id
so it won't regenerate a random id each time.

i nipped into the souce, stole what cake had done so far.  made the
submit a simple Form->submit rather than Js->submit and did this :

Js->buffer($a);

?>


Which seems straightforward enough, unless someone clever thinks this
is a stupid way to do it, Self rescue!



On Nov 14, 2:33 pm, "#2Will"  wrote:
> Hi,
>
> I have a simple submit button magicly turning my form into ajax:
>
> echo $this->Js->submit('Add', array('update' => '#update-zone-phone',
> 'class'=>'zebidee', 'url'=>'/phones/add'));
>
> works really well.
>
> But, how do i add to what happens when that button is clicked?
>
> I'd like to reset the form and hide it. so $('#phones_add_box').hide()
> and $('#PhoneAddForm')[0].reset();
>
> but where should i put extra jquery code to add it to the submit
> button's click function?
>
> Thanks,
>
> will

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


JS Helper Submit method. Easy, but how do i add to it?

2010-11-13 Thread #2Will
Hi,

I have a simple submit button magicly turning my form into ajax:

echo $this->Js->submit('Add', array('update' => '#update-zone-phone',
'class'=>'zebidee', 'url'=>'/phones/add'));

works really well.

But, how do i add to what happens when that button is clicked?

I'd like to reset the form and hide it. so $('#phones_add_box').hide()
and $('#PhoneAddForm')[0].reset();

but where should i put extra jquery code to add it to the submit
button's click function?

Thanks,

will

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Redirect in a component

2010-10-19 Thread #2Will

Thanks Okalany,

Actually, i should have worked this out from the page i posted,

>From the cookbook (similar to your code)
function initialize(&$controller, $settings = array()) {
// saving the controller reference for later use
$this->controller =& $controller;
}

But in my tail chasing I'd added further code that was leading to
misinterpreted error messages.  My bad.

Thanks for helping me see.

will


On Oct 19, 6:53 pm, Okalany Daniel  wrote:
> Hi Will,
> I always redirect like this:
>
> $this->controller = null;
> // function run on init
> function startup(&$controller){
> $this->controller = $controller;
>
> }
>
> function someredirect(){
> $this->controller->redirect('/');
>
>
>
> }
> On Tue, Oct 19, 2010 at 10:35 AM, #2Will  wrote:
> > Hi,
>
> > Im trying to redirect from a component, and in the cookbook it says
> > this:
>
> > function redirectSomewhere($value) {
> >                // utilizing a controller method
> >                $this->controller->redirect($value);
> >        }
>
> >http://book.cakephp.org/view/64/Creating-Components
>
> > But that throws an error like this:
> > **
> >  Error:  The component file was not found.
>
> > Error: Create the class RedirectComponent in file: app/controllers/
> > components/redirect.php
>
> >  > class RedirectComponent extends Object {
>
> > }
> > ?>
> > ***
>
> > Can anyone explain why? And what do i do to redirect from my
> > component?
>
> > Thanks!
>
> > Will
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> --
> OKALANY DANIEL,
> P.O BOX 26150,
> Kampala.,
> Uganda.http://okasoft.net
> --
> When confronted by our worst nightmares, the choices are few; Fight or
> flight. We hope to find the strength to stand against our fears but
> sometimes, despite ourselves, we run. What if the nightmare gives chase?
> Where can we hide then?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Redirect in a component

2010-10-19 Thread #2Will
Hi,

Im trying to redirect from a component, and in the cookbook it says
this:

function redirectSomewhere($value) {
// utilizing a controller method
$this->controller->redirect($value);
}


http://book.cakephp.org/view/64/Creating-Components

But that throws an error like this:
**
 Error:  The component file was not found.

Error: Create the class RedirectComponent in file: app/controllers/
components/redirect.php


***

Can anyone explain why? And what do i do to redirect from my
component?

Thanks!

Will

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: CakePHP Tags Plugin Question 2

2010-08-04 Thread #2Will
So im attempting to fiddle with it till it works, Trying Contain
dosn't seem to work.  If i remove the contain part of the array from
this it returns all the 'physical' event types (its an enviromental
volunteering site) but if i leave it in as below, no results at all.
some of the events def have a postcode that matches.

Any hints?

$this->paginate['Tagged'] = array(
'model' => 'Content',
'tagged',
 'contain'=>array(
'Content'=>array(
'conditions' => array('Content.postcode 
like' =>
"%" . $this->data['Events']['postcode'] . "%"),

'fields'=>array('Content.id','Content.event_date','Content.title','Content.area',
'Content.hours','Content.postcode', 'Content.slug')
    )
),
'by' => array('physical'));

$events = $this->paginate('Tagged',$filter);

On Aug 3, 2:39 pm, "#2Will"  wrote:
> Thanks Andy, I tried correcting that typo but it still not working.
>
> That wasn't cut and paste, just (badly) paraphrasing the things ive
> been trying.
>
> Thanks for looking though.  Im quite stuck!
>
> On Aug 3, 2:17 pm, Andy Dirnberger  wrote:
>
> > There's an error in your syntax. The line should be $filter =
> > array('Event.postcode' => '4883');
>
> > On Aug 2, 11:24 pm, "#2Will"  wrote:
>
> > > Sorry but i seem to be struggling today.  Ive got my index page
> > > showing my paginated list and filtering by tag, but what if i want to
> > > add in more filters?
>
> > > so  $filter = array( 'Event.postcode' = '4883')
>
> > > $this->paginate['Tagged'] = array(
> > >                         'model' => 'Event',
> > >                         'tagged',
> > >                         'by' => $this->passedArgs['by']);
> > >                 $recipes = $this->paginate('Tagged', $filter);
>
> > > the filter is just ignored.
>
> > > Surely im just doing something silly? You must be able to add more
> > > conditions right?
>
> > > Thanks,
>
> > > a confused will.
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: CakePHP Tags Plugin Question 2

2010-08-02 Thread #2Will
Thanks Andy, I tried correcting that typo but it still not working.

That wasn't cut and paste, just (badly) paraphrasing the things ive
been trying.

Thanks for looking though.  Im quite stuck!



On Aug 3, 2:17 pm, Andy Dirnberger  wrote:
> There's an error in your syntax. The line should be $filter =
> array('Event.postcode' => '4883');
>
> On Aug 2, 11:24 pm, "#2Will"  wrote:
>
> > Sorry but i seem to be struggling today.  Ive got my index page
> > showing my paginated list and filtering by tag, but what if i want to
> > add in more filters?
>
> > so  $filter = array( 'Event.postcode' = '4883')
>
> > $this->paginate['Tagged'] = array(
> >                         'model' => 'Event',
> >                         'tagged',
> >                         'by' => $this->passedArgs['by']);
> >                 $recipes = $this->paginate('Tagged', $filter);
>
> > the filter is just ignored.
>
> > Surely im just doing something silly? You must be able to add more
> > conditions right?
>
> > Thanks,
>
> > a confused will.
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


CakePHP Tags Plugin Question 2

2010-08-02 Thread #2Will
Sorry but i seem to be struggling today.  Ive got my index page
showing my paginated list and filtering by tag, but what if i want to
add in more filters?

so  $filter = array( 'Event.postcode' = '4883')


$this->paginate['Tagged'] = array(
'model' => 'Event',
'tagged',
'by' => $this->passedArgs['by']);
$recipes = $this->paginate('Tagged', $filter);


the filter is just ignored.

Surely im just doing something silly? You must be able to add more
conditions right?

Thanks,

a confused will.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


CakePHP Tags Plugin

2010-08-02 Thread #2Will
Hi everybody,

Ive downloaded and tried out the tags plugin from cakeDC.  It all
seems to be working ok. So now i want to push my luck...

I'd like to be able to add more than one taxonomy to my model.  Can
anyone shed any light on how i should go about this using this very
pleasant plugin?

So for instance, I'd like to be able to tag a product with a brand and
a product type.

Thanks for any guidance,

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-28 Thread #2Will

> If you
> encage your thoughts about who supports what on the server side, you
> lost already.

I think thats a bit dramatic.  I just want to be able to deploy my
cakephp apps to my regular local hosting company (hosting is much more
expensive here in australia).  Steady improvement is awesome, and not
breaking compatability (is handy to.  I think the point is thats my
requirements.  others may differ, but the cake devs have to keep us
all happy.

my host says this:
"There are quite a lot of differences between 5.2 and 5.3, upgrading
will break a lot of sites. For that reason it's unlikely at this stage
any 5.2 installation will be upgraded unless absolutely necessary, and
then it's more likely to have security patches added. Unfortunately
our experience has been PHP takes quite a few versions before
backwards compatibility is taken seriously, when the time comes where
an upgrade won't break things we'll do it. We will be using 5.3 as new
servers are added so it will become an option down the track."

So no 5.3 for a bit, but probably not years away.

Be interesting to know what the plans there are for 5.3 features to be
brought in to cake down the track.  How different would it be to use?
How much difference in terms of features  / ease of use would it be,
or would it likely be mostly performance  increase?

But for now,  im happy with 1.3, it works really well, is a joy to use
and makes me excited to see version 2.0 when it comes, thanks cakephp!

will


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-27 Thread #2Will
Jon, i see what you're saying, but plenty of us are making small -
medium size sites that deploy to clients hosting (shared) and run just
fine.  Its serious to them :)  If you don't operate in this space, you
would be amazed how clients baulk at even top end shared hosting
prices (but dreamhost is only $6!!! etc etc) never mind gettting a
Virtual server or whatever.


cakes size & low requirements is still a selling point.(cake 7meg vs
ZF 47 meg)

add to that the corporates with grumpy IS departments running old
versions of everything (ie6, mysql 4.old php4 apparently) and its a
lot more complicated than "just get proper hosting"

That said, i haven't had to deal with php4 ever with a cake site.



On Jul 27, 10:41 pm, Jon Bennett  wrote:
> > I agree, it does feel soon, but hopefully this will push [serious]
> > hosting companies to upgrade their PHP installs to 5.3.x, which is a
> > good thing IMHO.
>
> anyone looking for serious hosting will be able to sort this for
> themselves anyway, shared != serious imo.
>
> j
>
>
>
>
>
> > On Jul 26, 5:19 pm, cricket  wrote:
> >> On Mon, Jul 26, 2010 at 8:21 AM, keymaster  wrote:
> >> > I saw this today on php.net:
>
> >> > =
> >> > PHP 5.2.14 Released!
>
> >> > [22-Jul-2010]  This release marks the end of the active support for
> >> > PHP 5.2. Following this release the PHP 5.2 series will receive no
> >> > further active bug maintenance. Security fixes for PHP 5.2 might be
> >> > published on a case by cases basis. All users of PHP 5.2 are
> >> > encouraged to upgrade to PHP 5.3."
> >> > ===
>
> >> Does anyone else find that this is a bit soon? I'm certainly not big
> >> on holding on to *really* old codebase (ahem, like the bazillions of
> >> sites out there still stuck on PHP4.x and MySQL4.x) but it seems to me
> >> that it wasn't very long ago at all that practically nobody was even
> >> running 5.3 yet.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> --
> jon bennett -www.jben.net- blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Application Settings stored in the DB and available in plugin models?

2010-06-17 Thread #2Will
a ha! thanks sam.  I was calling the settings function in before
render, which i guess is too late.  i moved it to before filter and
the vars are available.  brill.

Thanks!

Will.

On Jun 16, 4:16 pm, Sam  wrote:
> Variables stored via Configure::write should be accessable anywhere in
> your site- if it isn't working then the code isn't being executed.
> Figure out why it isn't executing and you'll solve your problem.
>
> Does your plugin AppController extend your site's AppController? Also,
> where are you defining the settings? If you are doing it in the
> AppController beforeFilter, and are using beforeFilter in your plugin
> AppController, make sure that you are calling parent::beforeFilter()
> in your plugin's AppController.
>
> regards,
> Sam
>
> On Jun 15, 6:09 pm, "#2Will"  wrote:
>
> > Hi,  I have some settings set in the admin area and stored in the db
> > that i use throughout the app, and would like to access in a plugin.
>
> > I get the settings like this in the app controller:
>
> > function _getSettings(){
> >                 $this->settings = $this->Setting->find();  #get them
>
> >                 #make available in controllers
> >                 $this->settings = $this->settings['Setting'];
>
> >                 # make available in views
> >                 $this->set('settings',$this->settings);
>
> >                 #make available in plugins
> >                 // ??
>
> >         }
>
> > But those variables are not availabe in a plugin model.  How can I
> > make those settings available everywhere?
>
> > Settings writen using configure::write in the core.php file are
> > available, but not ones written in appController.  Where can i write
> > them out from the DB so they are available in the plugin model?
>
> > Or am i going about this the wrong way entirely?
>
> > Thanks,
>
> > Will.
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Application Settings stored in the DB and available in plugin models?

2010-06-15 Thread #2Will
Hi,  I have some settings set in the admin area and stored in the db
that i use throughout the app, and would like to access in a plugin.

I get the settings like this in the app controller:

function _getSettings(){
$this->settings = $this->Setting->find();  #get them

#make available in controllers
$this->settings = $this->settings['Setting'];

# make available in views
$this->set('settings',$this->settings);

#make available in plugins
// ??

}

But those variables are not availabe in a plugin model.  How can I
make those settings available everywhere?

Settings writen using configure::write in the core.php file are
available, but not ones written in appController.  Where can i write
them out from the DB so they are available in the plugin model?

Or am i going about this the wrong way entirely?

Thanks,

Will.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cake PHP vs Zend

2010-06-08 Thread #2Will
In my mind its no contest. Use Cake.

I have used zend framework quite a bit, and when i moved to cake it
was such a massive relief. It's just so much easier to do anything in
cake than ZF. ZF just seemed over complicated, awkward and confusing.
The documentation is horrid. Ok so there is a page in the docs for
most things, but they are always isolated. Code snippets that leave
you scratching your head as to where you are supposed to put the
code.  The community here is much more helpful too.

Cake seems to have a lovely blend of having a sensible opionion on
everything (convention over configuration) and being able to customise
everything when you need to.  You arn't held hostage by the framework
when the designer or client changes a requirement slightly that
doesn't fit cake well.  That stuff seems to happen every day with
zend.  Zend didn't even really have the basic application directories
set up untill 1.9, resulting in every tutorial on the web having a
different folder structure.  Yes loosely coupled sounds cool in a
feature list but in reality it just adds to ZF's horridiy(tm).

Also, with Zend - it felt like we where having to fill in the gaps
ourselves. an obvious example is the ORM - ZF's is useless.
Relationships didn't seem to work  / needed a massive amount of
setup.  We ended up integrating doctrine & although doctrine is
gorgeous that's a lot of work just to get off the ground and
inevitably didn't integrate as well as a native orm might.

Another area of ultimate head-ache is forms. Making forms exactly how
you want them is very difficult with zend.  You have to get your head
around "decorators" just to alter the mark-up away from dl/dt lists
and it isn't easy.  So that's databases and web forms failures in
zend.  don't know about everyone else but that's quite a big
percentage of my work output right there.

Iv'e just re-read your question and realised you arn't a full time
developer.  No wonder you are finding Zend hard. Kudos if you got much
working.  And the fact you are looking at other frameworks is a
classic ZF developer trait.  I used to do it all the time.  that
feeling that this can't be the best way to make the internet is not
paranoia, it is your sub-concious stating the obvious.

and breathe.

will.






On Jun 8, 10:03 am, "Meroe Kush"  wrote:
> Folks,
>
> I'm facing a dilemma.  I'm not a programmer by profession and do this work
> as a hobby of mine.  I ask this question in all fairness and not a slide
> against any framework, but I am at a loss if I should stick with Zend or
> switch over to Cake.  
>
> The CRUD and full stack seems enticing.
>
> I'm working on what will be quite a large application with many modules,
> authentication, permissions, task tracking, risks, issues, administration
> (users, categories, organizations etc).
>
> If I ask the following question how would you respond?
>
> Why Cake over Zend or vice versa.  I know this is a loaded question and one
> that has probably been asked, buthere is another shot at it.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: How to add ck finder functionality in cakephp 1.3

2010-05-27 Thread #2Will
There are a couple of articles on this out there. Ckeditor dosn't come
with a filebrowser by default you have to set it up your self.

check these out:

http://www.google.com.au/search?q=cakephp+ckeditor&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

The fourth link down is paticulaly good!

Will

On May 27, 9:31 pm, us  wrote:
> Hi,
>
> I have tried adding ckfinder functionality in cakephp using following
> code but it does not show browse server button, any ideas?
> T
> $ckfinderPath="js/ckfinder/";
> 
>         var editor = CKEDITOR.replace('NewsFeature.content');
>         CKFinder.SetupCKEditor(editor,'') ;
> 
>
> Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Problems with admin routing in 1.3 stable

2010-05-18 Thread #2Will
Not sure if this helps, but im running 1.3 stable with admin routing
and its working ok, so it might be something else going wrong.

i have:

Configure::write('Routing.prefixes', array('admin'));

in config and nothing about admin in routes and no changes to the form
action parameters in the admin area.



On May 18, 7:24 pm, Mike  wrote:
> I've been developing a web app with 1.3RC2, which I've just migrated
> to 1.3 stable. I've completed the migration guide but am having a few
> problems with admin routing:
>
> I have the following line in my core.php config file:
>
>         Configure::write('Routing.prefixes', array('admin'));
>
> 1. I've had to add the following lines to my routes.php as this no
> longer seems to be done automatically:
>
>         Router::connect("/admin/:controller", array('action' => 'index',
> 'prefix' => 'admin', 'admin' => true));
>         Router::connect("/admin/:controller/:action/*", array('prefix' =>
> 'admin', 'admin' => true));
>
> 2. I've had to change all my forms to include an explicit URL
> parameter.
>
>         For example $form->create('Category') will now have an action
> attribute of /categories/add, whereas before it was /admin/categories/
> add. So I now have to do $form->create('Category',array('url'=>'/admin/
> users/add'))
>
> So by completing the above steps I can fix these problems but it seems
> there's been a bug introduced as this was working automatically before
> and no longer does...
>
> Any ideas?
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Design Props

2010-05-10 Thread #2Will
http://webdesignledger.com/inspiration/55-inspiring-examples-of-slideshows-in-web-design

Cake featuring in a design gallery.  nice.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Plugins in 1.3

2010-04-29 Thread #2Will
ta for getting back to me.

1. ok, ta.  i missed that bit of migrations.
2. if i try to goto the page the javascript is trying to get, i get a
can't find controller error:

localhost/status/google_analytics/visits/

=>

 Error:  GoogleAnalyticsController could not be found.

Error: Create the class GoogleAnalyticsController below in file: app/
controllers/google_analytics_controller.php




So its not realising i have a plugin called status?  This happens if
with my settings left in routes or cleared out competely (none of them
refer to status)

any more ideas?


On Apr 29, 7:46 pm, Sam Sherlock  wrote:
> 1) with plugins in 1.3 you have to rename the folder
>
> vendors => webroot.  see the migration guide
>
> 2) not sure - what do the logs show?  might be routes. might be that your
> using some code that has been depreciated in 1.3
>
> - S
>
> On 29 April 2010 09:35, #2Will  wrote:
>
>
>
> > Hi,
>
> > Do plugins in cake1.3 need to be configured like it shows in the new
> > bootstrap file even if they are in the standard /app/plugins folder?
>
> > My $html->css links no longer find the files stored in the /app/
> > plugins/status/vendors/css folder.
>
> > also, this:
>
> > $.get("/status/google_analytics//" + $("# > echo $key ?>-span").val(), function(data) {
> >                        $("#").html(data);
> >                });
>
> > creates some sort of wierd redirect blank screen after flashing up
> > something momentarily.  i think because it can't find the file in that
> > path.
>
> > This all worked tickedy boo  in 1.2.6 yesterday. so i guess is
> > something im missing in the upgrade to 1.3
>
> > Thanks!
>
> > Will
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Plugins in 1.3

2010-04-29 Thread #2Will
Hi,

Do plugins in cake1.3 need to be configured like it shows in the new
bootstrap file even if they are in the standard /app/plugins folder?

My $html->css links no longer find the files stored in the /app/
plugins/status/vendors/css folder.


also, this:

$.get("/status/google_analytics//" + $("#-span").val(), function(data) {
$("#").html(data);
});

creates some sort of wierd redirect blank screen after flashing up
something momentarily.  i think because it can't find the file in that
path.

This all worked tickedy boo  in 1.2.6 yesterday. so i guess is
something im missing in the upgrade to 1.3

Thanks!

Will

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Different time outs for different Session variabes.

2010-04-21 Thread #2Will
Hello.

Is it possible to have different timeouts for different session
variables in cake?  I have a long session set in config.php so that
the admin area doesn't time out too quick. But i want variables
storing google tracking codes to time out on closing the window.

Thanks for any help.

Will

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread #2Will
coda. dosn't prompt you for cake functions etc but the ftp publishing,
terminal integration, svn  etc is ace. its just all very easy.

On Apr 20, 1:38 pm, morficus  wrote:
> Same here. I'm using Aptana Studio as well.
>
> I love that I can have it SFTP into my server and to dev locally (you
> can also choose to mount a WebDav)
>
> On Apr 19, 9:56 am, Renato de Freitas Freire 
> wrote:
>
>
>
> > im using aptana studio...
> > really good... based on eclipse..
>
> > --
> > Renato de Freitas Freire
> > ren...@morfer.org
>
> > On Mon, Apr 19, 2010 at 3:42 AM, Martin Westin
> > wrote:
>
> > > No ide, just Textmate for me.
>
> > > On Apr 19, 6:14 am, Bryan Lim  wrote:
> > > > Hi all,
>
> > > > mac users, which ide are you using to develop cakephp? to compile and
> > > > to debug?
>
> > > > I search the group here and realised this discussion is dated back to
> > > > 2009. So, I want to know if there's any changes?
>
> > > > thanks,
> > > > Bryan
>
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers
> > > with their CakePHP related questions.
>
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > "CakePHP" group.
> > > > To post to this group, send email to cake-php@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > cake-php+unsubscr...@googlegroups.com > > >  om>For more options, visit this group athttp://
> > > groups.google.com/group/cake-php?hl=en
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> > > with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups
> > > "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com > >  om>For more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: setting habtm checkbox options class name

2010-04-12 Thread #2Will
> echo $form->input('User', array('multiple'=>'checkbox', 'label'=>'',
> 'class' => 'Whatever'));

Hi, Thanks for replying.

That sets all of the checkboxes to the same class though.  what if i
want to give the checkboxes for administrators an admin class,
moderators get a mod class, authors get a author class etc

Any ideas?

The second bit about list / find all - yep ok. that makes sense. i
don't think there is going to be a way to pass that logic to the view
unfortunatly.

Thanks

Will

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


setting habtm checkbox options class name

2010-04-11 Thread #2Will
Hi bakers

I'm creating a habtm list of checkboxes like this:

echo $form->input('User', array('multiple'=>'checkbox', 'label'=>''));

which works brilliantly.   Now i'd like to enhance it by adding a
class name to each input based on the user group.  Is that possible
whilst still using the automagical method?  maybe somthing along the
lines of 'class' => 'User.group' ?

I'd probably also like to have the labels read

Jo Blogs (j...@blogsunited.com)

as well, is that best handled by manualy creating the list in the
controller to make the label like that? even if the bit in brackets is
a bit grey? its slightly viewish for that, but i can't see how else to
do it.

 Thanks

Will

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: Ckeditor + CkFinder How to

2010-03-23 Thread #2Will
Hi Rafael

Ive done something similar with corefive's  open source filemanager.

http://www.asecondsystem.com/2009/09/14/integrating-ck-editor-with-cakephp/
http://www.asecondsystem.com/2010/01/19/integrating-a-file-browser-into-ckeditor-cakephp/

It all worked out quite simple once the pieces have been put
together.

Will



On Mar 23, 2:54 pm, Rafael Gomes  wrote:
> Well guys,
>
> I was trying many hours how to configure this two apps on cake.
>
> Let's my explanation.
>
> If don't you know about then go to 
> :http://ckeditor.com/andhttp://ckfinder.com/
>
> Let's go.
>
> 1 - First you have to download the ckeditor and ckfinder.
>
> 2 - Unzip then on webroot
>
> like this:
>
> webroot
>     => js
>     => ckfinder
>     => ckeditor
>
> 3 - go to your controller that you wanna activate and write on the
> class, out of the method.
> var $helpers = array('Html', 'Form', 'Javascript');  - > this enables
> the helpers
>
> 4 - If you put on the webroot, just past this on your view and you
> have to name an id of a textare to 'editor';
>
> codeBlock("window.onload = function()
> {
>         CKEDITOR.replace( 'editor',
>         {
>                 filebrowserBrowseUrl : 
> '".$html->url('/ckfinder/ckfinder.html')."',
>                 filebrowserImageBrowseUrl : 
> '".$html->url('/ckfinder/ckfinder.html?
> type=Images')."',
>                 filebrowserFlashBrowseUrl : 
> '".$html->url('/ckfinder/ckfinder.html?
> type=Flash')."',
>                 filebrowserUploadUrl : 
> '".$html->url('/ckfinder/core/connector/php/
> connector.php?command=QuickUpload&type=Files¤tFolder=/upload/
> image/')."',
>                 filebrowserImageUploadUrl : 
> '".$html->url('/ckfinder/core/connector/
> php/connector.php?command=QuickUpload&type=Images¤tFolder=/
> upload/flash/')."',
>                 filebrowserFlashUploadUrl : 
> '".$html->url('/ckfinder/core/connector/
> php/connector.php?command=QuickUpload&type=Flash')."',
>                 filebrowserWindowWidth : '1000',
>                 filebrowserWindowHeight : '700'
>         }
>         );
>
> }", array('inline' => false)); ?>
>
> This will activate you ckeditor and almost ckfinder.
>
> but you have to put the textare like I said. something like this.
> input('Model.field', array('type' => 'textarea',
> 'id' => 'editor', 'label' => 'Tex:', 'value' => '')); ?>
>
> 5 - put this on your config.php inside the ckdinder directory --->
> this break the security
> function CheckAuthentication()
> {
>          return true;
>
> }
>
> If anyone have the right way to do that, please send. But this works.
>
> 6 - modify your urlBase on your config.php on your ckfinder directory
> $baseUrl = '/website/app/webroot/upload/';
> This set the directory of upload to webroot
>
> Make sure that you have permission on the directory.
>
> That's it ... any doubts just ask :)
>
> I'm learning too...and this was hard to me..
>
> Ahhh.. sorry about my english :)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


  1   2   >