Element caching using memcache

2010-07-25 Thread DragonI
Are there any plans for an option to enable element caching via
memcache?

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: Memcached

2010-07-10 Thread DragonI
Checkout memcached monitoring tool created by Harun Yayli -
http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/

You'll have to change $MEMCACHE_SERVERS[] = 'mymemcache-server1:11211'
to use your server settings

On Jul 9, 10:05 pm, Hugo M  wrote:
> I've configured memcached as caching system in CakePHP, how can I test it?
> Because I tried to get contents from the keys I put on the cache and the
> telnet console returns nothing. But the cache seems to be working ok. I put
> in the configuration prefix = '' and I search the keys in this way:
>
> get MYKEY_expires

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


New CakePHP, CodeIgniter, Zend Framework and Ruby on Rails Benchmark

2008-07-01 Thread DragonI

Ekerete of AVNet Labs has performed "PHP framework comparison
benchmarks" http://www.avnetlabs.com/php/php-framework-comparison-benchmarks.

Cake performance - request per second aren't pretty. CakePHP
1.2.0.7125 rc1 was used! debug set to 0 - file caching is used.

Anyway, read for yourself
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Twitter Component

2008-04-17 Thread DragonI

Unfortunately upgrading to 6679 didn't work for me. I get the same
error ;(

BUT Siegfried's suggestion did work

uses('xml');
App::import('Core', array('HttpSocket'));



On Apr 17, 2:16 pm, strangy <[EMAIL PROTECTED]> wrote:
> I'm glad you manage to get it working.
> I've updated my cake installation to the latest revision (6679). I use
> this repositoryhttps://svn.cakephp.org/repo/branches/1.2.x.x. Then I tried my 
> twitter
> component and it worked without any code modifications.
>
> I really don't know why it is not working for you guys, sorry. I only
> know that I had problems when I used trunk. Specifically I had
> problems with the reverse routing.
> When I switched to the 1.2.x.x branch everything started to work
> normally.
>
> Oh and thank you about the bug info.
>
> On Apr 17, 6:32 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]>
> wrote:
>
> > 2008/4/17, Siegfried Hirsch <[EMAIL PROTECTED]>:
>
> > > I have tried the new version and I still get also the
> > >  error: Class 'AppHelper' not found
>
> > I was able to get around the errors by doing the following at the
> > start of the file
>
> > uses('xml');
> > App::import('Core', array('HttpSocket'));
>
> > works now for me.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Twitter Component

2008-04-17 Thread DragonI

Thanks strangy,

I'll try the new version

On Apr 17, 4:00 am, strangy <[EMAIL PROTECTED]> wrote:
> Well, I'm using the 1.2.x.x branch not the nightly.
> And maybe I written it wrongly, because English is not my primary
> language, but for the basic/Basic stuff I meant to say that I changed
> from basic to Basic.
>
> If you don't have git you can just copy it from 
> herehttp://gitorious.org/projects/cakephp-twitter-cpomponent/repos/mainli...
>
> I relly don't know why are you getting the AppHelper not found class.
> In the component I'm not using any helper.
> I will try tonight, when I get back from work, with the nighly build
> of cake and see why it does not work.
>
> Enjoy!
>
> On Apr 17, 1:34 am, DragonI <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm getting Class 'AppHelper' not found in D:\webApps\cakePHP
> > \cake_1.2.x.x_16.04.2008\cake\libs\view\helpers\xml.php on line 37
>
> > I've applied fixes suggested via bakery & here; removing space from
> > user_show and changing Basic to basic in __getAuthHeader.
>
> > Sorry, I don't have git. I'm using latest nightly cake build with
> > PHP5. Any suggestions?
>
> > On Apr 16, 5:42 pm, strangy <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > As I said today I found a bug in the user_show function.
> > > Did you try any other function that requires authentication.
>
> > > As for git, you clone a project with the following command
> > > git clone git://gitorious.org/cakephp-twitter-cpomponent/mainline.git
> > > twitter_component
>
> > > On Apr 16, 11:01 pm, mmayes <[EMAIL PROTECTED]> wrote:
>
> > > > Hey, thanks for the response!
>
> > > > Basically, I've copied your component class, set my login info, and
> > > > can pull non authenticated stuff out no problem, but when I just try
> > > > to do something like this in my controller:
>
> > > > $test = $this->Twitter->user_show('username');
> > > > $this->set('test', $test);
>
> > > > My view prints out an empty array as $test, along with the XML error
> > > > above. It's gotta be an authentication problem, and I think if I could
> > > > just have a clear example of a working instance, that'd do it.
> > > > Unfortunately, I have no idea how to use git. Do you think you could
> > > > provide me with some text?
>
> > > > Cheers,
> > > > Matt
>
> > > > On Apr 16, 12:33 pm, strangy <[EMAIL PROTECTED]> wrote:> Hello,
> > > > > I wrote the twitter component and I tested most of the functions and
> > > > > they worked in my tests.
> > > > > During development I had problems with authentication because in the
> > > > > __getAuthHeader function I've used method => 'basic' instead
> > > > > of method => 'Basic'. After I fixed that authentication worked.
>
> > > > > Today I found one bug in the user_show function. The url had one space
> > > > > at the beginning.
> > > > > You can fetch the code by cloning the git repository. The repository
> > > > > url is git://gitorious.org/cakephp-twitter-cpomponent/mainline.git
>
> > > > > I've  never got the error you are reporting.
> > > > > Can you provide some more info about the error. Maybe you are missing
> > > > > something.
>
> > > > > You can see how I use the component in the code of my new blog that
> > > > > will replace my rails one that is online now.
> > > > > The code is also on gitorious and you can clone it form
> > > > > git://gitorious.org/munitic-com-hr/mainline.git
>
> > > > > P.S.
> > > > > You will not be able to run the blog app because there are some files
> > > > > missing like database.php that I didn't include for obvious reasons :)
>
> > > > > Enjoy!
> > > > > On Apr 16, 6:48 pm, mmayes <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi all,
>
> > > > > > I've been trying to get the Twitter component working under Cake 1.2
> > > > > > beta. Whenever I attempt a request that requires authentication, I 
> > > > > > get
> > > > > > the error:
>
> > > > > > Notice (1024): XML cannot be read [CORE/cake/libs/xml.php, line 748]
>
> > > > > > My username and password are set correctly, and when I access the 
> > > > > > xml
> > > > > > page and enter them into the HTTP challenge, it works. But I cannot
> > > > > > get the component to work other than with methods that do not 
> > > > > > require
> > > > > > authentication.
>
> > > > > > Anybody have any tips? The component I'm referring to it 
> > > > > > here:http://bakery.cakephp.org/articles/view/twitter-component
>
> > > > > > Cheers,
> > > > > > Matt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Twitter Component

