saveAll not saving habtm with build 8004

2009-02-25 Thread spazard1
Hello all. I am running into a problem where my join tables are not being updated when I call saveAll. I have the latest stable version of cakephp, in which this bug was fixed. Here is the relevant action code: //first update the ['Player'] array to replace username with ['User'] ['id']

afterDelete question

2009-02-25 Thread Deividas
I have two controller's, for example Members and MemberPictures, when I delete Member i want MemberPicture also deleted, i have set MemberPictures dependable in Member model, but I also want to unlink actual picture from the file system. I've tried using afterDelete() in MemberPicture model, but

Re: Plugins - Calling plugin App Controller from base application App Controller

2009-02-25 Thread AD7six
On Feb 25, 7:36 am, adam abennett...@sbcglobal.net wrote: That's a shame, that makes a user plugin (half) pointless since you would still have to have the beforeFilter code outside the plugin Or entirely useful, since the code you're talking about would be in a component, not the plugin app

Re: How do I save related model data

2009-02-25 Thread Dhana
I tried that, but that didn't work either. Another thing I did was to make sure I assigned the foreign key to the data like this so the todo data has a task_id, but that just creates a new db row. $this-data['Todo']['task_id'] = $this-data['Task']['id']; On Feb 24, 11:37 pm, mscdex

Re: How do I save related model data

2009-02-25 Thread Dhana
I tried the one below, but the todos still don't get updated. I tried a variation where I did this to make sure the foreign id(task_id) is added, but that just creates a new row instead of updating the row. $this-data['Todo']['task_id'] = $this-data['Task']['id']; On Feb 24, 11:37 pm, mscdex

Re: Cake Sites Stats

2009-02-25 Thread AD7six
On Feb 24, 6:15 pm, leo ponton@gmail.com wrote: Are there any reliable statistics for real sites built with Cake? Here's one that's pretty reliable: Exists 1 ?: Yes. Glad I could help. AD --~--~-~--~~~---~--~~ You received this message because you are

Cake Cheatsheet.pdf 1.1 - Anyone still have it?

2009-02-25 Thread villosil
Hi, I'm looking for the 1.1 cheatsheet in pdf and I can't find it. If anyone could sent it to me or say where can I find it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Cake Sites Stats

2009-02-25 Thread Dr. Tarique Sani
On Tue, Feb 24, 2009 at 10:45 PM, leo ponton@gmail.com wrote: Are there any reliable statistics for real sites built with Cake? #1 reliable does not go well with statistics ;) #2 I don't really understand what you mean by *real* for that matter I am not familiar with *unreal* sites

Re: Cake Cheatsheet.pdf 1.1 - Anyone still have it?

2009-02-25 Thread Deividas
Maybe this? http://www.scribd.com/doc/41728/cakesheet On Feb 25, 11:13 am, villosil villo...@gmail.com wrote: Hi, I'm looking for the 1.1 cheatsheet in pdf and I can't find it. If anyone could sent it to me or say where can I find it. Thanks!

Issue using external vendor script

2009-02-25 Thread Walther
I am trying to use the XML to RTF converter found at http://paggard.com/projects/doc.generator/ I did find some posts with people saying it is easy to slot into CakePHP applications (dated Feb 5 2008), however I just can not get it to work. I keep getting errors regarding some global variables

Re: saveAll not saving habtm with build 8004

2009-02-25 Thread luke BAKING barker
hi use save() not saveAll with HABTM On Feb 25, 7:01 am, spazard1 spaza...@gmail.com wrote: Hello all. I am running into a problem where my join tables are not being updated when I call saveAll. I have the latest stable version of cakephp, in which this bug was fixed. Here is the

Multiple Checkbox

2009-02-25 Thread Maulik
hi to all i m going to performing a search functionality in which i hv face a sily problem in my view file i hv taken a multiple checkbox select as below ?php echo $form-input(' doesnt metter',array ('id'='1','type'='checkbox','multiple'='checkbox','value'='doesnt matter')); ? ?php echo

Is there a way to not repeat two findAll and models in my site, instead put in just one file?

