Re: Force Trailing Slash and No WWW

2011-10-03 Thread Brett Wilton
This can be achieved with your .htaccess file in the ~/html directory and a 301 re-direct. E.g. RewriteCond %{http_HOST} ^www\.wiltonsoftware\.com$ [NC] RewriteRule ^(.*)$ http://wiltonsoftware.com/$1 [R=301,L] … Brett http://wiltonsoftware.com On 4/10/2011, at 8:17 AM, creat1v1ty

Re: CakeFest 2011 videos

2011-10-03 Thread Brett Wilton
Thanks Larry for your efforts. On 3/10/2011, at 6:28 PM, Larry E. Masters wrote: > I have started uploading videos from CakeFest 2011. Over the next few days I > will release more as I complete audio enhancements and editing of raw video. > Hope you enjoy, hope to see everyone at the next CakeF

Re: CakeFest 2011

2011-09-16 Thread Brett Wilton
Look forward to it, he could punch out a couple at a time :-) Also if you email the group when the odd one gets added would be appreciated. On 16/09/2011, at 7:00 PM, Walther wrote: > Octavian, I spoke with Larry the other day. He has something like 44 > videos to transcode, edit and upload. It

Re: CakeFest 2011

2011-09-07 Thread Brett Wilton
Brilliant, look forward to watching a few. On 7/09/2011, at 11:56 PM, Larry E. Masters wrote: > I will be compressing and uploading the recordings now that I am back in the > states. > > -- > Larry E. Masters > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.

Re: Form submit with image problem