2008-04-16 Thread DragonI

Hi,

I'm getting Class 'AppHelper' not found in D:\webApps\cakePHP
\cake_1.2.x.x_16.04.2008\cake\libs\view\helpers\xml.php on line 37

I've applied fixes suggested via bakery & here; removing space from
user_show and changing Basic to basic in __getAuthHeader.

Sorry, I don't have git. I'm using latest nightly cake build with
PHP5. Any suggestions?


On Apr 16, 5:42 pm, strangy <[EMAIL PROTECTED]> wrote:
> Hello,
>
> As I said today I found a bug in the user_show function.
> Did you try any other function that requires authentication.
>
> As for git, you clone a project with the following command
> git clone git://gitorious.org/cakephp-twitter-cpomponent/mainline.git
> twitter_component
>
> On Apr 16, 11:01 pm, mmayes <[EMAIL PROTECTED]> wrote:
>
> > Hey, thanks for the response!
>
> > Basically, I've copied your component class, set my login info, and
> > can pull non authenticated stuff out no problem, but when I just try
> > to do something like this in my controller:
>
> > $test = $this->Twitter->user_show('username');
> > $this->set('test', $test);
>
> > My view prints out an empty array as $test, along with the XML error
> > above. It's gotta be an authentication problem, and I think if I could
> > just have a clear example of a working instance, that'd do it.
> > Unfortunately, I have no idea how to use git. Do you think you could
> > provide me with some text?
>
> > Cheers,
> > Matt
>
> > On Apr 16, 12:33 pm, strangy <[EMAIL PROTECTED]> wrote:> Hello,
> > > I wrote the twitter component and I tested most of the functions and
> > > they worked in my tests.
> > > During development I had problems with authentication because in the
> > > __getAuthHeader function I've used method => 'basic' instead
> > > of method => 'Basic'. After I fixed that authentication worked.
>
> > > Today I found one bug in the user_show function. The url had one space
> > > at the beginning.
> > > You can fetch the code by cloning the git repository. The repository
> > > url is git://gitorious.org/cakephp-twitter-cpomponent/mainline.git
>
> > > I've  never got the error you are reporting.
> > > Can you provide some more info about the error. Maybe you are missing
> > > something.
>
> > > You can see how I use the component in the code of my new blog that
> > > will replace my rails one that is online now.
> > > The code is also on gitorious and you can clone it form
> > > git://gitorious.org/munitic-com-hr/mainline.git
>
> > > P.S.
> > > You will not be able to run the blog app because there are some files
> > > missing like database.php that I didn't include for obvious reasons :)
>
> > > Enjoy!
> > > On Apr 16, 6:48 pm, mmayes <[EMAIL PROTECTED]> wrote:
>
> > > > Hi all,
>
> > > > I've been trying to get the Twitter component working under Cake 1.2
> > > > beta. Whenever I attempt a request that requires authentication, I get
> > > > the error:
>
> > > > Notice (1024): XML cannot be read [CORE/cake/libs/xml.php, line 748]
>
> > > > My username and password are set correctly, and when I access the xml
> > > > page and enter them into the HTTP challenge, it works. But I cannot
> > > > get the component to work other than with methods that do not require
> > > > authentication.
>
> > > > Anybody have any tips? The component I'm referring to it 
> > > > here:http://bakery.cakephp.org/articles/view/twitter-component
>
> > > > Cheers,
> > > > Matt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: organizing controlleres into subdirectories

2008-04-09 Thread DragonI

Coolio!

But does anyone know what the overhead/performance is like?

On Apr 9, 11:35 am, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
> > > You no longer have to set the paths to models and controllers which
> > > are in subfolders of app/models resp. app/controllers, cake
> > > automatically finds them.
>
> > Daniel,
> >  I was wondering if this is just a cakephp 1.2 only feature?
>
> Yes, it is a feature introduced in 1.2.
>
> --
> Daniel Hofstetterhttp://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CookBook PDF

2008-03-08 Thread DragonI

I agree with Woodsman. But it's a nice to have. I think the goal
should be to complete the "manual" 1st.

Chris using your logic, what's the use of the 2 books coming out if
1.2 isn't finalized yet?