2009-02-25 Thread simon...@terra.com.br
Good Morning, I have like 20 pages on my site and they all use these: $menu = $this-Grupo-findAll(null,null, array(Grupo.grupo ASC)); $this-set('menu', $menu ); $submenu = $this-Linha-findAll(null,null, array(Linha.linha ASC));

Re: Using elements as views?

2009-02-25 Thread Mech7
No i don't mean a layout... I kinda mean like all controllers are accessible through one page controller... and then all actions from other controllers articles / banners / etc can be loaded in that page as blocks or elements... like a element with latest articles, one with 1 article, one with

Re: Is there a way to not repeat two findAll and models in my site, instead put in just one file?

2009-02-25 Thread Aivaras
Hello, sure thing you can put that in app_controller, so that you do not have to re-write it all over. If you are using findAll(); for all pages, you should consider caching, that really makes the job really good. Cheers, Faifas On Wed, Feb 25, 2009 at 13:59, simon...@terra.com.br

Re: AJAX rendering text

2009-02-25 Thread grigri
I believe it's the opacity change that makes IE text jaggedy. There might be a proper workaround but try these: * Make sure the element you're fading has an opaque background colour * Try fading an overlay element to mask the text, rather that fading the text itself I ran into this a while ago

Re: Is there a way to not repeat two findAll and models in my site, instead put in just one file?

2009-02-25 Thread simonjpa
How can I put it in the app_controller? What code I have to use? On Feb 25, 9:06 am, Aivaras faifas1...@gmail.com wrote: Hello, sure thing you can put that in app_controller, so that you do not have to re-write it all over. If you are using findAll(); for all pages, you should consider

Re: afterDelete question

2009-02-25 Thread dr. Hannibal Lecter
You are correct, model callbacks are not called for related models. You will probably have to handle that in Member::afterDelete(). On Feb 25, 8:57 am, Deividas deividas.sen...@gmail.com wrote: I have two controller's, for example Members and MemberPictures, when I delete Member i want

Re: How do I save related model data

2009-02-25 Thread mscdex
Something else I noticed is that your Todo text field generation code seems a bit off. You mention you want to be saving the Todo titles but your form field is the Todo's ID field filled in with the title data. Also, I haven't tested this yet but you may have to supply the ID for each Todo as

Re: Is there a way to not repeat two findAll and models in my site, instead put in just one file?