2009-11-30 Thread Brett Wilton
I use css as jburns suggested but had a quick glance at the code. If you just want an image you need to put that in the first parameter e.g. $form->submit('your-image.jpg'); If you need more control use css with 'class' or 'div', e.g. $form->submit('Edit', array('class' => 'your_css_class'); ---

Re: No layout appears on installation

2009-10-27 Thread Brett Wilton
check you have all the .htaccess files, http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess explains a bit more. Under FF you can use Firebug to check that the CSS files are being loaded i.e. your paths are correct. http://wiltonsoftware.com --~--~-~--~~

Re: gwoo Leaving CakePHP??

2009-10-15 Thread Brett Wilton
Yes thanks gwoo, thanks for your time and effort, you've made CakePHP a better place. --~--~-~--~~~---~--~~ 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

Re: New to CakePHP issue loggin IP

2009-10-14 Thread Brett Wilton
I haven't tried getClientIP() but I'd check that you have the field name correct etc, try putting something known in. As an alternative I've used $_SERVER['REMOTE_ADDR'] in the past which does work. http://wiltonsoftware.com --~--~-~--~~~---~--~~ You receiv

Re: Fatal error: Class 'Dispatcher' not found - please help

2009-08-11 Thread Brett Wilton
We encountered this error on an CakePHP1.2 installation and found that it was related to the installed PHP version. It may be the same for you, PHP5.2 had a problem which was part of a debian install in our clients servers case. Hope that helps. http://wiltonsoftware.com --~--~-~--

Re: Add Jar files in cakephp

2009-07-28 Thread Brett Wilton
Probably related to your path, you need to add the directory under webroot, I wrote a bit about this sometime back http://wiltonsoftware.com/posts/view/java-applet-not-running Hope that helps. - http://wiltonsoftware.com On Tue, Jul 28, 2009 at 10:13 PM, PraDz Misc wrote: > Hi > > I have a

Re: Class dispatcher not found - Solved, bug maybe?

2009-07-20 Thread Brett Wilton
, but I don't know which > setting is wrong... > Tnx in advance! > > Broom > > On 16 mrt, 02:51, Brett Wilton wrote: >> Hi Gwoo, >> >> > Can you run the Inflector tests? >> >> Unfortunately as soon as I put the original inflector.php ba

Re: Submit/Cancel problem

2009-05-19 Thread Brett Wilton
You can use something like this in your view (code snips):- submit('Save', array('div'=>false, 'name'=>'submit')); echo $form->submit('Cancel', array('div'=>false, 'name'=>'cancel')); ?> end(); ?> and in your controller :- if (array_key_exists('cancel', $this

Re: Installation Problem: CakePHP 1.2.3.8166 on CENTOS and database.php

2009-05-18 Thread Brett Wilton
what version of PHP is the centos machine running ? have you got all the required .htaccess files and mod_rewrite installed in apache2 ? - http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Installing CakePHP to mediatemple(dv) issue

2009-05-18 Thread Brett Wilton
Check your apache2 setup has mod_rewrite installed and your directory permissions. If you still have trouble with MT Centos setup I'd suggest asking the MT framework forum as a number of people use Cake on DV. http://wiltonsoftware.com --~--~-~--~~~---~--~~

Re: Reorganizing Controller

2009-05-06 Thread Brett Wilton
You could use private functions in the controller or if the code lends to it make your models fat. Just google something like "cakephp fat models skinny controllers" Hope that helps. http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message

Re: Release: 1.2.3.8166

2009-05-04 Thread Brett Wilton
Thanks gwoo and all the dev. To find out about the 1.3 features and to keep up with progress on 1.3 is the http://thechaw.com/cakephp/wiki/1.3 wiki the best place to follow this ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: New Install - Where is the Dispatch

2009-03-29 Thread Brett Wilton
This error could be due to the php version you have, is it 5.2.0 by any chance ? I encountered this error on a server running 5.2.0, I believe its due to a regex PHP bug. We did figure out a work around with the error being in the inflector code, let us know if you need the adjusted code. In ou

Re: Class dispatcher not found - Solved, bug maybe?

2009-03-15 Thread Brett Wilton
Hi Gwoo, > Can you run the Inflector tests? Unfortunately as soon as I put the original inflector.php back in nothing will run. When loading the test page I get the following error :- Fatal error: Class 'Overloadable' not found in /cake/libs/model/model.php on line 43 --~--~-~--~~

Re: Class dispatcher not found - Solved, bug maybe?

2009-03-12 Thread Brett Wilton
dev or someone else can see how this function can produce _dispatcher ? In terms of server setup its running debian4, apache2 and a custom compiled version of php 5.2.0. On Mon, Mar 2, 2009 at 7:40 PM, Brett Wilton wrote: >> Any warning/notices before fatal error? > > No nothing a

Re: Include Javascript code for one specific view. how to?

2009-03-08 Thread Brett Wilton
Another method is to use $this->addScript() in your view as long as you have echo $scripts_for_layout; in your layout file. http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gr

Re: can't pagination use the group by ?

2009-03-05 Thread Brett Wilton
I wrote a small example on this a while back, can be found here :- http://wiltonsoftware.com/posts/view/custom-group-by-pagination-and-a-calculated-field On Wed, Mar 4, 2009 at 6:22 PM, Rimoe wrote: > hi, > I have write a > var $paginate = array( >         'limit' => 50, > 'fields' => array('acc

Re: Class dispatcher not found

2009-03-01 Thread Brett Wilton
> Any warning/notices before fatal error? No nothing at all, this is a fresh install. All I can think of at this point is that App::import() is failing in the bootstrap to import the Dispatcher for some reason and then the app/webroot/index.php file is trying to create the Dispatcher and failing

Re: Class dispatcher not found

2009-02-27 Thread Brett Wilton
No one with any ideas ? Unfortunately I don't have access to the machine so can't investigate further at this stage. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email

Re: Stop some Header output for a controller action

2009-02-26 Thread Brett Wilton
Thanks majna, I'll take a look and see if that does the trick. It would be nice if there was a way to limit some of the other headers output by cake as well. In the case of mobile events it can cost allot more with the extra bytes being transmitted. --~--~-~--~~~---~-

Re: iphone version of my site

2009-02-09 Thread Brett Wilton
I haven't used it yet but the RequestHandler component has an isMobile() function call that may be enough to help change layouts depending on the device. Brett Wilton http://wiltonsoftware.co.nz --~--~-~--~~~---~--~~ You received this message because yo

Re: Group By in Pagination

2009-01-29 Thread Brett Wilton
I wrote a small pagination example a while back, the link is http://wiltonsoftware.com/posts/view/custom-group-by-pagination-and-a-calculated-field. I used the function for 3 paginated views, since I only had one of the paginated views using the group by clause I just checked for that condition.

Re: How to upgrade to a new release?

2009-01-09 Thread Brett Wilton
The other thing to remember if your using any caching is to delete all cached files in the directories under app/tmp/cache. Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: GROUP BY bug?

2008-12-29 Thread Brett Wilton
quite like Tarquie's array_walk() one line solution as well. ---- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, se

Re: Pagination Issue with group by

2008-12-22 Thread Brett Wilton
helps. Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ 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

Re: Media Temple server seems to be closing mysql connections after every query

2008-12-14 Thread Brett Wilton
I assume this is on the grid and your using the latest cakephp ? I'm using the grid and aren't having any problems with adding records via MySQL, have you set the grid to use PHP 5 rather than 4 ? --~--~-~--~~~---~--~~ You received this message because you are sub

Re: bakery articles

2008-12-14 Thread Brett Wilton
Thanks for the group information. I see the article is available now, will have a read soon. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroup

Re: Using the PagesController

2008-12-11 Thread Brett Wilton
If your model data isn't changing much using an cached element should be quick. You can set the cache to renew each hours, days, weeks, or longer. You could also clear the element cache when you save the model. --~--~-~--~~~---~--~~ You received this message beca

Re: bakery articles

2008-12-11 Thread Brett Wilton
s slowed things down. Brett Wilton http://wiltonsoftware.com On Thu, Dec 11, 2008 at 4:04 AM, rgu...@googlemail.com wrote: > > Hi all, > > I've recently written a bakery article with regards to mobilizing cake > applications. > > It got published (hooray), but i made a chang

Re: Finding Auth'd users Username

2008-12-11 Thread Brett Wilton
In your view you can use something like :- if ($session->check('Auth.User.id')) { echo $session->read('Auth.User.username'); } Brett Wilton http://wiltonsoftware.com On Fri, Dec 12, 2008 at 8:10 AM, bioselem...@gmail.com wrote: > > I've been wacking

Re: Custom Query Pagination

2008-12-08 Thread Brett Wilton
tions'); $this->recursive = $recursive; $count = $this->find('count', array_merge($parameters, $extra)); if (isset($extra['group'])) { $count = $this->getAffectedRows(); } return $count; } Hope this helps.

Re: Custom Query Pagination

2008-12-08 Thread Brett Wilton
$this->recursive = $recursive; $count = $this->find('count', array_merge($parameters)); return $count; } Essentially this is the same as the default count method but I ignore the extra field which contains the group by clause i.e. $extra is not passed to the find(

Re: RC3 file cache trouble

2008-11-27 Thread Brett Wilton
rm on request or link to a non-cached page with a form. I quite like having the form visible, not that I get many comments. Brett Wilton http://wiltonsoftware.com On Sun, Nov 16, 2008 at 7:29 AM, Tyler S. <[EMAIL PROTECTED]> wrote: > > I ran into the same problem last night. A tempor

Re: cakePHP auth help (for a cake newbir)

2008-11-19 Thread Brett Wilton
that helps. Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ 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 t

Re: How to get code coverage analysis working?

2008-11-19 Thread Brett Wilton
Brilliant that worked for me, thanks Mark. --~--~-~--~~~---~--~~ 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 emai

Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]

2008-11-11 Thread Brett Wilton
If you type in the page with IE7 I get the same result, even on a 1.1.X project I had with othAuth. I was wrong in saying RC2 worked as I was clicking a link rather than typing one in. The only way to stop IE7 from caching the page is to use the disableCache(), I did a quick hack in my app_contro

Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]

2008-11-11 Thread Brett Wilton
Hi Rohman, I just tried the latest RC3 7866 and have found that the IE7 is functioning as you indicated, this is not how it worked under RC2. I'm not sure off hand why there is this difference. Brett --~--~-~--~~~---~--~~ You received this message because you are

Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]

