Re: Advice about a Calendar

2008-03-28 Thread Sonic Baker
If it's an actual 'date picker' popup calendar for easily selecting dates you're looking for then here's the one I use: http://marcgrabanski.com/code/ui-datepicker/ If it's an actual server side calendar application then I don't know. I'd be interested to see one though. The one Chris suggested

Re: Unit Testing of cakephp 1.1 (not cakephp 1.2)

2008-03-28 Thread Sonic Baker
There is a test suite in cakeforge for 1.1. IIRC there are instructions for installing it there. I've only used it to test models and there are no fixtures. I use Selenium then to test my controllers indirectly through the UI. Let me know if you need more help. Might not be able to reply till

Re: How to develop an API

2008-03-05 Thread Sonic Baker
On Tue, Mar 4, 2008 at 2:16 AM, mbavio [EMAIL PROTECTED] wrote: this is a good place to starthttp://particletree.com/features/how-to-add-an-api-to-your-web-service/ look at the additional reading section at the end Sam D I was actually thinking and discussing this topic myself

Re: Do I develop user authentication or the site itself first?

2008-01-10 Thread Sonic Baker
I try to go with doing whatever gives the most business value first. This means whichever piece of functionality is most important in getting the application working in the shortest amount of time. You can then release this part to the testers immediately and get feedback early. However, on my

othAuth - Refresh session info

2008-01-10 Thread Sonic Baker
Hi all, I'm using othAuth with cake 1.1.x.x. I have a scenario where a user signs up for an account and then gets an email with an activation link. When the user clicks the link they can login. However, once logged in I want them to fill out their account profile. Once filled in I set their

RosSoft's head helper problem

2008-01-10 Thread Sonic Baker
Hi all, I'm using RosSofts head helper for 1.1.x.x It works a charm on my dev machine. However, when I upload the app to the test server it doesn't seem to add the .js extension to the javascript includes. It does add the .css extension for the stylesheets though. I know this is built into 1.2

Re: YAMMY!: feed your migrations faster

2007-11-06 Thread Sonic Baker
Now things are really falling into place. I haven't used YAMMY yet but I can't wait. Been meaning to use migrations for a long time but have been put off by the fact that there isn't any way to actually migrate the data once a structural change is made. E.g. What if I decide I want to further

Re: Code Style Fanaticism

2007-10-03 Thread Sonic Baker
Sorry to butt in but, If the bakery code is intelligently to recognise different styles then would it be much of a job to automatically reformat the submitted code rather than have the user do it? Couldn't it call the indent program via the command line? Just wondering cause I also prefer the

Re: Moving to Cake App while updating the Legacy system