On Mar 8, 11:04 pm, the_woodsman <[EMAIL PROTECTED]> wrote:
> I think it would be great if the big name contributors to the group
> welcomed ideas more openly!
> I also think that a lot of people would benefit from at least an
> easily printable form of the book and api - and perhaps the cake devs
> don't entirely disagree, seeing as the new cook book has options for
> displaying the entire manual in one page.
>
> Another 'living and breathing document', the wikipedia, thinks people
> find a printable version useful too.
>
> Asking for a DF version of the manual is not asking for the moon on a
> stick!
>
> Just my 0.02, obviously,,,
>
> On Mar 9, 1:01 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On Sat, Mar 8, 2008 at 6:14 PM, Mech7 <[EMAIL PROTECTED]> wrote:
>
> > >  The API in pdf would be nice too :p
>
> > A pony to ride would be nice as well, but that's not happening either.
>
> > The API is likely to change before 1.2 is labeled as being final, so I
> > would say providing a PDF of it is a waste.
>
> > The Cookbook is a "living and breathing document", so again, creating
> > a PDF of that would be a waste of time as well.
>
> > Just my opinion.
>
> > --
> > Chris Hartjes
> > Internet Loudmouth
> > Motto for 2008: "Moving from herding elephants to handling snakes..."
> > @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP v1.2 stable enough for production?

2008-03-06 Thread DragonI

Also check open bugs! https://trac.cakephp.org/report/1

On Mar 6, 7:44 am, Greg Baker <[EMAIL PROTECTED]> wrote:
> thanks for the tips.  sorry to rehash an already answered question.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: error of memory???

2008-03-03 Thread DragonI

Hey Cristian,

I'd loved to see/hear more about your performance tricks. I've been
using "$uses" and now to hear that it bytes in terms of performance
really sucks. I guest "automagic" comes at a price.



On Feb 23, 1:59 pm, Cristian Vrabie <[EMAIL PROTECTED]> wrote:
> Well Iusemore tricks but I think the most important is that when I
> have a controller with many models I don't just pass them in the $uses
> var. I do this because the controller would load all models, and it's
> allmost sure you won't need all of them in all the actions. Instead i
> have a function in app_controller called getMyModel( $modelName ). This
> first checks to see if the model is not loaded, and if is not it 
> callsApp::import('Model',$modelName), then it instantiates the model, then it
> returns a refference to the model. So instead of
> $this->ModelName->find(..), i to $this->getMyModel->find(..). This way,
> if i onlyusea few models in an actions, only those will load.(this
> tries to be a rudimentary lazy loading of models).
> Another trick is that i define only as few associations as possible (the
> critical ones). Instead I define them in another variable of the model
> (something like $__hasMany = array( 'myassoc' => ), and i have a
> function in app_model that lets me do quick binds at run time, like:
> $model->doMyBind( 'myassoc' ); I could do the same thing by describing
> the association with $model->bindModel but this is faster, and i don't
> have to define the asociation more than one time. Plus, if i think that
> i'llusethat association a lot in a certain context, i user the
> "permanent" option of bindModel.
> I have more of these "tricks", and I'm not sure using them is such a
> good practice. I never investigated if they don't provoke other effects
> that would do more bad than good. However, they seem to work so far, and
> I'm happy with them.
>
> ooo.inbox wrote:
> > Hello Christian...
> > So interesting...
> > Btw, i got the memory problem too using CakePHP.
>
> > How do you manage it under 8M?
> > What things that you do...?
>
> > I hope you would to explain me.. thanks ;)
>
> > On Feb 19, 4:31 pm, "[EMAIL PROTECTED]"
> > <[EMAIL PROTECTED]> wrote:
>
> >> I've noticed that sometimes the out of memory is generated by some
> >> infinite recursion loops you create by mistake. It's quite easy to do
> >> so.
> >> And about the increasing of the php script memory, i tried to avoid it
> >> by carefully coding and trying as much to lazy load the models,
> >> components and other stuff that I need. So far i managed to keep it
> >> under 8M even in large projects.
>
> >> On Feb 19, 2:56 am, "sixs" <[EMAIL PROTECTED]> wrote:> HI,
>
> >>> I copied the index view and the index in controllers. I have a master and 
> >>> a detail and I deleted some fields in the master. It displayed ok an this 
> >>> error occurred when I clicked the list of the details.
> >>> =
> >>> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
> >>> allocate 276481 bytes) in 
> >>> C:\VertrigoServ\www\usa\views\layouts\default.ctp on line 55
> >>> ===
> >>> Thanks for any help
> >>> Jim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Model primarykey

2008-02-25 Thread DragonI

I'm with you, we have some production tables that use compound keys.
The app is like 5 years old! Oh well, if we ever convert this over,
there's this small thing called SQL we'll be using ;)

Anyway, it's good to find this out now.

On Feb 13, 9:58 am, avairet <[EMAIL PROTECTED]> wrote:
> I have asked again my SQL gurus about this "hack" using in Cake. Their
> answer is :
> "adding an Id field is possible, but it will result to a sensible
> performance decrease (I/O bound effect)."
>
> Hope this help to improve Cake capacities for the future releases...
>
> Avairet
>
> On 13 fév, 14:25, avairet <[EMAIL PROTECTED]> wrote:
>
> > Hello!
>
> > I've read this discussion and asked question about it to an older DBA,
> > master of Modelisation and SQL theory since 30 years.
> > He says there are a lot of stupidities and many authors need studying
> > Modelisation and Theory before posting...
> > Only one thing: a Primary Key is not equal to Unique not null index!
>
> > I'm agree with you : Cake doesn't a whole lot!
> > But it will better if it respects some basical rules, like compound
> > PK... isn't it?
>
> > So, temporarily, I will add "a dump auto incrementing ID" to my
> > relational tables!
>
> > Avairet
>
> > On 12 fév, 18:19, Baz <[EMAIL PROTECTED]> wrote:
>
> > > Here are some interesting discussions:
>
> > >http://groups.google.com/group/cake-php/browse_thread/thread/4a3f44f8..
>
> > > Bottom line (from what I gather), it was done so to make Cake work easier.
>
> > > I still don't think a lot of people appreciate the fact that Cake does a
> > > whole lot! So hey, if I need to add a dump auto incrementing ID, that's 
> > > what
> > > I'm gonna do.
>
> > > On Feb 12, 2008 10:48 AM, avairet <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > I've the same question.
> > > > Cake will never support compound or multiple primary keys?? Why?
> > > > How manage this issue?
>
> > > > Thanks by advance
>
> > > > Avairet
>
> > > > On 12 fév, 09:44, "Matias Lespiau" <[EMAIL PROTECTED]> wrote:
> > > > > On Feb 12, 2008 3:56 AM, adammc84 <[EMAIL PROTECTED]> wrote:
>
> > > > > > if the MySql database table my model is 'modeled' from has a primary
> > > > > > key that is user_id,posts_id how do i configure that in cake model 
> > > > > > to
> > > > > > use a dual primary key ?
>
> > > > > Hi adammc84,
>
> > > > > Cake does not support multiple primary keys.
>
> > > > > --
> > > > > Matias Lespiauhttp://www.gignus.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: behavior acts_as_list