2008-11-11 Thread Brett Wilton
and it prevents access in the same way FF does. I'm using the Auth component to login and logout with and use the $session->read('Auth.User.username') to get the user information. This was on a 1.2 RC2 site, haven't tried with the latest RC3will try

Re: RC3 vs. SVN Checkout

2008-11-10 Thread Brett Wilton
branches version. However with the branches SVN you get a brief user log entry about the files that have been modified which can be useful. Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Internet Explorer Cache Problem [ CakePHP 1.2 RC3 ]

2008-11-10 Thread Brett Wilton
Not sure if this is what your after or not, Controller::disableCache...http://book.cakephp.org/view/431/disableCache Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: RC3 vs. SVN Checkout

2008-11-10 Thread Brett Wilton
svn co https://svn.cakephp.org/repo/branches/1.2.x.x /path/to/save Info is on this page...https://trac.cakephp.org/ Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Whats up with prototype and Cake 1.2?

2008-11-09 Thread Brett Wilton
You can add an app_controller.php file to your app directory and add the helpers there. Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

Re: Failed test case: libs/view/helpers/cache.test.php

2008-11-08 Thread Brett Wilton
ay end up implementing it via an ajax-load as you suggest, however I quite like having the form visible. Thanks again for you thoughts on this. Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: How to get code coverage analysis working?