2007-09-26 Thread Sonic Baker
Hi Dolce, Thanks for the tips. Cheers, Sonic On 9/25/07, dolce [EMAIL PROTECTED] wrote: I think you need to use a sync tool like Spectral Core SYNC Another way is to use writable views to build a second scheme on the same model dolce On 25 Sep., 22:07, Sonic Baker [EMAIL PROTECTED

Moving to Cake App while updating the Legacy system

2007-09-25 Thread Sonic Baker
Hi Bakers, I'm building an In-House app with CakePHP. When I start the testing phase I'd like to update the old legacy database (on a different server) aswell so that (a) there is a fall back in place (b) features in the old system can still be used while they are being developed in the cake app.

Re: Database Migrations ala RoR

2007-09-24 Thread Sonic Baker
hmmm I was thinking along the lines of introducing a new association. So a field with values in one table may have to be replaced with a foreign key field to a new/existing table holding the data previously in the original table. The new field in the original table would then have to be

Re: Database Migrations ala RoR

2007-09-17 Thread Sonic Baker
Hi there, On 9/11/07, gonzoprosperity [EMAIL PROTECTED] wrote: //populate it with some default data $this-execute(INSERT INTO users (...) VALUES (...)); Does this answer your question? I was wondering if, once the new schema is defined, can the data from the old structure be imported

Re: Multiple user types tables

2007-09-17 Thread Sonic Baker
Hi there, Have a look at this thread: http://groups.google.ie/group/cake-php/browse_thread/thread/a2a140878b3094f1/a6c855f2b86a0b82?lnk=gstq=head+meltrnum=1hl=en Cheers, Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Database Migrations ala RoR

2007-09-11 Thread Sonic Baker
Hey there, Just wondering, does your Migrations handle the data as well as the schema. That would certainly be of interest to me. Cheers, Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: 1.2 ready for prime time?

2007-09-10 Thread Sonic Baker
My EURO 0.02 I would personally like to applaud and thank the CakePHP team for remaining focused on releasing *quality* software rather than pumping up their version numbers like so many commercial products. I am quite happy to wait as long as it takes for 1.2 in the knowledge it'll be solid

Re: AuthComponent - Alternate ways to hash passwords?

2007-09-10 Thread Sonic Baker
On 9/6/07, francky06l [EMAIL PROTECTED] wrote: - do not use the name password in the views (login or other user management views), but another dummy name. Handle this dummy name (hash or whatever and replace in your password field) prior to save. Why not use the name 'password'? Does it

Re: AuthComponent - Alternate ways to hash passwords?

2007-09-10 Thread Sonic Baker
... I had to change the field name to be avoid hashing.. On Sep 10, 10:16 pm, Sonic Baker [EMAIL PROTECTED] wrote: On 9/6/07, francky06l [EMAIL PROTECTED] wrote: - do not use the name password in the views (login or other user management views), but another dummy name. Handle

Re: Dynamic views

2007-08-28 Thread Sonic Baker
On 8/25/07, Geoff Ford [EMAIL PROTECTED] wrote: The hard part is deciding the format that you are going to use to store the field data. Sounds like it could be a very useful set of components/helpers and would be a great addition to the Bakery. Hey Travis, Have a search for the EAV

Re: where to put independent functions

2007-08-23 Thread Sonic Baker
What's wrong with the Vendor directory? On 8/17/07, David Cole [EMAIL PROTECTED] wrote: From my understanding, independent functions should go into their respective model file. That way you can call the function from the controller like $this-Model-func(). Right? Dave -Original

Re: where to put independent functions

2007-08-23 Thread Sonic Baker
okie do! On 8/23/07, rtconner [EMAIL PROTECTED] wrote: I'm pretty sure bootstrap.php was made to hold this type of single function. vendors is where you would would put it if you had a whole library you wanted to use. On Aug 23, 2:59 pm, Sonic Baker [EMAIL PROTECTED] wrote: What's wrong

Re: Ridiculous User Management Head Melt

2007-08-10 Thread Sonic Baker
Hey Geoff, Thanks very much for the replies. Think I have it all straightened out in my head now. Cheers, Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Ridiculous User Management Head Melt

2007-08-07 Thread Sonic Baker
Hi Geoff, Thanks very much for your response. Just got to view it now. I'll have a look into your suggestions but they sound good. On 8/2/07, Geoff Ford [EMAIL PROTECTED] wrote: I hope this seems clear enough. On the permissions and profiles, I think so. Just to clear another part up; Am I

Ridiculous User Management Head Melt

2007-08-01 Thread Sonic Baker
!-- @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } -- Hi Bakers, I have a problem and I could really use some advice. Apart from having multiple types of groups defined in my ACL's I want certain users to have extra associated information. For example: General Staff:

Re: Mambo to use CakePHP for V5