2008-02-11 Thread DragonI

Baz,

You've hit the nail on the head from both ends :) You should post this
on your blog.

The result will be novices/newbies will just say screw it and move on
to another more friendly community. The seasoned cakers will get
frustrated and stop helping/mentoring. This is absolutely lose lose
situation.

The lessons I've learned over time is that no matter how good your
product is, if no one can use it then your product fails. Just look at
all of the database companies who have come and gone. My corporate
friends are MS SQL server freaks who love it because MS made it easier
to use/admin then it's father - Sybase. So look at where Sybase is
today compared to MS.

On Feb 11, 5:56 pm, Baz <[EMAIL PROTECTED]> wrote:
> Please excuse my babbling, but this is a problem we always have on this
> mailing list (and others I've been a part of) and I'm not sure how we would
> go about resolving issues such as these:
>
>1. Novice asks a question
>2. Member flames novice for not reading/searching, etc.
>3. Member points to some previous post that pseudo helps
>4. Novice doesn't understand and asks again.
>5. Everyone gets mad, no one gets helped.
>
> Is there anyway we can avoid issues like these? I've been on both sides of
> the fence and it's not fun on either one. Maybe with a few suggestions we
> can avoid these in the future? (Please note these are NOT *directly* related
> to this post)
>
> Novices:
>
>- Please do a lil' bit of footwork. That is one thing that annoys
>members a lot. No one likes to help someone who doesn't want to help
>themselves.
>- Be polite with your questions.
>- Give examples (links, paste bins) of what you've tried and why it
>didn't work.
>- Give proper errors or descriptions of problems. "It doesn't work"
>doesn't mean much to anyone other than you.
>- Trust members when they point you somewhere and take some time to
>read through suggestions before reposting that it doesn't work.
>
> Members:
>
>- This is a big one. Please try to understand that CakePHP is very
>intimidating to novices and sometimes people need *exact* examples.
>Not "hunt through this post with 12 different replies and try to pluck out
>something that may work for you"
>- Along the lines of the above point, try to differentiate when you're
>pointing to an *exact* solution and *reference *material. Then the
>person knows what to expect.
>- Try to understand that you guys live and breath this thing. Some
>things just aren't clear to some people. It took me months before I could
>figure out 1/4 of the stuff that the $options array does in the $form 
> helper
>by reading through the api.
>- Try to be patient. I know it comes easy to you, but people wouldn't
>be asking if the answer was obvious.
>- Try to understand a novice's question first before pointing them to
>some general solution.
>- Sometimes an explanation is worth a lot more than a link to an old
>thread/post/etc. Code isn't as clear to others as it is to you.
>- Try not to look down on the ignorant. You, of all people, should
>appreciate the complexities of CakePHP.
>
> I must say that I've been guilty of all of the above on some occasion or the
> other.
>
> Before you ask/answer a question, try to look at it from the other person's
> perspective before you hit the send button.
>
> Question: Why don't we have a rules and regulations text (one the homepage
> of the group perhaps?) that states policies on question asking such as
> researching, reading, duplicates, etc?
>
> Just my 2 cents
> --
> Baz L
> Web Development 2.0http://WebDevelopment2.com/
>
> On Feb 11, 2008 4:23 PM, sbeam <[EMAIL PROTECTED]> wrote:
>
>
>
> > look, thanks for the finger wagging and challenge to a sword fight but
> > I'll pass. I did find the thread and the code you linked to a long
> > time ago. I rejected it because the comments mentioned MPTT, which
> > again I don't need, plus it is totally incomprehensible to me. I tried
> > the grigri stuff too but it didn't quite work.
>
> > In any case I did also find this which is almost working and is more
> > clear:
> >http://bin.cakephp.org/saved/21838
>
> > I am new to Cake and expected this to be in Bakery, so when it wasn't
> > I thought I would ask if there was any progress I was missing, besides
> > these heaps of code in pastebin which I didn't understand. Sorry if my
> > post disturbed you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2: Pagination and Manual Query?, Can this be done? If so , how?

2008-02-06 Thread DragonI

You're right Baz,

Chris - I owe you Mad Props :)