2008-11-08 Thread Brett Wilton
got xdebug going on Debian or in my case I'm trying Ubuntu (which is essentially Debian) ? Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Re: How to get code coverage analysis working?

2008-11-06 Thread Brett Wilton
Anyone get any further with this ? I'm running a LAMP ubuntu install and get the same result either a blank screen or empty test.php. Phpinfo says the xdebug is installas far as I can tell. --~--~-~--~~~---~--~~ You received this message because you are su

Re: RC3 file cache trouble

2008-11-06 Thread Brett Wilton
Have been trying to figure out this for a while now, anyone used the file engine caching under 1.2 with around a form ? In the controller I'm using var $cacheAction = array('index' => '1 day', 'view' => '1 day'); the view page has a few elements which are cached as well but I only get the errors

Re: Multiple HABTM levels produces duplicate entries.

2008-11-05 Thread Brett Wilton
Can you say which version you are running RC3 and latest svn ? Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

Re: Jquery or Scriptalicious?

2008-10-30 Thread Brett Wilton
Don't mean to hijack this threadbut Anyone recommend some good articles for jquery and cakephp ? Or any recommend jquery books ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gr

Re: Render speed difference between 1.1 and 1.2

2008-10-23 Thread Brett Wilton
-which-grid-cluster-your-site-is-on-at-mediatemple Simple answer is a traceroute to your site. --- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To p

Re: Render speed difference between 1.1 and 1.2

2008-10-23 Thread Brett Wilton
Just re-read your first post, seems like you are running on cluster 1 for both your 1.1 and 1.2 applications so they should experience the same latency, maybe 1-2 seconds plus any extra code 1.2 might have. To exclude any issues in regard to this have you setup the same static page for 1.1 and 1.2

Re: Why are none of my responses making it to the group?

2008-10-23 Thread Brett Wilton
I've seen a couple, can't say if its all of them though. --- Brett Wilton http://wiltonsoftware.com On Fri, Oct 24, 2008 at 9:31 AM, Christian Leskowsky <[EMAIL PROTECTED]> wrote: > > Testing... > > > > --~--~-~--~~~---~--~~ You

Re: Render speed difference between 1.1 and 1.2

2008-10-23 Thread Brett Wilton
not a windows server issue, as far as I'm aware the machines are running debian Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this g

Re: SEO friendly

2008-10-22 Thread Brett Wilton
Also Mariano did another article before Sluggable behaviour which was quite good :- http://bakery.cakephp.org/articles/view/adding-friendly-urls-to-the-cake-blog-tutorial If you want a more restful URL you can use the router side of things for this. Brett Wilton http://wiltonsoftware.com

Re: SEO friendly

2008-10-22 Thread Brett Wilton
Using the router is one way to achieve this. Here's a few articles on this... http://book.cakephp.org/view/46/Routes-Configuration http://debuggable.com/posts/new-router-goodies:480f4dd6-4d40-4405-908d-4cd7cbdd56cb Brett Wilton http://wiltonsoftwar

Re: Release: CakePHP RC3 - The RC of Triumph!

2008-10-02 Thread Brett Wilton
Congrat's to the team and thanks for the efforts. The speed increase sounds brilliant. Also I have to say thanks to Teknoid and all those who have improved and added to the book, its becoming a great resource. --~--~-~--~~~---~--~~ You received this message becaus

Re: dealing with sessions - should be a simple answer..

2008-09-22 Thread Brett Wilton
Gabriel this is the third thread you have started on the same topic! There are answer on the other threads it poor editicate to start yet another thread on the same topic. https://mail.google.com/mail/?zx=15ic3dxc3p7ft&shva=1#trash/11c7b06bf600e1d7 https://mail.google.com/mail/?zx=15ic3dxc3p7ft&s