2007-07-27 Thread Sonic Baker
I've been a Drupal user for about 6 Months now. I picked Drupal because it was mentioned a few times that it was one of the most flexible. I had no intention of switching. However, the Mambo foundation's decision to move to CakePHP will more than likely make myself (and possible many other bakers

Re: admin backend best practice

2007-07-04 Thread Sonic Baker
I've been wondering about the same thing for a while now. I came to the conclusion that a different for the admin would *almost* give the impression of a whole separate backend anyway. The thing I'm wondering is how best to set the layout for the admin. I was thinking about using either

Re: Instructions for Upgrading to 1.2

2007-07-03 Thread Sonic Baker
On 6/30/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote: Guess this is a windows program. I'll search for a Linux equivalent try meld or for that matter kompare also works decently Cheers Tarique, I'll give those a shot. Sonic --~--~-~--~~~---~--~~ You

Re: Instructions for Upgrading to 1.2

2007-06-29 Thread Sonic Baker
Thanks, Guess this is a windows program. I'll search for a Linux equivalent Cheers, Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Administration tasks

2007-06-29 Thread Sonic Baker
Just wondering how you would plan to control the visibility of the extra admin links? Keeping in mind that best practice is to minimise logic in the views, would you pass the links in through the controller, render a different menu element, or some other way? Cheers, Sonic

Re: Administration tasks

2007-06-29 Thread Sonic Baker
On 6/29/07, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/29/07, Sonic Baker [EMAIL PROTECTED] wrote: Just wondering how you would plan to control the visibility of the extra admin links? Keeping in mind that best practice is to minimise logic in the views, would you pass the links

Instructions for Upgrading to 1.2

2007-06-27 Thread Sonic Baker
Hi All, I've been asking around on the IRC from time to time about how exactly to upgrade an app from the 1.1.x.x framework to the 1.2.x.x version. I 've tried a few time but felt uneasy about a couple of things and haven't been able to get any definite answers which could fully ease the

Re: Instructions for Upgrading to 1.2

2007-06-27 Thread Sonic Baker
Hey there Chris! On 6/27/07, Chris Hartjes [EMAIL PROTECTED] wrote: Create a branch of your code at the point you want to start updating to CakePHP 1.2.x. Very simple. Can you elaborate on how this will tell me which files to remove and which to add in order to bring the 'app' to the same

Re: Instructions for Upgrading to 1.2

2007-06-27 Thread Sonic Baker
On 6/27/07, Chris Hartjes [EMAIL PROTECTED] wrote: Once you fix things you can do a diff on the two directories (old version and 1.2 version) to get an idea on what has changed. I tried doing this directly on the 'app' directories of the two branches in the CakePHP repository itself.

Re: Instructions for Upgrading to 1.2

2007-06-27 Thread Sonic Baker
Hey Francky! Thanks for your response. On 6/27/07, francky06l [EMAIL PROTECTED] wrote: There are 2 approaches I guess : - use cake 1.2 and run it, correct until all errors are cleared - use 1.2 and make the best of it in an existing application (needs quite an effort for re-write)

Re: Instructions for Upgrading to 1.2

2007-06-27 Thread Sonic Baker
Hi Jonathan, First of all I appreciate your response so thanks. Unfortunately though, I was talking about the files in the 'app' directory only. This is because I don't version the cake core, (only my individual 'app's) so I'm really looking for the files I should add/remove from my 1.1 app in

Re: Instructions for Upgrading to 1.2

2007-06-27 Thread Sonic Baker
Hi Jonathan, IIRC there are also some files and directories (such as the 'locale' directory) in the 1.2 app directory which aren't included in the 1.1version. And from what I remember, there are some files in the 1.1 branch which aren't in the 1.2. It could be that my app dir is from an old

Re: Commented Version of CakePHP Manual

2007-06-18 Thread Sonic Baker
Out with ya! Sonic --~--~-~--~~~---~--~~ 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

Drake and Permissions

2007-05-01 Thread Sonic Baker
Hi, I was just wondering, of those of you using Drake, how are you handling ACL within your cake apps. I'm trying to restrict access to certain actions in my app and wondered if this could easily be done within Drake. I have the module itself up and running but don't see anywhere I can set such

Re: Scaffolding question

2007-04-18 Thread Sonic Baker
You can use the bake.php script for generate scaffolded Models, Views, and Controllers. This generates actual code so you don't have to set the $scaffold variable. You can then remove the select box from the view code and edit the controller to set the customer_id there. Cheers, Sonic

Re: Best place to put Custom Object file code

2007-04-17 Thread Sonic Baker
Hi Steven, You can put the custom/third party files in the 'vendors' directory and access them from the controller/component using the 'vendor()' function. E.g. put your custom class in '/vendors/my_classes/my.class.php' Call it from the controller like so: vendor('my_classes' . DS .

Re: Scaffolding question 2

2007-04-17 Thread Sonic Baker
Your table structure should be something like: students (id, name), awards_ students (student_id, award_id) awards (id, name, award_type_id), award_types (id, award_name) Your model associations should then be: Student hasAndBelongsToMany Award, Award hasOne AwardType Set the reverse

Re: Scaffolding question

2007-04-17 Thread Sonic Baker
If you just select the customer you want and save it the student will only be associated to that customer. If you want that customer to be already selected prior to going to the add student page, set the student id in the URL or session and edit the CustomersController::add() action to get the id

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-04-17 Thread Sonic Baker
On 4/17/07, Mariano Iglesias [EMAIL PROTECTED] wrote: Be a little patient and you are about to see some awesome stuff in Cake test suite to test controllers. Wicked I'm going to hold you to that now Mariano :) Sonic --~--~-~--~~~---~--~~ You received

Re: one parent app for many child apps

2007-04-12 Thread Sonic Baker
I'm wondering would proper branching/merging in an svn repo achieve the affects you require. Although, there is something attractive about what you are suggesting. Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Accessing join table attributes.

2007-03-29 Thread Sonic Baker
Hi Orz, There is a way but I wouldn't call it elegant. You basically have to add an id field to the table and then bind it on the fly when you want to use it. Look to bindModel() in the API. You would bind it as a hasMany Membership. You'll also have to create a Membership model. Cheers, Sonic

Re: Proposal for killer app

2007-03-29 Thread Sonic Baker
+1 on the sex starved models. +1 on the standardisation of modules/plugins +1 on the idea of building something to show off. As I said before, php in general (I repeat PHP, not cake) is missing a good accounting/ledger application. If cake could be used to fill this gap, I don't see how it could

Re: Admin Routing Techniques

2007-03-27 Thread Sonic Baker
Hi Guys, Thanks again for the further suggestions. @french13: Unless I'm not following what you are suggesting, I don't think you're following what I'm asking, (in which case I'm not surprised when I come out with sentences like this one :) I'm just looking for the best way to minimise code

Re: Testing Plugins

2007-03-27 Thread Sonic Baker
Hi Guys, On 3/27/07, hydra12 [EMAIL PROTECTED] wrote: I prefer the first option, but like I said, I don't have a lot of experience with this yet. Me too. Definitely. I haven't made any plugins myself yet so I can't test this but have you tried just calling the plugin test files from a group

Re: Admin Routing Techniques

2007-03-27 Thread Sonic Baker
Hi Mariano, On 3/25/07, Mariano Iglesias [EMAIL PROTECTED] wrote: Or even better, no parameter needed: function admin_add() { return $this-setAction('add'); } This works a treat, cheers. Sonic --~--~-~--~~~---~--~~ You received this message

Re: Admin Routing Techniques

2007-03-25 Thread Sonic Baker
Thanks for all the replies people, On 3/25/07, Mariano Iglesias [EMAIL PROTECTED] wrote: Instead do: function admin_add() { return $this-setAction('add'); } Just wondering if setAction() allows rendering of a different view after the call? Like: function admin_add() {

Does Cake's array conventions mean Low Orthogonality/Cohesion

2007-03-21 Thread Sonic Baker
Hi there, I'm looking for someone to give me a hug and tell me everything will be ok. Thinking in terms of low coupling of classes again, it struck me that passing your applications method parameters as associative arrays may be a step in the wrong direction. For example, I have a cake component

Re: Does Cake's array conventions mean Low Orthogonality/Cohesion

2007-03-21 Thread Sonic Baker
Hi Nate, I knew you'd answer this one :) On 3/21/07, nate [EMAIL PROTECTED] wrote: First of all, the coupling would not be any looser even if you used objects. The component would just be tightly coupled to an object property instead of an array key. Second of all, this is what afterFind

Re: Does Cake's array conventions mean Low Orthogonality/Cohesion

2007-03-21 Thread Sonic Baker
Yo Felix, On 3/21/07, Felix Geisendörfer [EMAIL PROTECTED] wrote: I'm looking for someone to give me a hug and tell me everything will be ok. I'll go ahead and do this: *hug* Thanks dude :) When however you are writing a database depended application you have to accept that field names

Re: cakePHP and Version control Poll

2007-03-10 Thread Sonic Baker
Hi Sam, On 3/9/07, Samuel DeVore [EMAIL PROTECTED] wrote: Sonic have you thought of getting all these responses gathered up (and maybe seeking more details from people and drafting a Bakery Article? hmmm... I hadn't until now. When I first asked the questions I thought it was just me having

Re: Cake Recipes cancelled

2007-03-10 Thread Sonic Baker
Hello all, Please forgive me as I'm about to throw a huge spanner in the works. I'm not trying to cause any trouble, I'm just wondering if it's possible to turn a bad situation into a beneficial one. When something like cakePHP comes along, it's hard to keep everyone happy all the time. Feelings

Re: cakePHP and Version control Poll

2007-03-10 Thread Sonic Baker
Hi jitka, On 3/10/07, jitka [EMAIL PROTECTED] wrote: in one of above posts is mentioned svk, so if You're curoius (or want to mention it in Your bakery article, there is saved paste in bin about it: http://bin.cakephp.org/saved/160 svk is set of perl scripts which works with svn

Re: cakePHP and Version control Poll

2007-03-09 Thread Sonic Baker
Hi Martin, AD7six Thanks very much for your responses. Very much appreciated. Sonic --~--~-~--~~~---~--~~ 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

Re: cakePHP and Version control Poll

2007-03-08 Thread Sonic Baker
On 3/7/07, scott lewis [EMAIL PROTECTED] wrote: Hopefully that's not too boring a tour. s. Hi Scot, Not at all. Quite interesting in fact. Thanks for sharing. I was using SVK for a while but came across a bug that frightened me and after posting to the mailing list numerous times, I got no

Re: CakePHP Test Suite

2007-03-08 Thread Sonic Baker
Hi Roger, On 3/8/07, Roger [EMAIL PROTECTED] wrote: (URL /tests/groups was not found on this server). It's best to use the test suite from outside the framework. This can be done as follows by avoiding the 'TestsController' by calling the URL as follows: URL /test/groups ---(leave out the

Re: cakePHP and Version control Poll

2007-03-08 Thread Sonic Baker
Hey there Sam, On 3/8/07, Samuel DeVore [EMAIL PROTECTED] wrote: for the vendors I live by the http://svnbook.red-bean.com/nightly/en/svn.advanced.vendorbr.html#svn.advanced.vendorbr.svn_load_dirs script makes life much easier for me. I take it this means you use the vendors

Re: cakePHP and Version control Poll

2007-03-07 Thread Sonic Baker
On 3/5/07, AD7six [EMAIL PROTECTED] wrote: On Mar 5, 9:52 pm, Sonic Baker [EMAIL PROTECTED] wrote: Hi bakers, I know this has been touched on before but I would like to pay a revisit if you'll bare with me for a few minutes. With the advent of cakePHP 1.2 on the horizon people

Re: cakePHP and Version control Poll

2007-03-07 Thread Sonic Baker
On 3/5/07, Grant Cox [EMAIL PROTECTED] wrote: I'm using (b) at the moment too, but the application started as just having my app folder in version control, and the core cake libs outside of this (c). So my folder structure is more like trunk/ trunk/libs/ trunk/libs/cake_1.2.x.x_branch

cakePHP and Version control Poll

2007-03-05 Thread Sonic Baker
Hi bakers, I know this has been touched on before but I would like to pay a revisit if you'll bare with me for a few minutes. With the advent of cakePHP 1.2 on the horizon people have been coming out with some nice additions to the framework which require external libraries to be added to the

Re: Thesis ideas

2007-03-05 Thread Sonic Baker
Hi Felix, I've noticed a serious lack of good accounting packages written in PHP. Few seem to be maintained any more and none even come close to SqlLedger ( http://www.sql-ledger.org/) which is written in Perl. Just thought since you're into accounting, this might be a good one for you. My €0.02

Re: anyone know the expected 1.2 release date?

2007-01-22 Thread Sonic Baker
It seems everyone is Hungry for cakePHP 1.2, including myself since there is all this talk of the added functionality. As one of my best friends' old man used to say: Hunger is the best sauce! Hold that Ranch dressing Larry ;) Sonic --~--~-~--~~~---~--~~ You

Re: ER Tools

2007-01-05 Thread Sonic Baker
On 1/5/07, NOSLOW [EMAIL PROTECTED] wrote: Is this just bad DB design to not define the FK's in the tables? Will it have negative affects on the MySQL DB performance? Hi there, I assume, by FK's you actually mean PK's acting as FK's (since the default engine MyISAM doesn't support FK's).

SMS with Cake

2006-12-08 Thread Sonic Baker
Just wondering if anyone has come across the need to send SMS messages with a cakePHP application before? I presume this is done in a controller and then saved to the model along with the return code from the SMS provider. Just wondering what methods people have used, ie: Send the message in the

Re: DB Migrations

2006-11-27 Thread Sonic Baker
Thanks Joel. --~--~-~--~~~---~--~~ 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

Re: bake.php directory exists

2006-11-17 Thread Sonic Baker
On 11/16/06, gazzur [EMAIL PROTECTED] wrote: Anyone know what I should be doing? Have you tried the -project switch? bake -h for details. HTH Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Quest for the holy grail of the cakePHP-Eclipse setups

2006-11-10 Thread Sonic Baker
Hi guys,Thank you all for your replies. Your input has been very much appreciated.Cheers,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Quest for the holy grail of the cakePHP-Eclipse setups

2006-11-08 Thread Sonic Baker
There has been some talk on the list about the kinds of editors people use for cakePHP development. Some people have mentioned Eclipse (among others) for a good all round IDE. I personally have been using both 'kate' and 'Quanta' (built on top of kate) for my cakePHP development and while I have

Re: This Mailing List Isn't on Google For No Reason

2006-10-31 Thread Sonic Baker
On 10/29/06, Jon Bennett [EMAIL PROTECTED] wrote: Having run a mailing list that ran into just such growing pains, I can suggest splitting up this group into two groups. One group will be for New Cake Users, aka newbies, and the other one will be for intermediate to advanced users.I think that's

Re: Nested categories controller and routing

2006-10-31 Thread Sonic Baker
On 10/31/06, Eric C Blount [EMAIL PROTECTED] wrote: A really quick search of the group for routing came up with many examples, but all you need to do is put something like the following in your /app/config/routes.php:$Route-connect('/articles/:param1', array('controller' = 'yourController',

Re: MD5 Function

2006-10-25 Thread Sonic Baker
When I started my first php project I didn't know PHP and I didn't have an Internet connection. I had previously downloaded the manual though.Everything I needed to know was in there (and the comments). php.net is your friend. --~--~-~--~~~---~--~~ You received

Code or Databases????

2006-10-25 Thread Sonic Baker
Hi there,I've read before that it's faster and even recommended to sum values at the DB level through queries. So if I wanted to get a list of items sold between certain dates, calculate tax totals, etc I should do this through queries. However, I'm not sure how portable it would be to do this

Re: Code or Databases????

2006-10-25 Thread Sonic Baker
Hi Chris,Thanks for your response. I guess to stick with cake's portability I'll do these sort of tasks in the Domain logic.For future reference, if anyone's wondering about this question, and they are good enough to search the list before posting, here's a link to help you decide:

Re: This Mailing List Isn't on Google For No Reason

2006-10-25 Thread Sonic Baker
I was just thinking,How about using the rating system on the group to rate good posts? Does this increase the chances that the good posts come up first?Another thing I was thinking was this:Sometimes it's hard to find the answer to a question on the group when you don't know the lingo. So what if,

Dynamic Dynamic Bind

2006-10-25 Thread Sonic Baker
Hi there,I'm wondering if there's a way to dynamically load the fields into bindModel()?Basically I have a model method which I want to share between a few models. This method calls bindModel() to another Model but this bound model will be different depending on which model calls the method.

Re: Code or Databases????

2006-10-25 Thread Sonic Baker
Hi Chris,On 10/25/06, Chris Hartjes [EMAIL PROTECTED] wrote: That's a really great article.I've printed it out to read on thetrain ride home tonight.I'm doing some refactoring of an existingapplication (Rails, not CakePHP) and have to make some decisions about this very topic.Greatly

Re: Code or Databases????

2006-10-25 Thread Sonic Baker
Hi Nate,Thank you for your input.On 10/25/06, nate [EMAIL PROTECTED] wrote: Theoretical Example: Order hasMany OrderItem, OrderItem belongsToOrder, Item:This is interesting. I have these Modles, however my setup is Order HABTM Item (link table Items_orders). Then when I want to add items to the

Re: Code or Databases????

2006-10-25 Thread Sonic Baker
Hi Nate,On 10/25/06, nate [EMAIL PROTECTED] wrote: This is interesting. I have these Modles, however my setup is Order HABTM Item (link table Items_orders). Then when I want to add items to the order I use bindModel to create a hasMany association between Order and ItemsOrder. I'm interested to

Re: Dynamic Dynamic Bind

2006-10-25 Thread Sonic Baker
Hi Francky,On 10/25/06, francky06l [EMAIL PROTECTED] wrote: I do not see how you can achieve this since the model to bind willdepend of the current model. Unless you define a static array into theapp_model (base) and call a function there that can then know whichmodel you are calling from, I do

Re: having empty entry in selecttag selected

2006-10-24 Thread Sonic Baker
You didn't have to extend the helper at all.Nate was saying that by default the select tag in the html helper will add a blank list item.I think you thought that he was trying to say that you needed an empty element in the data array which is not the case. Sonic

Re: Moving methods to AppModel

2006-10-23 Thread Sonic Baker
Hi AD7six,It's not an abstract base class so I went for the latter option. I assume you mean: if(!class_exists (CartModel)) {...// CartModel class definition...}This seems to work but why??? How is the Class already being defined?Cheers,Sonic

Re: Copy data from one database to another

2006-10-23 Thread Sonic Baker
Hi Felix,Set the models to use in the $uses array in the controller:var $uses = array('Fraggle','Smurf');It's in the manual in the chapter on Controllers.Cheers,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Moving methods to AppModel

2006-10-23 Thread Sonic Baker
On 10/23/06, AD7six [EMAIL PROTECTED] wrote: using class_exists is a bit of a hack but avoids problems. Anyway, hth,AD7sixThanks AD7six,It certainly does help.Cheers,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Caching Caos

2006-10-23 Thread Sonic Baker
Hi there,Following from this post I've put a method in an intermediate Model class. At first I had a field name wrong in a call to bindModel(). After changing it to the correct field name however, it still calls the queries with the old field name. I suspected caching so I deleted the cache files

Re: Caching Caos

2006-10-23 Thread Sonic Baker
Oh man, This is so embarrassing. I had two copies of the Intermediate Model. One in app/ and one in app/models (from late last Friday evening). Please obliterate this mail from your mind and then get that part of your mind. Cheers for the help anyway, Sonic

Re: Dynamic Menu

2006-10-23 Thread Sonic Baker
Hi Sten,Thank you for your reply and code samples. I'm sure this will be a great help. I'll let once I get a change to try and implement the menu's.Cheers,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Cakephp projects on subfolder best practice

2006-10-23 Thread Sonic Baker
Hi there,I have my subdomain (e.g. app1.cake.localhost) pointing to app/webroot/index.php.I personally think this is the easiest best for me.HTH,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

Re: Moving methods to AppModel

2006-10-22 Thread Sonic Baker
Hi Ralph,Here's one of the explanations that brought the composite pattern to my attention: http://devzone.zend.com/node/view/id/7Incidental I'm having trouble getting the Inheritance method to work. I keep getting: Fatal error: Cannot redeclare class cartmodel in

Re: Using Simpletest and the Cake testing framework... with models

2006-10-22 Thread Sonic Baker
Hi there,See if the following helps: // testing insertfunction test1(){ $data = "" // stuff here ); $this-assertTrue($this-user-save($data));}// testing fail to insert duplicate datafunction test2() { $data = "" // same stuff here ); $this-User-cacheQueries = false;

Re: Dynamic Menu

2006-10-22 Thread Sonic Baker
Hi there,I'm also looking for a solution to this problem but haven't gotten round to it yet. I was searching cakeforge for one but there doesn't seem to be one.I was thinking of something like a series of nested 'tab menus' which look something like the tab menus on the cake API. Once a tab is

Re: Refactoring Views

2006-10-22 Thread Sonic Baker
Hi guys,Thank you your responses and code samples. Some interesting things to think about. Your input has been very much appreciated.Cheers,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Moving methods to AppModel

2006-10-20 Thread Sonic Baker
Hi,I have a model method which I'd like to use in two different models. If I move it into AppModel it'll get loaded for every model which I could be inefficient (IIRC). So as far as I can see I have 3 further choices. 1. Include the Model in the $uses[] array of the controller I want to call the

Re: Moving methods to AppModel

2006-10-20 Thread Sonic Baker
On 10/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 2. Make an intermediate model; inherit this from AppModel and Inherit the two models from this.that was the first thing i thought about too.and i think it's thecleanest, best, most-OO way ;-) Hi Deiter,Thanks for your advice. I was reading

Re: Moving methods to AppModel

2006-10-20 Thread Sonic Baker
Hi Marcelo,Thanks for your input. Taken on board.Cheers,Sonic --~--~-~--~~~---~--~~ 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

Re: Refactoring Views

2006-10-20 Thread Sonic Baker
Hi Matt,Thank you for your reply.I was just using the forms generated form Bake as an example to illustrate the types of duplication I mean.That meta-framework of yours sounds wonderful. Is it hard on resources? If you weren't using it, how would you answer my questions above?Cheers,Sonic

Re: Faking OO on RDBMS

2006-10-12 Thread Sonic Baker
Woops,Sorry, forgot to include the link. Here you go:http://www.architecturejournal.net/2006/issue8/F6_Nordic/default.aspx HTH,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Faking OO on RDBMS

2006-10-11 Thread Sonic Baker
Hi Allan,Is this any use to you? I haven't tried it but was looking into it for a while.HTH,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: My Cake development environment

2006-10-11 Thread Sonic Baker
Hi Langdon,Sorry it took so ling to respond but I was off since Thursday. I am not entirely sure how your build script could be any less securethan any file that gets executed on your system? Can you elaborate on the situation you were thinking of?I was just expressing my concerns about

  1   2   >