On Feb 6, 1:43 pm, Baz <[EMAIL PROTECTED]> wrote:
> Actually, I think you mean Chris is the man. Then (by even further
> extension) Nate would be the main, cuz Chris bugged him on IM for help with
> this.
>
> But, I know what you mean. I've found these group posts time and time again,
> but they never really helped. Telling me you can Override something is one
> thing. But how am I supposed to know what goes into it? I guess the answer
> is that I'm supposed to go digging through the code.
>
> But a better answer would be something like:
>
> Override paginate() to return a model similar to find('all') and
> paginateCount() to return something like find('count')...
>
> But with that said, I looked through the API and it was just daunting.
> Chris' solution seems rather slim to me.
>
> So these are the questions I have for someone more knowledgeable:
>
>1. It seems that the paginate() function could consist of only a
>find('all') and pageCount() by find('count')?
>2. If so, what handles all the paging stuff?
>3. Or is this one of those magic things again where just overriding
>paginate() and pageCount() magically make stuff work?
>
> --
> Baz L
> Web Development 2.0http://WebDevelopment2.com/
>
> On Feb 6, 2008 12:17 PM, DragonI <[EMAIL PROTECTED]> wrote:
>
>
>
> > Baz, you're the MAN.
>
> > This is something I can work with :)
>
> > BTW, in all fairness to patcoll, it was better than him giving me
> > "RTFM" ;) which I actually wish I could instead of digging thru code.
>
> > And patcoll there is absolutely no offense meant. You did try to help.
> > So kudos to you. I know that I was a little opened end with my
> > question and not stating that I had searched for stuff. But typically,
> > I do do my best to try and find / work things out 1st before imposing.
>
> > On Feb 6, 12:11 pm, Baz <[EMAIL PROTECTED]> wrote:
> > > I feel your pain man. Every time I search on the same topic I get
> > generic
> > > responses like "Override the paginate function"
>
> > > Here seems to be an example:
> >http://www.littlehart.net/atthekeyboard/2007/12/11/cakephp-pagination...
>
> > > Haven't tested though. From the looks of it, you can replace the
> > > $this->findByName() with $this->query() (since they should return the
> > same
> > > structure) and also stick a count in ur statement to populate
> > paginateCount.
>
> > > See if it works.
> > > --
> > > Baz L
> > > Web Development 2.0http://WebDevelopment2.com/
>
> > > On Feb 6, 2008 10:41 AM, DragonI <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks patcoll BUT I've already searched and read all of the threads
> > > > that I could find. Maybe my terminology is wrong manual query vs
> > > > custom query.
>
> > > > 1st link - is NOT using $this->query, i.e. Simple query - mine is more
> > > > complex
>
> > > > SELECT Bookmark.id, Bookmark.name, Bookmark.url, Bookmark.modified,
> > > >User.id, User.username
> > > > FROM bookmarks as Bookmark, users as User
> > > > WHERE Bookmark.user_id = $user_id
> > > > LIMIT .
>
> > > > 2nd Link - was never answered - see Chad's posting
>
> > > > 3rd Link - read this but they all cover "Custom Query" using cake
> > > > $conditions.
>
> > > > On Feb 6, 11:09 am, patcoll <[EMAIL PROTECTED]> wrote:
> > > > > A search in this group helps:
>
> >http://groups.google.com/group/cake-php/browse_thread/thread/f990a459...
>
> >http://groups.google.com/group/cake-php/browse_thread/thread/d0cb3f77...
>
> > > > > For more tough issues:
>
> > > > >http://groups.google.com/group/cake-php/web/frequent-discussions
>
> > > > > On Feb 6, 10:28 am, DragonI <[EMAIL PROTECTED]> wrote:
>
> > > > > > I'm wondering if it's possible to use cake's pagination with a
> > manual
> > > > > > query ($this->query)?
>
> > > > > > I understand that I have to determine the offset and I have to get
> > the
> > > > > > total records myself. But I'm stumped because paginate is
> > expecting
> > > > > > the model name.
>
> > > > > > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2: Pagination and Manual Query?, Can this be done? If so , how?

2008-02-06 Thread DragonI

Baz, you're the MAN.

This is something I can work with :)

BTW, in all fairness to patcoll, it was better than him giving me
"RTFM" ;) which I actually wish I could instead of digging thru code.

And patcoll there is absolutely no offense meant. You did try to help.
So kudos to you. I know that I was a little opened end with my
question and not stating that I had searched for stuff. But typically,
I do do my best to try and find / work things out 1st before imposing.



On Feb 6, 12:11 pm, Baz <[EMAIL PROTECTED]> wrote:
> I feel your pain man. Every time I search on the same topic I get generic
> responses like "Override the paginate function"
>
> Here seems to be an 
> example:http://www.littlehart.net/atthekeyboard/2007/12/11/cakephp-pagination...
>
> Haven't tested though. From the looks of it, you can replace the
> $this->findByName() with $this->query() (since they should return the same
> structure) and also stick a count in ur statement to populate paginateCount.
>
> See if it works.
> --
> Baz L
> Web Development 2.0http://WebDevelopment2.com/
>
> On Feb 6, 2008 10:41 AM, DragonI <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks patcoll BUT I've already searched and read all of the threads
> > that I could find. Maybe my terminology is wrong manual query vs
> > custom query.
>
> > 1st link - is NOT using $this->query, i.e. Simple query - mine is more
> > complex
>
> > SELECT Bookmark.id, Bookmark.name, Bookmark.url, Bookmark.modified,
> >User.id, User.username
> > FROM bookmarks as Bookmark, users as User
> > WHERE Bookmark.user_id = $user_id
> > LIMIT .
>
> > 2nd Link - was never answered - see Chad's posting
>
> > 3rd Link - read this but they all cover "Custom Query" using cake
> > $conditions.
>
> > On Feb 6, 11:09 am, patcoll <[EMAIL PROTECTED]> wrote:
> > > A search in this group helps:
>
> > >http://groups.google.com/group/cake-php/browse_thread/thread/f990a459...
>
> > >http://groups.google.com/group/cake-php/browse_thread/thread/d0cb3f77...
>
> > > For more tough issues:
>
> > >http://groups.google.com/group/cake-php/web/frequent-discussions
>
> > > On Feb 6, 10:28 am, DragonI <[EMAIL PROTECTED]> wrote:
>
> > > > I'm wondering if it's possible to use cake's pagination with a manual
> > > > query ($this->query)?
>
> > > > I understand that I have to determine the offset and I have to get the
> > > > total records myself. But I'm stumped because paginate is expecting
> > > > the model name.
>
> > > > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2: Pagination and Manual Query?, Can this be done? If so , how?