Re: simple session question - for Authentication

2008-09-21 Thread Brett Wilton
in your controller you can use $this->Auth->user('id') or $this->session->read('Auth.User.id') or in your view $session->read('Auth.User.id') --- Brett Wilton http://wiltonsoftware.com On Sat, Sep 20, 2008 at 3:51 AM, gabriel <[EMAIL PROT

Re: Forms not validating while using EmailComponent?

2008-09-18 Thread Brett Wilton
pr($this->validationErrors) in your view will show you the errors. --- Brett Wilton http://wiltonsoftware.com On Fri, Sep 19, 2008 at 12:31 PM, David C. Zentgraf <[EMAIL PROTECTED]> wrote: > > On 18 Sep 2008, at 23:53, 703designs wrote: > >> So a rendered view wi

Re: Installation: Ubuntu / Apache2.2 / mod_re_write

2008-09-12 Thread Brett Wilton
Hi dan3501, it would be worth giving your solution to the problem so others down that track can google it. --- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP&q

Re: Installation: Ubuntu / Apache2.2 / mod_re_write

2008-09-12 Thread Brett Wilton
Sound's like you don't have the .htaccess file in your /var/www/dan directory. If that is not there it will not load your img and css directories correctly. --- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message b

Re: Need help on Install

2008-09-10 Thread Brett Wilton
> If we cannot use http://www.example.com why are they telling us to use it? Take a glance at this link Jerry, http://en.wikipedia.org/wiki/Example.com example.com is reserved for documentation use for this exact purpose i.e. www.itsjustanexample.com --- Brett Wilton http://wiltonsoftware.

Re: Help with installation cakephp on xamp package

2008-09-10 Thread Brett Wilton
your error messages as Donkeybob indicated. --- Brett Wilton http://wiltonsofware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegro

Re: RE sometimes I wonder if cakeph is worth all the trouble - seems like very steep learning curve.

2008-09-08 Thread Brett Wilton
You want instant support and help for all your employee's and all for FREE ? If your employee's are struggling where's your in-house training? If you can't provide that why not contact some one like http://cakefoundation.org who offer this service. There is a learning curve in a framework just a

Re: Javascript framework

2008-09-01 Thread Brett Wilton
nge and it was very nice, however the new license makes it questionable at the very least. --- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to t

Re: Dynamic content - default.ctp

2008-08-26 Thread Brett Wilton
An element is probably the best way to go for this... http://book.cakephp.org/view/97/elements --- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Re: Removing page execution time from bottom of page

2008-08-26 Thread Brett Wilton
If you only want this in a particular view you can set Configure::write ('debug', 0); in your controller method. This is particularly useful for those controllers that require no extra information e.g. sitemap producing xml ---- Brett Wilton http://wiltonso

Re: cakePHP +Media Temple rewrite rule

2008-07-21 Thread Brett Wilton
on RewriteRule ^(.*)$ http://wiltonsoftware.com/$1 [R=301,L] RewriteCond %{http_HOST} ^www\.wiltonsoftware\.com$ [NC] RewriteRule ^(.*)$ http://wiltonsoftware.com/$1 [R=301,L] RewriteRule ^$ app/webroot/[L] RewriteRule (.*) app/webroot/$1 [L] AddHandler php5-script .php --- Brett

Re: cakePHP +Media Temple rewrite rule

2008-07-20 Thread Brett Wilton
I have a couple of sites running on MT using both CakePHP 1.2 beta and RC2 and haven't had any problems on the GS just using the standard install. One thing to be aware of is that they are linux machines so the filenames are case sensitive (need to be lower case). --- Brett Wilton

Re: Customizing the output of Form Helpers

2008-07-17 Thread Brett Wilton
As a further example to the form input helper you can set color and size information as follows :- echo $form->input('Contact.name', array('label' => array('text' => 'Name* :'), 'size' => '2

Re: Problem with saving HABTM

2008-06-04 Thread Brett Wilton
Hi, This article implements a hitcounter behaviour. http://dsi.vozibrale.com/articles/view/simple-hitcount-behavior-for-cakephp There is also an article in the bakery as well... http://bakery.cakephp.org/articles/view/increment-behavior Hope that helps. --- Brett Wilton http