2009-02-25 Thread scs
There might be a better way to handle this, but the way I do this is put: var $uses = array('Linha','Grupo'); at the top of the app_controller, ex: ?php class AppController extends Controller { var $unencryptedAccess = array(); var $namedArgs = false; var $argSeparator =

Ajax.InPlaceEditor is not a constructor error

2009-02-25 Thread WidePixels
Following the setup as on http://bakery.cakephp.org/articles/view/using-the-ajax-helper-for-inplaceeditor-and-inplacecollectioneditor-fields but i get the error Ajax.InPlaceEditor is not a constructor Here is my code: label for=test?php __('Edit Test');?:/labeldiv id=test? php echo

Re: Tree misbehaviour

2009-02-25 Thread Jon Bennett
Hi Mark, Can anybody see anything wrong with the file or class names below? They look ok to me, just checking, you are using the Tree behaviour aren't you? You've got: var $actsAs = array('Tree'); in your model? j -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype:

Trouble fetching database information

2009-02-25 Thread Matt
Hi all, I'm new to CakePHP (but not PHP) and I have followed the 5 part series by IBM to get me going on Cake PHP. I'm building a mini CMS for a client, and I am stuck... here's how the system should work: the client logs in and adds a supplier. The supplier is added to the database and has a

How to set up site structure with Admin folder and controllers?

2009-02-25 Thread Leonard Teo
Hi, I'm an experienced PHP developer that's just started using Cake. Apologies in advance if this is a n00bish question. I've created several models, controllers and scaffolds but I would like them all to reside in a /admin folder in the site structure. E.g. Models - Administrator - Story

Re: Cake Cheatsheet.pdf 1.1 - Anyone still have it?

2009-02-25 Thread Gwoo
http://groups.google.com/group/cake-php/files?hl=en --~--~-~--~~~---~--~~ 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: saveAll not saving habtm with build 8004

2009-02-25 Thread spazard1
saveAll is supposed to work with HABTM though. I'm trying to save multiple Player at the same time, all of which should also save an associated User. I'm thinking I just setup the data array incorrectly or something like that, which is causing it not to save. On Feb 25, 4:58 am, luke BAKING

Re: How to set up site structure with Admin folder and controllers?

2009-02-25 Thread Adam Royle
Have you looked into admin routing? You'll just need to prefix your actions and your views with admin_ to get it to work (and enable it in app/core.php) And then set up a route for your admin homepage, which would point to AdministratorsController::admin_dashboard() Router::connect('/admin',

Re: after migrating to another host one controller fails to load

2009-02-25 Thread banesto
maybe there is some script to test host requirements? because i tried many times, even downloaded a fresh cake version and put into it controllers and other stuff - no reaction. On Feb 24, 11:14 pm, banesto ernests.ke...@gmail.com wrote: Hi bakers! I have an error I can't seem to understand

problem with subsequent pages.

2009-02-25 Thread lakers fan
Hello, I just did Blog tutorial in windows it worked fine. But in ubuntu its not working. I took the entire cake_1_2 folder and copied under /home/user/cake_1_2 and linked this directory to opt/lampp/httpdoc/cake_1_2. The first index page shows up fine, it shows all the three default

how to change image on onover event

2009-02-25 Thread mona
I am displayin a image on my index page when user mouseover on that image it should display anoter image and remove first image cananybody tell me how to this in cakephp how to call javascript function in cake php --~--~-~--~~~---~--~~ You received this message

Re: Core Models not loading at all

2009-02-25 Thread brian
What's the signature for getMostPlayedGames()? Is it protected or private? On Wed, Feb 25, 2009 at 12:26 AM, Miles J mileswjohn...@gmail.com wrote: Also heres an example of a controller action, where the TeamsUser model loads fine: /**  * Broadcasts  * @access private  */ function

Re: Who uses Cake + jQuery ajax

2009-02-25 Thread horatio
whats involved to // don't render the full layout within the controller? trying to strip the header and footer from the ajax output. Martin Westin wrote: Yes As far I remember the controller sees nothing different from a normal POST. Just do this and you will be golden: if (

Re: Who uses Cake + jQuery ajax

2009-02-25 Thread horatio
answered my own question: $this-layout = 'ajax'; $this-disableCache(); Configure::write('debug', 0); horatio wrote: whats involved to // don't render the full layout within the controller? trying to strip the header

Using ACL

2009-02-25 Thread Dave Maharaj :: WidePixels.com
I want to setup a site where there are 2 authorized pages and what to know what the best approach would be? To use the ACL and Auth component or just Auth. The site is pretty basic with 2 core pages: User/Profile: where users can view/edit their profile when logged in Posts: where logged in

Re: Custom Route Pagination URLs

2009-02-25 Thread brian
Try $paginator-options( array('url' = $this-passedArgs) ); On Tue, Feb 24, 2009 at 11:48 PM, xxkylexx kyle.spear...@gmail.com wrote: Hey guys, I can't seem to get this to work :-( . I currently have the following route set up for my categories pages, which works great:

Re: Using ACL

2009-02-25 Thread banesto
if there's only one type of users e.g. admin and you just check wether user is logged in, then Auth is enough for you. On Feb 25, 7:16 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I want to setup a site where there are 2 authorized pages and what to know what the best approach

Not using a DB for data

2009-02-25 Thread RhythmicDevil
Hi, I have a set of views in my app that will not be using a database. The data will be coming from an web method. I believe I still need to use a model to stay within MVC. So I have my model set up like this with a test method: class Workorder extends AppModel { var $useTable = false;

Vanilla Install Issues

2009-02-25 Thread Anders Leet
I downloaded the latest version, renamed the folder to cake_1_2 and uploaded it to my webserver (www.anders-leet.com). When I first launched the page (www.anders-leet.com/cake_1_2/index.php), I got this error: Unable to create file C:\HostingSpaces\andersle\anders-leet.com\wwwroot

Best architecture for integrating SOAP

2009-02-25 Thread maxmil
I am adding some SOAP web services to an application running on cakephp 1.2 using the Soap php extension. The best way to to this has been to create a controller which has a call method. This method instantiates a Soap Server and passes it a model class where my service methods are defined.

Re: Trouble fetching database information

2009-02-25 Thread dr. Hannibal Lecter
Obviously, User model is not used in SupplierController, i.e. you're missing the following var $uses = array('User'); In your controller. That's why Undefined property error occurs when you do $this-User. Hope that helps! On Feb 25, 3:27 pm, Matt mmanai...@gmail.com wrote: Hi all, I'm new

Re: Using elements as views?

2009-02-25 Thread Kappa
Maybe (i don't know if is a valid solution) you can try to do this thing: you can import all the controllers, invoke their actions and then return their computed data , and set those as view variables something like: $this-set( 'articles' , $mycontroller-latest_articles() ); so inside your

Re: Trouble fetching database information

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 9:27 AM, Matt mmanai...@gmail.com wrote: Hi all, I'm new to CakePHP (but not PHP) and I have followed the 5 part series by IBM to get me going on Cake PHP. I'm building a mini CMS for a client, and I am stuck... here's how the system should work: the client logs in

Re: Not using a DB for data

2009-02-25 Thread brian
And the SQL error is ...? On Wed, Feb 25, 2009 at 10:49 AM, RhythmicDevil rhythmicde...@gmail.com wrote: Hi, I have a set of views in my app that will not be using a database. The data will be coming from an web method. I believe I still need to use a model to stay within MVC. So I have my

Re: problem with subsequent pages.

2009-02-25 Thread brian
Do you have debug set to 0? Put it to 2. On Wed, Feb 25, 2009 at 11:44 AM, lakers fan lakersfa...@msn.com wrote: Hello, I just did Blog tutorial in windows it worked fine. But in ubuntu its not working. I took the entire cake_1_2 folder and copied under /home/user/cake_1_2 and linked

RE: Not using a DB for data

2009-02-25 Thread Steven Wright
Sorry about that. The error was there there was no SQL. The issue was CakePHP requires you to overide _schema. I solved the problem with the following: class Workorder extends AppModel { var $useTable = false; var $_schema = array( 'id'= array('type' = 'integer',

Re: Stop some Header output for a controller action

2009-02-25 Thread majna
You can disable session auto start in config.php /** * If set to false, sessions are not automatically started. */ Configure::write('Session.start', false); You can start session later... On Feb 24, 11:00 pm, bwilt bdwil...@gmail.com wrote: Hello All, We have a mobile data application

Re: Using elements as views?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 12:47 PM, Kappa andrea.cappalu...@gmail.com wrote: Maybe (i don't know if is a valid solution) you can try to do this thing: you can import all the controllers, invoke their actions and then return their computed data , and set those as view variables something

Re: Custom Route Pagination URLs

2009-02-25 Thread xxkylexx
That was how I initially had it set up prior to the custom route, which worked fine. However, that method returns the same type of results I get from the set-up originally described. On Feb 25, 12:27 pm, brian bally.z...@gmail.com wrote: Try $paginator-options(         array('url' =

Re: Custom Route Pagination URLs

2009-02-25 Thread xxkylexx
Correction: that method returns the URL's how they would be with no custom route set up. i.e. http://www.localhost.com/categories/view/7/page:2 On Feb 25, 12:27 pm, brian bally.z...@gmail.com wrote: Try $paginator-options(         array('url' = $this-passedArgs) ); On Tue, Feb 24, 2009 at

Re: Vanilla Install Issues

2009-02-25 Thread mscdex
On Feb 25, 10:23 am, Anders Leet darren.sm...@gmail.com wrote: Warning: touch() [function.touch]: Unable to create file C: \HostingSpaces\andersle\anders-leet.com\wwwroot\cake_1_2\app\tmp\logs \error.log because Permission denied in C:\HostingSpaces\andersle

Re: How to set up site structure with Admin folder and controllers?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 10:20 AM, Adam Royle a...@sleekgeek.com.au wrote: Have you looked into admin routing? You'll just need to prefix your actions and your views with admin_ to get it to work (and enable it in app/core.php) And then set up a route for your admin homepage, which would

Re: how to change image on onover event

2009-02-25 Thread Aivaras
Well, old fashioned way is still working, so it can be simple as this: img src=whatever alt= border=0 onmouseover=changeImage(); onmouseout=recoverImage(); / For better performance, you should create a div and play with background positioning, so that users would load both images. That means no

Re: Cake Sites Stats

2009-02-25 Thread mark_story
On Feb 24, 12:15 pm, leo ponton@gmail.com wrote: Are there any reliable statistics for real sites built with Cake? That's a pretty broad question. Care to provide a bit more detail? As for some *real* sites, you would need to clarify that as well. What are your criteria for

Re: saveAll not saving habtm with build 8004

2009-02-25 Thread mark_story
saveAll() does work with HABTM. saveAll() does not however work when your data arrays are not formatted the way it likes them. Which seems to be the case here. You have the User key inside the Player key. That is not saveAll()'s preferred diet. It likes it habtm at the same depth as the

Re: Date function weirdness in vies

2009-02-25 Thread joseph7
No one's ever had this happen then? Ever? On Feb 20, 11:12 pm, Joe radioak...@gmail.com wrote: So I'm passing a unix timestamp from a database query in my model to my view. I'm using the date() function in the view to format it. I go to the page and it'll display a time like 10:00pm, I hit

Re: Trouble fetching database information

2009-02-25 Thread Matt
Hello and thank you so much for your help!! Brian, I took your advice and added the userid to the session, however, I'm clearly doing something wrong because in the Supplier controller I call the session with: $userid = $this-Session-read('userid'); However in the view, I enter echo $userid;

Re: Trouble fetching database information

2009-02-25 Thread Matt
Hello and thank you so much for your help!! Brian, I took your advice and added the userid to the session, however, I'm clearly doing something wrong because in the Supplier controller I call the session with: $userid = $this-Session-read('userid'); However in the view, I enter echo $userid;

Re: Trouble fetching database information

2009-02-25 Thread Matt
Hello and thank you so much for your help!! Brian, I took your advice and added the userid to the session, however, I'm clearly doing something wrong because in the Supplier controller I call the session with: $userid = $this-Session-read('userid'); However in the view, I enter echo $userid;

Re: Trouble fetching database information

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 2:54 PM, Matt mmanai...@gmail.com wrote: Hello and thank you so much for your help!! Brian, I took your advice and added the userid to the session, however, I'm clearly doing something wrong because in the Supplier controller I call the session with: $userid =

Re: Date function weirdness in vies

2009-02-25 Thread brian
Are you certain the timestamp remains the same? Did you echo that in the view along with the formatted date? On Wed, Feb 25, 2009 at 2:51 PM, joseph7 radioak...@gmail.com wrote: No one's ever had this happen then? Ever? On Feb 20, 11:12 pm, Joe radioak...@gmail.com wrote: So I'm passing a

Re: Trouble fetching database information

2009-02-25 Thread Matt
Thank you so much! You can't imagine how much I appreciate your help - I'm sure you remember how hard it was to wrap your head around MVC when you're used to straight PHP!! Thanks again! -Mathieu On Feb 25, 2:13 pm, brian bally.z...@gmail.com wrote: On Wed, Feb 25, 2009 at 2:54 PM, Matt

saveAll failing on 44 records

2009-02-25 Thread james revillini
This may not even be a cake issue ... it could be in how I have mysql set up or something, so I'm looking for any tips. I can use a saveAll to save up to about 44 records. More than that, it just stops and neither COMMIT nor ROLLBACK are called. If I only to do 43 or less, it works fine. I

Ordered list of arbitrary objects

2009-02-25 Thread Stephen
Hey, First of all: I have reasonable PHP4/5 experience and have been playing with Django for some time, which directed me to CakePHP to combine the two :-) Currently, I want to start my very own CakePHP app (or must I say: 'bake' :), but I've got one nasty dependency that I cannot resolve.

Re: Not using a DB for data

2009-02-25 Thread Miles J
Just do this in the controller: var $uses = NULL; --~--~-~--~~~---~--~~ 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: Core Models not loading at all

2009-02-25 Thread Miles J
Its a basic function (notice I cant use containable on GamesSystem to get Game, else it would fail): /** * Gets the most played games (for now based on games_system_id) * @param int $limit * @return array */ function getMostPlayedGames($limit = 5) { $games = $this-find('all', array(

RE: Not using a DB for data

2009-02-25 Thread Steven Wright
You have to over ride the _schema property as well. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of Miles J Sent: Wednesday, February 25, 2009 3:53 PM To: CakePHP Subject: Re: Not using a DB for data Just do this in the controller:

Re: Ordered list of arbitrary objects

2009-02-25 Thread mscdex
One approach you may wish to take is to do the subclassing in the database itself. First, have a superclass table which contains the common attributes shared among all the subclasses, along with the normal primary key 'id' attribute. Then create a table for each subclass that has a primary key

Re: no finderQuery data (cake 1.2 beta)

2009-02-25 Thread moocowmason
Same issue here as well. Any chance of this being fixed in the near future? This is kind of a show stopper for me. I may try to dive into the cake source and see what is going on. Cheers, -Mason Fischer bro1 wrote: Nick Jones-9 wrote: Anyhow, I now have a far more serious problem

Overriding findBy{Field}

2009-02-25 Thread psujohn
So for some reason we want to handle Canada differently from the US. We have a model that has a zip and for US we do stuff like -findByZip ('20007') but for Canada we want to put partial postal codes in the db and have -findByZip('N1M 1M2') match an entry in the db that has just 'N1M' listed as

Re: Date function weirdness in vies

2009-02-25 Thread joseph7
I thought that maybe that was it too, but it appears it's not. I'm printing out the timestamp and the date formatted string next to each other, and the timestamp remains 1235517602 while the string goes back and forth between February 24, 2009 6:20pm and February 24, 2009 5:20pm. Thinking that

Re: First time user :-D

2009-02-25 Thread Luenyar
As Marcelo hinted, $this-$name and $this-$data are not correct (hint: too many $). Also after that is resolved you will still have another issue, unless I am seeing it wrong, because it looks like you will be missing the ampersand before 'n=' in your query string as it is written now. Good

Media View not downloading unless I set headers

2009-02-25 Thread Mike Cook
I am unable to get the Media View to force the download to start, no error is given other than it just lands on a blank page. Here's the download function in my controller; function download ($id = null) { list($file_name, $file_ext) = split('[.]', $id); $this-view = 'Media';

Re: Overriding findBy{Field}

2009-02-25 Thread mscdex
On Feb 25, 4:47 pm, psujohn psuj...@gmail.com wrote: What I'd like is some way to magically alter the magic findByZip method so that is provides the desired behavior without having to resort to changing every place that calls the method. Ideas? I think going the custom model method way is the

Re: multibyte support in slug?

2009-02-25 Thread kryo
Hello KoPanda, I'm wondering if you were able to find the reason this error is occuring? I am not using CakePHP, but I have a similar problem using the mb_ereg_replace function, which returns the exact same error in my case. thanks, -k On Jan 5, 3:24 am, KoPanda kopa...@gmail.com wrote: i'm

Re: Custom Route Pagination URLs

2009-02-25 Thread xxkylexx
Solved the issue. Router should have a appended /* to allow for additional parameters: Router::connect('/:name-:id/*', array( 'controller' = 'categories', 'action' = 'view' ), array( 'name'='(.*)', 'id' =

Update multiple DIV

2009-02-25 Thread Dave Maharaj :: WidePixels.com
Does anyone know how to update 2 DIVs using the Ajax.InPlaceCollectionEditor? What I have is a drop down for selecting the users Country. That works fine. But when a users changes a country I also have the country flag image I want to update also. The country table has: id - country id name -

Re: Cake Sites Stats

2009-02-25 Thread leop
Well this group, for example has 11311 members. How many times has CakePHP been downloaded? How many sites that aren't scratch sites are known to have been built with CakePHP? Are there any BIG users - Joomla list theirs on their site: MTV, UN etc. It really wasn't such a difficult question. I

Re: Cake Sites Stats

2009-02-25 Thread leop
Are there any reliable statistics for real sites built with Cake? #1 reliable does not go well with statistics ;) Number of downloads is a reliable statistic. #2 I don't really understand what you mean by *real* for that matter I am not familiar with *unreal* sites either real: actually

DebugKit - where to put

2009-02-25 Thread zonium
It is mentioned here: http://thechaw.com/debug_kit/wiki/debugkitdebugger that Debugger::output('fb') can be used redirect all debugger messages to Firebug. But I am wondering where that command should be placed. Should it be in app_controller.php where we load 'DebugKit.Toolbar' component? Can

Re: Cake Sites Stats

2009-02-25 Thread mark_story
Well from gwoo's ohloh journal https://www.ohloh.net/accounts/gwoo/messages * 37,000 downloads of 1.2 between the release of 1.2 an 1.2.1 * book.cakephp.org 1.8million+ page views, with 74,000+ unique visits, over the last month. * 2000+ uniques / month using cakephp svn As for some 'names'

Re: Cake Sites Stats

2009-02-25 Thread Sam Sherlock
There are a few site listed here http://book.cakephp.org/view/510/Sites-in-the-wild a Sony Site, Mozilla Firefox Plugins and Snook's Blog these are all real wild. as for being in top 3 - I guess the bribes are being received by those who pull the right strings :) 2009/2/26 leop

Re: Plugins - Calling plugin App Controller from base application App Controller

2009-02-25 Thread adam
On Feb 25, 2:22 am, AD7six andydawso...@gmail.com wrote: On Feb 25, 7:36 am, adam abennett...@sbcglobal.net wrote: That's a shame, that makes a user plugin (half) pointless since you would still have to have the beforeFilter code outside the plugin Or entirely useful, since the code

Re: Ordered list of arbitrary objects

2009-02-25 Thread brian
You might also want to have a look at ExtendableBehavior or InheritableBehavior (check the Bakery) On Wed, Feb 25, 2009 at 4:41 PM, mscdex msc...@gmail.com wrote: One approach you may wish to take is to do the subclassing in the database itself. First, have a superclass table which contains

Re: Media View not downloading unless I set headers

2009-02-25 Thread brian
Have you checked your error log? A white screen typically means a fatal error. On Wed, Feb 25, 2009 at 5:49 PM, Mike Cook m...@epubbooks.com wrote: I am unable to get the Media View to force the download to start, no error is given other than it just lands on a blank page. Here's the

Re: Overriding findBy{Field}

2009-02-25 Thread brian
Just create a model method findByZip(), adjust the search param, and call Parent::findByZip($zip) I think I'd run $zip through a regexp to see if you need to pass the substring only, rather than potentially making 2 queries of the DB. This is an RE for Canadian postal codes:

Re: Overriding findBy{Field}

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 5:58 PM, mscdex msc...@gmail.com wrote: On Feb 25, 4:47 pm, psujohn psuj...@gmail.com wrote: What I'd like is some way to magically alter the magic findByZip method so that is provides the desired behavior without having to resort to changing every place that calls

a description about some cakephp improvement points

2009-02-25 Thread Marcelo Andrade
Hi all, Months ago, the company where I work decided to use php as another internal official language (java is mainly used). So, some people have made a report pointing out the pros and cons of some php MVC frameworks. After that, they recommended the ZF adoption. I disagree in some points of

Re: Ordered list of arbitrary objects

2009-02-25 Thread mscdex
On Feb 25, 8:58 pm, brian bally.z...@gmail.com wrote: You might also want to have a look at ExtendableBehavior or InheritableBehavior (check the Bakery) ExtendableBehavior is good for when your subclasses do not require extra attributes. This behavior simply utilizes a type attribute to

Re: a description about some cakephp improvement points

2009-02-25 Thread mscdex
On Feb 25, 10:10 pm, Marcelo Andrade mfandr...@gmail.com wrote: The framework is inadequate to create new records in tables that have only one autoincrement (or serial) field If I'm understanding this correctly, this is perfectly fine as far as CakePHP is concerned. In fact, most new database

Automagic JavaScript Validation

2009-02-25 Thread kaushik
I am using Automagic JavaScript Validation. for password i am using this code: 'password' = array( 'required' = array('rule' = array('minLength', 7), 'message'='Minimum Length of Password is 7'), ) It is working perfectly. but for another field I want to maintain the