2008-02-06 Thread DragonI

Thanks patcoll BUT I've already searched and read all of the threads
that I could find. Maybe my terminology is wrong manual query vs
custom query.

1st link - is NOT using $this->query, i.e. Simple query - mine is more
complex

SELECT Bookmark.id, Bookmark.name, Bookmark.url, Bookmark.modified,
User.id, User.username
FROM bookmarks as Bookmark, users as User
WHERE Bookmark.user_id = $user_id
LIMIT .

2nd Link - was never answered - see Chad's posting

3rd Link - read this but they all cover "Custom Query" using cake
$conditions.



On Feb 6, 11:09 am, patcoll <[EMAIL PROTECTED]> wrote:
> A search in this group helps:
>
> http://groups.google.com/group/cake-php/browse_thread/thread/f990a459...
>
> http://groups.google.com/group/cake-php/browse_thread/thread/d0cb3f77...
>
> For more tough issues:
>
> http://groups.google.com/group/cake-php/web/frequent-discussions
>
> On Feb 6, 10:28 am, DragonI <[EMAIL PROTECTED]> wrote:
>
> > I'm wondering if it's possible to use cake's pagination with a manual
> > query ($this->query)?
>
> > I understand that I have to determine the offset and I have to get the
> > total records myself. But I'm stumped because paginate is expecting
> > the model name.
>
> > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



1.2: Pagination and Manual Query?, Can this be done? If so , how?

2008-02-06 Thread DragonI

I'm wondering if it's possible to use cake's pagination with a manual
query ($this->query)?

I understand that I have to determine the offset and I have to get the
total records myself. But I'm stumped because paginate is expecting
the model name.

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



Re: CakePHP guide

2008-02-04 Thread DragonI

Great work John!!

Really forward to reading this.

On Feb 4, 8:41 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Feb 4, 2008, at 6:23 PM, Keith wrote:
>
>
>
>
>
> > On Feb 4, 11:48 am, nate <[EMAIL PROTECTED]> wrote:
> >> John gets little to no help from outside contributors, and the only
> >> way the
> >> community has seen fit to contribute is with scattered, one-off
> >> tutorials at various levels of currency, completeness and accuracy.
>
> > I agree with Nate here.  I put things on my site and document them as
> > I find incomplete tutorials, inaccuracies, or things I flat out
> > couldn't find suitable answers for on the internet.  The file upload
> > in 1.2 is a great case in point.  The documentation that exists covers
> > solutions to niche problems (ajax uploading, image manipulation after
> > upload, etc.).
>
> > I think if there was a roadmap for the documentation that people could
> > "sign up" for and create documentation that subject it'd go much more
> > smoothly.  However, I don't see any great organizational framework to
> > join up with other than a general call to help contribute.  I think
> > more people would step forward if they knew what topics were desired.
>
> http://cakeforge.org/plugins/wiki/index.php?id=53&type=g
>
> -- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP weekly summaries

2008-01-04 Thread DragonI

I concur with Brian! Great work Christian

On Jan 4, 5:41 pm, [EMAIL PROTECTED] wrote:
> your english is great. I understood every word.
>
> : )
>
> Any information on Cake is great, both for the community and for
> adoption of the framework.
>
> I'd say keep it up.
>
> brian fidler
>
> Quoting Jippi <[EMAIL PROTECTED]>:
>
>
>
> > Hello,
> > As some of you might know, Zend has a developer zoner, where there
> > each week is posted a small digest on whats new and interesting in the
> > PHP world.
> > I was thinking to something like that aswell, just for CakePHP.
>
> > I have made a test post at my blog,
> >http://www.cakephp.nu/cakephp-weekly-summaries-issue-1
> > - mostly to get some feedback on the idea :)  if its turns out to be a
> > popular idea, I will create these small digest once or twice a week to
> > keep people up to date with both trac, cakephp, mailing list and news
> > related to our lovely CakePHP world.
>
> > My english isnt super good, but hopefully that will improve once I get
> > used to typing long texts in english on a regular basis :)
>
> > Please check it out -http://www.cakephp.nu/cakephp-weekly-summaries-issue-1
> > - and if possible, give some feedback I can use to improve the concept
> > (On blog comments) Thanks!
>
> > /Christian Winther
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Do you hardcode your menu links?

2007-12-04 Thread DragonI

I store menu and submenu links in a config file as an array which is
loaded and cached in beforeRender in app_controller. I have my own
menu helper which displays the menu in an element

$config['mainMenu'] = array(
1 => array(
'title' => 'Home',
'url' => '/',
'desc' => 'Home',
),
2 => array(
'title' => 'Search',
'url' => '/search/',
'desc' => 'Search',
), etc


On Dec 4, 4:52 pm, kristofer <[EMAIL PROTECTED]> wrote:
> I usually pull in an element to handle dynamic navigation.
>
> On Dec 4, 4:46 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote:
>
> > Hi there,
>
> > I've got a quite generic question... do you usually hardcode your menu
> > links [in your views] when developing something with cake, or do you
> > implement something like link management models or something? What's
> > the usual way here in your opinion?
>
> > Greetings
>
> > Arne
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Nightly builds?

2007-11-15 Thread DragonI

Thanks Gwoo ;)

