Re: Install cakePHP in Ubuntu 10.04

2010-06-17 Thread Matthew Powell
Right, a2enmod, a2dismod, a2ensite, a2dissite. are, at least as far as I know, Debian specific scripts to manipulate the apache2 configuration directory. a2enmod mod_rewrite will get you half-way there. You'll also need to modify the default vhost to set AllowOverride to be on in order for cake's

Re: php+gdchart installation ubuntu 9.04

2010-06-17 Thread Matthew Powell
You probably don't have everything needed to compile software for apache. $ sudo apt-get install build-essential apache2-prefork-dev php5-dev libapache2-mod-php5 And try again. Also, take a look at google charts. I'm not using it myself, but it looks very nice. Speaking of google, I hear they

Re: timeHelper

2010-06-02 Thread Matthew Powell
http://php.net/strftime Matt On Wed, Jun 2, 2010 at 18:48, bradmaxs wrote: > Does anyone know if there is a way to convert the military time output > of the niceShort method to standard time? > > Example: 13:54:01 to 1:54pm. > > Thank you, > > Brad > > Check out the new CakePHP Questions site h

Re: Why uses CKeditor in Cake 1.3?

2010-05-21 Thread Matthew Powell
Unpack ckeditor to app/webroot/ckeditor, then, in your view: Javascript->link('/ckeditor/ckeditor', false);?> Form->textarea('some_textarea'); ?> CKEDITOR.replace('some_textarea'); Matt On Fri, May 21, 2010 at 12:53, Celso wrote: > Anyone have a example? > Thanks, > Celso. > > Check out the

Re: Can I turn off session timeout?

2010-05-19 Thread Matthew Powell
On Wed, May 19, 2010 at 11:16, WhyNotSmile wrote: > Thanks Matt. > > Is it ok just to change to cake sessions, or do I need to do anything > else?  The system has been live for a while, so I don't want to lose > any data - I assume it will be ok, but just want to check! First, to clarify, the rea

Re: Can I turn off session timeout?

2010-05-19 Thread Matthew Powell
Make sure you're using cake (or db) sessions, not php sessions, then ratchet up the timeout to some number that will likely never be reached. Note that if he clears his cookies (or his browser automatically clears them, he will no longer be associated with a previous, yet still active session, off

Re: CakePHP CORE as Git submodule

2010-05-18 Thread Matthew Powell
This doesn't answer your question, but perhaps it solves your problem. Updating it in each app is one way to do it. I Prefer to just have one copy of cake. http://book.cakephp.org/view/35/Advanced-Installation Matt On Tue, May 18, 2010 at 15:00, DanielMedia wrote: > I've been looking for a

Re: php limits?

2010-05-18 Thread Matthew Powell
php.ini On Tue, May 18, 2010 at 02:24, Dilip Godhani wrote: > i want to create pdf but that give me that error > > Allowed memory size of 16777216 bytes exhausted (tried to allocate 4980736 > bytes) > > Help me > Thanks > -- > Dilip Godhani > Jr Software Developer, Entourage Solutions > e-mail:

Re: Model data structure inconsistent?

2010-05-07 Thread Matthew Powell
Jamie said it once, but I feel it's worth repeating. Modifying the code to output in a format YOU want for your new application could pretty much screw up every cakephp application out there. Matt On Fri, May 7, 2010 at 10:33, Roland Bock wrote: > Jamie, > > thanks for the reassurance :-) > >

Re: Multiple AJAX Forms on same page all submitting to first form.

2010-05-07 Thread Matthew Powell
Take a look at the generated HTML. It sounds very much like the first form isn't being terminated properly (no tag). This causes the fields in the second form to think they are part of the first form. On Thu, May 6, 2010 at 22:45, Nilz wrote: > > Why are you using two ids? > > create('User', a

Re: Database agnostic virtual fields

2010-05-07 Thread Matthew Powell
I hear you. I'm the guy that tweaked the book to show how to do the same thing in postgres. Cake's DB layer is unaware of the differences in how string concatenation works in the various DBs, though I suspect most would find it desirable to have that change. I guess you could write a method in a

Re: How do I get Acl working?

2010-04-28 Thread Matthew Powell
Did you perhaps leave a $this->Auth->allow('*'); in there somewhere? Matt On Wed, Apr 28, 2010 at 21:33, Jon Chin wrote: > I'm having a bit of a problem getting Auth+ACL working.  I've followed the > Simple Acl Controlled Application example in the Cake book. It is correctly > locking out unauth

Re: virtual fields in conditions

2010-04-26 Thread Matthew Powell
> As for using virtual fields in conditions, I've come to the conclusion > that the current version of Cake does not handle them. Works here. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you ar

Re: is it advisable to use jquery on cakephp?

2010-04-19 Thread Matthew Powell
I use it, without the helper. If using jQuery + Cake is wrong, I don't want to be right. Good luck, Matt On Mon, Apr 19, 2010 at 09:17, Bryan Lim wrote: > question as above. > I also want to ask if there's an official jquery helper for cakephp? > The one at the bakery is kinda outdated. > > >