On Nov 15, 3:08 am, Gwoo <[EMAIL PROTECTED]> wrote:
> We moved to a new server and there is an issue with the build script.
> We have to run it by hand right now, which we try to do on a regular
> basis. We are hoping to have the problem resolved shortly, but to be
> honest its not high on the priority list right now.
>
> Newbies should probably start with the stable code or at least a
> release before moving onto nightlies. If you are using the nightlies
> you should really consider just going all the way to svn anyway. Its
> much easier to stay up to date.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Nightly builds?

2007-11-14 Thread DragonI

Yeah, this is becoming a regular but unwanted feature. Basically, a
hit and miss. I wonder what absolute newbies think when they opening
up the zip/tar to find nothing but dead air! Not leaving a great
impression.

On Nov 13, 9:22 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > As in?
>
> how they are often 20 and 14 bytes respectively, eg, the archive is baulked!
>
> http://cakephp.org/downloads/index/nightly/1.2.x.x
>
> usually sorts itself out, and you can do an SVN update of the branch instead.
>
> jb
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett


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



Re: Nightly builds

2007-10-25 Thread DragonI

unfortunately, it's a known issue!

On Oct 25, 11:29 pm, DanielMedia <[EMAIL PROTECTED]> wrote:
> Is this the correct url for downloading nightly builds?
>
> http://cakephp.org/downloads/index/nightly/1.2.x.x
>
> When I download the ".gz" file its only 1kb in size and when I extract
> it, it just an empty folder.


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



Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-10-13 Thread DragonI

1.2.x.x_12.10.2007.tar.gz is also pouched!



On Sep 18, 10:11 pm, DragonI <[EMAIL PROTECTED]> wrote:
> Hi Samuel,
>
> Well, it's pouched again. So you can check for yourself ;)
>
> On Sep 18, 10:10 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
>
> > yea that's not the actual download, it's a page with links to it.
>
> > On 9/17/07, DragonI <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I just wanted to point out that thenightlybuild file,
> > > 1.2.x.x_17.09.2007.tar.gz 
> > > fromhttp://cakephp.org/downloads/index/nightly/1.2.x.x
> > > is only 20 bytes.
>
> > > Thanks!
>
> > --
> > (the old fart) the advice is free, the lack of crankiness will cost you
>
> > - its a fine line between a real question and an idiot
>
> >http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/


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



Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread DragonI

Hi Samuel,

Well, it's pouched again. So you can check for yourself ;)


On Sep 18, 10:10 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> yea that's not the actual download, it's a page with links to it.
>
> On 9/17/07, DragonI <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I just wanted to point out that the nightly build file,
> > 1.2.x.x_17.09.2007.tar.gz 
> > fromhttp://cakephp.org/downloads/index/nightly/1.2.x.x
> > is only 20 bytes.
>
> > Thanks!
>
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/


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



Re: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-18 Thread DragonI

Hey Adam,

Good One ;)

On Sep 18, 12:54 am, "Adam Royle" <[EMAIL PROTECTED]> wrote:
> The cakePHP team are very code-efficient. : )
>
> - Original Message -
> From: "DragonI" <[EMAIL PROTECTED]>
> To: "Cake PHP" 
> Sent: Tuesday, September 18, 2007 2:52 PM
> Subject: Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!
>
> > Hi,
>
> > I just wanted to point out that the nightly build file,
> > 1.2.x.x_17.09.2007.tar.gz from
> >http://cakephp.org/downloads/index/nightly/1.2.x.x
> > is only 20 bytes.
>
> > Thanks!


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



Nightly Build Problem: 1.2.x.x_17.09.2007.tar.gz is only 20 bytes!

2007-09-17 Thread DragonI

Hi,

I just wanted to point out that the nightly build file,
1.2.x.x_17.09.2007.tar.gz from 
http://cakephp.org/downloads/index/nightly/1.2.x.x
is only 20 bytes.

Thanks!


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



Re: problem with date() and $form->input() when type => date

2007-08-28 Thread DragonI

Here's something you should look at "ADOdb Date Time Library",
http://phplens.com/phpeverywhere/adodb_date_library.

"PHP native date functions use integer timestamps for computations.
Because of this, dates are restricted to the years 1901-2038 on Unix
and 1970-2038 on Windows due to integer overflow for dates beyond
those years. This library overcomes these limitations by replacing the
native function's signed integers (normally 32-bits) with PHP floating
point numbers (normally 64-bits)."

I used it for non-cake project and it works. You can use dates from
100 A.D. to 3000 A.D!



On Aug 28, 1:09 pm, ivancasta <[EMAIL PROTECTED]> wrote:
> i forgot say
> the warning only apperar when the birthday  stored is prior to 1970


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



The nightly build for 1.2 file problem

2007-08-07 Thread DragonI

Hi,

The nightly build file,  1.2.x.x_06.08.2007.tar.gz from
http://cakephp.org/downloads/index/nightly/1.2.x.x is only 45 bytes!

Where else can I snag the latest build?

Thanks


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



Re: Newbie 1.2: Using APC and memcache

2007-05-27 Thread DragonI

Thanks Chris,

I guess it's time to dig into the code

On May 27, 8:10 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 5/27/07, DragonI <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > Based on core.php, it seems that you can only use only one of the
> > caching engines. Can you use APC and memcache at the same time without
> > screwing things up? Reason is I want to load some of my stuff, i.e.
> > menus into shared memory via APC
>
> Of course you can...but you may have to write your own caching stuff
> for whatever engine you don't use in CakePHP.  I suspect you can only
> use the built-in caching methods for one engine at a time.
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


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



Newbie 1.2: Using APC and memcache

2007-05-26 Thread DragonI

Hi,

Based on core.php, it seems that you can only use only one of the
caching engines. Can you use APC and memcache at the same time without
screwing things up? Reason is I want to load some of my stuff, i.e.
menus into shared memory via APC

Thanks


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



Re: 1.2.0.5137alpha: form->textarea and validation doesn't work

2007-05-21 Thread DragonI

Hi Siegfried,

Thanks for helping. I guess I was so fixated with textarea (well I
assumed in was in there for a reason) that I missed looking for
type=textarea. Here is the working syntax anyone else who bumps into
my mistake:

$form->input('body',
array('type'=>'textarea', 'rows'=>'5',
'error' => array(
'minLength' => 'The body must have at least 2 
characters',
'maxLength' => 'The body must have no more than 
1000 characters'
)
));

Thanks again - Siegfried!

On May 21, 4:43 am, "Siegfried Hirsch" <[EMAIL PROTECTED]>
wrote:
> This is the way, we use it for a textarea field:
>
>  echo $form->input('body', array('label'=>'Description',
> 'type'=>'textarea', 'rows'=>'15'));
>
> Take a look at the input implementation again, there you find all the
> bells and whistles.
>
> Siegfried
>
> 2007/5/21, DragonI <[EMAIL PROTECTED]>:
>
>
>
> > Hi,
>
> > When I'm trying to use the textarea form helper with validation, it
> > doesn't work - all I get is my page displayed without the form fields
> > being displayed.
>
> > Model:
> > var $validate =
> > array(
> > 'title' =>
> > array (
> > 'minLength' => array( 'rule' => 
> > array('minLength', 2) ),
> > 'maxLength' => array( 'rule' => 
> > array('maxLength', 50) )
> > ),
> > 'body' => array(
> > 'minLength' => array( 'rule' => 
> > array('minLength', 2) ),
> > 'maxLength' => array( 'rule' => 
> > array('maxLength', 1000) )
> > )
> > );
>
> > View:
> > $form->textarea('body', array('cols'=>'40', 'rows'=>'10') )
>
> > But it works fine when I use form->input, i.e.
> > $form->input('body',
> > array('error' => array(
> > 'minLength' => 'The comment must have at least 2 
> > characters',
> > 'maxLength' => 'The comment must have no more than 1000 
> > characters'
> > )
> > ));
>
> > I checked the form helper code but there aren't any options for an
> > error array. Does anyone know of a workaround because I need to set
> > the cols and rows.
>
> > Thanks


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



Re: LOG_DEBUG doesnt work

2007-05-21 Thread DragonI

I have the same problem in 1.2.0.5146alpha. I even tried setting DEBUG
to 0. Same deal - message gets logged in error.log.


On May 21, 6:05 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Do you have a directory 'tmp/logs' in your application directory?
> If not create it.
>
> I did have the same problem.
>
> Grtz,
> Jos
>
> On May 21, 5:02 am, ivancasta <[EMAIL PROTECTED]> wrote:
>
> > hi, i dont know why LOG_DEBUG doesnt works,
> > log function always get all log like error and write in error.log
>
> > i have this in my controller
>
> > class MarcasController extends AppController {
>
> > var $name = 'Marcas';
>
> > var $helpers = array('Html', 'Form' );
>
> > function index() {
> > $this->Marca->recursive = 0;
> > $this->set('marcas', $this->paginate());
>
> > $this->log("log in the
> > debug.",LOG_DEBUG);
>
> > }
>
> > ...
>
> > thanks


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



1.2.0.5137alpha: form->textarea and validation doesn't work

2007-05-20 Thread DragonI

Hi,

When I'm trying to use the textarea form helper with validation, it
doesn't work - all I get is my page displayed without the form fields
being displayed.

Model:
var $validate =
array(
'title' =>
array (
'minLength' => array( 'rule' => 
array('minLength', 2) ),
'maxLength' => array( 'rule' => 
array('maxLength', 50) )
),
'body' => array(
'minLength' => array( 'rule' => 
array('minLength', 2) ),
'maxLength' => array( 'rule' => 
array('maxLength', 1000) )
)
);

View:
$form->textarea('body', array('cols'=>'40', 'rows'=>'10') )

But it works fine when I use form->input, i.e.
$form->input('body',
array('error' => array(
'minLength' => 'The comment must have at least 2 characters',
'maxLength' => 'The comment must have no more than 1000 
characters'
)
));

I checked the form helper code but there aren't any options for an
error array. Does anyone know of a workaround because I need to set
the cols and rows.

Thanks


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



Validation 1.2 and form errors

2007-05-20 Thread DragonI

Hi,

I want to do 2 things:
1. display a general error message at the top of the form when an
error occurs
2. display error messages above the field instead of below as is being
done in 1.2

How can I access the array of errors?

Also how do I perform pattern matching?

Thanks Newbie ;)


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



Howto: Change "404 Not found" pageTitle?

2007-05-14 Thread DragonI

Hi,

When I set DEBUG to 0 and I test with bogus controller names, I get
"404 Not found" as the pageTitle - which is perfect.

But is there a way of overriding / changing the page title?

Thanks


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



MySQL Stored Procedure Support?

2007-04-23 Thread DragonI

I've searched the net and this forum and couldn't find an answer to
whether cakePHP supports MySQL's stored proc's. Does it? If so, where
can I find the doc's or even hacks?

Thanks


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



Re: Newbie: Can cake routing handle this?

2007-04-17 Thread DragonI

Great thanks

I'm going to download cake try it out :)

On Apr 17, 8:55 pm, gwoo <[EMAIL PROTECTED]> wrote:
> you would need to setup a route for all your controllers. then have
> the catch all as the last route in the chain.


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



Newbie: Can cake routing handle this?

2007-04-17 Thread DragonI

Hi,

I know the traditional route is http://domain/controller/action but
can you do this http:/domain/username ? Where username can be routed
to a "default" controller, i.e. username. If so, can I create my own
controller name - something other username?

Thanks for your time!


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