Re: How do I make a Behavior?

2007-07-31 Thread [EMAIL PROTECTED]
Query: test Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'test' at line 1 [CORE/cake/libs/model/ datasources/dbo_source.php, line 463] On Jul 31, 7:09 am, "Dr. Tarique Sani"

Re: Help with project design

2007-07-31 Thread housebolt
I can't get too specific since I don't know all of the details involved, but here's what I do know, You'll want to create models for ALL of your tables. The reason behind this is the nature of ActiveRecord, which is the main structure for data abstraction in Cake. You use activerecord in cake to

Re: How do I make a Behavior?

2007-07-31 Thread Dr. Tarique Sani
On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Query: test > > Warning (512): SQL Error: 1064: You have an error in your SQL syntax; > check the manual that corresponds to your MySQL server version for the > right syntax to use near 'test' at line 1 [CORE/cake/libs/model/ > datasour

Re: Easy problem, not all that easy to figure out (set function)

2007-07-31 Thread DrLaban
That worked ace! Thanks! Regard DrLaban On Jul 29, 6:22 pm, Gorka <[EMAIL PROTECTED]> wrote: > If I understood you right, you are overwritting the value of 'gallery' > with the second call to $this->set(), when you wanted to merge both > values. Try preparing your data first, then setting 'gall

Re: Reducing prototype?

2007-07-31 Thread airrob
I use Protopacked, which is a packed version of either Prototype and Scriptaculous by themselves, or Protoculous, which is both of them combined into one file. Read the readme for instructions and be sure to use Gzip. http://groups.google.com/group/prototype-core/files --~--~-~--~~-

Deactivate Sessions Completly

2007-07-31 Thread Freight
Hi, I want completly deactivate the session functionalety from cake so that no session is started at all. I tried to comment out CakeSession and SessionComponent, however it hasnt the right effect. Has anyone a clue, what to do? Thanks Freight --~--~-~--~~~---~--~-

Re: How do I make a Behavior?

2007-07-31 Thread Bob Voorneveld
What stupid, thanks for your help! 2007/7/31, Dr. Tarique Sani <[EMAIL PROTECTED]>: > > On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > Query: test > > > > Warning (512): SQL Error: 1064: You have an error in your SQL syntax; > > check the manual that corresponds to your MySQL

ajax->editor and saving just one field

2007-07-31 Thread willard
Apologies for the slightly newbie email - Im finding my way around the cake API a little tricky Basically I'm trying to do inplace editing. Key elements (if you are coming across this post looking as to how to do it) are: 1. charsetTag('UTF-8'); ?> link('prototype'); ?> link('scriptaculous.js? lo

Re: Newbie Introduction Book ... reviews anyone?

2007-07-31 Thread joelmoss
I had a quick look at your book. It looks great. But I do have one issue with it. I know it is an early draft, but it seems to me that more than half of the content is all about how to setup PHP and MSQL, etc. There are a million and one books about this, so if I were you I would concentrate on Ca

Re: Deactivate Sessions Completly

2007-07-31 Thread Grant Cox
define('AUTO_SESSION', false); in your app/config/core.php will stop them from being automatically started. On Jul 31, 6:43 pm, Freight <[EMAIL PROTECTED]> wrote: > Hi, > > I want completly deactivate the session functionalety from cake so > that no session is started at all. I tried to comment

Component, Model, or Vendor?

2007-07-31 Thread starkey
Good morning, I'm porting an LDAP connector to Cake and am trying to figure out the best way to do it without cutting it up into pieces. Basically, the connector authenticates someone against LDAP and then loads relevant LDAP data (and some other data) into the session. So the object needs acce

Re: Best Practice for Views

2007-07-31 Thread starkey
Couldn't you create an Element for the data? http://manual.cakephp.org/chapter/views On Jul 30, 6:58 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > Are you talking about several different "skins", but really the same > data and presentation? Or are you talking about some non-trivial data > calculat

Re: Component, Model, or Vendor?

2007-07-31 Thread Samuel DeVore
Have you looked at the articles in the bakery on LDAP use.

Re: Component, Model, or Vendor?

2007-07-31 Thread starkey
Yeah, I've read those; I need to keep the business logic we have in our connector. Thanks! On Jul 31, 9:54 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > Have you looked at the articles in the bakery on LDAP use. > > >

Re: Cake PHP running dead slow

2007-07-31 Thread NOSLOW
gwoo, Sorry to keep this off topic, but the matter of best practices and proper uses of the var $uses and loadModel (and now ClassRegistry) is something that has eluded me for quite some time. As indicated by posts to this thread, I seem to be not alone on this. What (little) I do know is that i

Load only some record of a DB table in a model

2007-07-31 Thread [EMAIL PROTECTED]
Hi I'm a newbie with Cake. I have a question. Can I load in a model only some records of a Db table (for example I do a SQL query to get these records)? Now can I do this? Many Thanks Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Load only some record of a DB table in a model

2007-07-31 Thread starkey
Yes, I believe so. Check out findAll, findAllBy... etc, here: http://manual.cakephp.org/chapter/models Regards, Shawn On Jul 31, 10:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > I'm a newbie with Cake. > I have a question. > Can I load in a model only some records of a Db table (

hasMany and editing

2007-07-31 Thread rv
Hi, I would like to know, if there is a good way of editing a Model with its associated hasMany relation. What I have is the following: A Model with news entries and a hasMany relation to Links. A Link consits just of a URL and a title. When I edit the News, I want to be able to edit all links

Re: Load only some record of a DB table in a model

2007-07-31 Thread [EMAIL PROTECTED]
Yes ok But I would that the model directly loads the records from table , I don't want to rewrite all function On 31 Lug, 15:37, starkey <[EMAIL PROTECTED]> wrote: > Yes, I believe so. Check out findAll, findAllBy... etc, > here:http://manual.cakephp.org/chapter/models > > Regards, > Shawn > >

Re: Load only some record of a DB table in a model

2007-07-31 Thread Chris Hartjes
On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Yes ok > But I would that the model directly loads the records from table , I > don't want to rewrite all function Then create a method in your model that does it. -- Chris Hartjes Senior Developer Cake Development Corporation My mot

Re: Load only some record of a DB table in a model

2007-07-31 Thread [EMAIL PROTECTED]
For example ... If I change the __construct method I can get the result that I want? On 31 Lug, 16:01, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > Yes ok > > But I would that the model directly loads the records from table , I >

Helpers in Production

2007-07-31 Thread BC
Has anyone else run into the problem of not having their helpers get passed into the view in production mode? I declare them in my AppController, as each controller uses the same helpers. This works fine in development mode, but in production mode it doesn't want to go through, as seen by debug($t

how to perform this query

2007-07-31 Thread rtanz
hi i am trying to perform an sql query but am getting an error. This is my membership model, as the action will be triggered whenever a new membership is created. Then i will like to pull the data shown in the sql query and save that in the Tasklist model. here is the code and error: Tasklist->qu

Menu/Multiple view confusion

2007-07-31 Thread [EMAIL PROTECTED]
I've decided to dump Drupal - far too much work to make it jump through MY hoops, but I've a slight confusion about Cake. I generally get the MVC thing - but can't see how I combine multiple views on the same page: > An item detail page that also contains a dynamic menu I can see that I'd have a

Re: Best Practice for Views

2007-07-31 Thread [EMAIL PROTECTED]
Thanks for the reply! The problem I am running into is that I need different views for the same information. For example, when someone visits http://www.some.com/controller/view/1 it will show say a list of links. In http://www.some.com/controller/view/2 it will show similar information from t

$access, what does it mean?

2007-07-31 Thread Steveston
Hi there, I am working on a cake app. I find there are many instances of $access['SOME_CAPITAL_WORD'] in the /view/default.phtml Can anybody suggest me what does it mean? Thanks, The following is a piece of code: params['controller'] == 'courses' || $this->params['control

Re: Load only some record of a DB table in a model

2007-07-31 Thread Chris Hartjes
On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > For example ... > If I change the __construct method I can get the result that I want? I don't think you have explained *what* it is you want. When you explain that, I'm sure there is a solution. Everything you do will require you to

Re: how to perform this query

2007-07-31 Thread Chris Hartjes
On 7/31/07, rtanz <[EMAIL PROTECTED]> wrote: > ERROR: > Notice: Undefined property: Membership::$Tasklist in W:\www\cake\app > \models\membership.php on line 9 > > Fatal error: Call to a member function query() on a non-object in W: > \www\cake\app\models\membership.php on line 9 > > > > > Where

Re: Best Practice for Views

2007-07-31 Thread starkey
I think I understand... It sounds to me like you should have two actions, not one: http://www.some.com/controller/viewList/ http://www.some.com/controller/viewTable/ Having one view to encapsulate two doesn't sound correct... but I'm still new at this myself. On Jul 31, 12:48 pm, "[EMAIL PROTEC

Re: Calling functions in a Controller

2007-07-31 Thread peterhf
Thanks for the reply, Grant. The "$this->function build_resume()" is a typo, I did indeed try "$this->build_resume()". Your comment about "$sequence=null" is appropriate but more importantly it pointed me in another direction which will lead to a solution of the underlying problem - that build_res

Re: ajax->editor and saving just one field

2007-07-31 Thread willard
OK got this working - not sure its the *best* way though In your view: editor('edit-address','update?name=address&id='. $participant['Participant']['id']); ?> i.e. use the GET param to pass through an id and the field name In your controller: $this->autoRender = false; if(!empty(

Re: how to perform this query

2007-07-31 Thread rtanz
well that is my problem, how should i go about doing this? the Tasklist model itself is not really related to the Membership model. The thing is that when a User is given Membership to a Module, I would like to build a Tasklist for that user (a to do list of things he has to do within this member

Re: A little (and maybe silly) problem

2007-07-31 Thread Rafael Barbosa
well, I feel a bit ignored here. Anyway I found that when I checkout from the 1.2.x.x branch I get that error, but not from the 1.2.x.x trunk What is the difference? On Jul 31, 1:12 am, Rafael Barbosa <[EMAIL PROTECTED]> wrote: > By testing a little further I discovered that cake is setting: > >

Re: Cake PHP running dead slow

2007-07-31 Thread PiLLo
Hi housebolt, I would like to know a tool capable of simulate a heavy load on the server in order to identify which part of the code is producing a bottle neck. On development environment everything seems ok, but on production environment I set 0 the debugger flag , but I am missing something b

Re: Best Practice for Views

2007-07-31 Thread [EMAIL PROTECTED]
That's what I'll probably end up doing since I'm still prototyping this stuff out. I'm guessing it would be better practice to have multiple view files instead of combining several views in one thtml file and also having several different controller actions. I'm just left here thinking about oth

Re: how to perform this query

2007-07-31 Thread Beertigger
Try fixing that typo on 9, first. ; ) --~--~-~--~~~---~--~~ 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 [

Re: Usinf DATE_FORMAT Expression in findAll()

2007-07-31 Thread keys71
...or is the usage of an 'afterFind' - function the right method of resolution (because it works)? function afterFind($results) { foreach ($results as $key => $val) { if ( isset($val['Event']['validity_date']) ) { $dates = explode("-", $val['Event']['validity_d

Re: Best Practice for Views

2007-07-31 Thread starkey
I think that would be overkill (and unnecessarily complex). Besides, you'd need to setup a model to get to your views... I suggest sticking with how Cake does things (which is pretty darn good). On Jul 31, 2:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > That's what I'll probably end up

Re: Menu/Multiple view confusion

2007-07-31 Thread francky06l
Probably it will be an element, rendered in your view by $this- >renderElement .. ? On Jul 31, 6:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've decided to dump Drupal - far too much work to make it jump > through MY hoops, but I've a slight confusion about Cake. I generally > get th

Number displayed under flash messages

2007-07-31 Thread [EMAIL PROTECTED]
First, I apologize if this has been addressed many times before. My problem is quite simple. Whenever I use $this->Session- >setFlash('Message') to display a message, there is always a small number '1' underneath the flash message. Further, I've seen this displayed in other Cake apps, including Ba

Re: $access, what does it mean?

2007-07-31 Thread francky06l
are you sure you are not using something else (that you should mentionned) with cake ? On Jul 31, 5:57 pm, Steveston <[EMAIL PROTECTED]> wrote: > Hi there, > > I am working on a cake app. I find there are many instances of > $access['SOME_CAPITAL_WORD'] in the /view/default.phtml > > Can anybody

Re: Number displayed under flash messages

2007-07-31 Thread housebolt
Hmm, could you post some of the source code of the flash message that gets rendered on your page in html? I went back to look at this and I don't see it. It's probably a css thing. That 1 may be a 1 pixel X 1 pixel line that's supposed to be a css underline. Try getting rid of or changing #flashM

ajax/form/warnings problems

2007-07-31 Thread d'plus
I'm new to AJAX as well as to cakephp, so maybe my problem isn't difficult to You. i've tried to make something similar to http://grahambird.co.uk/cake/tutorials/ajax.php . I want to update div dynamically in my comments function. first of all - why I can't save my data into model with this: $

Model->query return array differences

2007-07-31 Thread starkey
Hello, I'm porting some code from one machine to another, one is PHP4/MySQL and the other PHP5/Oracle. When I run the below query I get two different array structures back (see below). I'm spending some time figuring out if it is PHP, Cake, or DBO driver differences. Has anyone run into this b

Re: Model->query return array differences

2007-07-31 Thread starkey
Never mind, I found that it is a difference in the DBO drivers. On Jul 31, 4:36 pm, starkey <[EMAIL PROTECTED]> wrote: > Hello, > > I'm porting some code from one machine to another, one is PHP4/MySQL > and the other PHP5/Oracle. When I run the below query I get two > different array structure

Linking a HABTM Association to extra data beside the tag?

2007-07-31 Thread Jim Newfer
Hello everyone, Last resort post, I am stuck. What I have done is create a "friends" system in my app. Although it is mildly tricky because the friends are the same thing as users, just using an alias. My tables look like this right now (only relevant information shown): Users: Id Fans_Users:

integrate third party ajax library

2007-07-31 Thread nagarjuna
I need to use a lot of hierarchicaly linked list boxes in my project, and I found a great 3rd party ajax library that does so here: http://www.salix.gr/ajax_linked_selectboxes I installed the library and I can get the demo running just fine. Embedded in my app, everything displays properly but no

Re: how to perform this query

2007-07-31 Thread rtanz
why is it a typo? --~--~-~--~~~---~--~~ 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

Re: Reducing prototype?

2007-07-31 Thread Howard Glynn
Thanks for all the hints, they were very useful. I especially liked the web perf link Brad posted which quite honestly should be required reading for anyone in this group http://developer.yahoo.com/performance/rules.html I was having some probs with prototype load time but bigger problems with ini

Re: Idea about bin

2007-07-31 Thread [EMAIL PROTECTED]
but bin is beter place becouse have count line... and is very nice place to put the code... much other code exeamples for peapol whos like case studies... On 30 Lip, 22:56, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 7/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > so maybe cak

Re: Number displayed under flash messages

2007-07-31 Thread Samuel DeVore
my guess is the '1' is a result of echoing a function that already takes care of the echo for you and so you are 'echo'ing out the result of the function (true) Sam D On 7/31/07, housebolt <[EMAIL PROTECTED]> wrote: > > Hmm, could you post some of the source code of the flash message that > gets

Re: $access, what does it mean?

2007-07-31 Thread Steveston
correction: this code snippet is from /app/views/default.phtml On Jul 31, 12:32 pm, francky06l <[EMAIL PROTECTED]> wrote: > are you sure you are not using something else (that you should > mentionned) with cake ? > > On Jul 31, 5:57 pm, Steveston <[EMAIL PROTECTED]> wrote: > > > Hi there, > > >

Turn off introspection?

2007-07-31 Thread [EMAIL PROTECTED]
I've noticed in some of the larger sites that I've built with cake that the database gets hit quite a bit to render even a single page. I'm using caching as much as possible, but for some pages that's not possible. Other frameworks, such as Django, don't use introspection and it seems as though t

Re: ajax/form/warnings problems

2007-07-31 Thread hb
'; return false? that isnt a good idea, this will keep the form form submitting any data so remove that. On 31 Jul., 22:35, d'plus <[EMAIL PROTECTED]> wrote: > I'm new to AJAX as well as to cakephp, so maybe my problem isn't > difficult to You. > > i've tried to make something similar > tohttp:

Re: Turn off introspection?

2007-07-31 Thread John David Anderson (_psychic_)
On Jul 31, 2007, at 3:54 PM, [EMAIL PROTECTED] wrote: > > I've noticed in some of the larger sites that I've built with cake > that the database gets hit quite a bit to render even a single page. > I'm using caching as much as possible, but for some pages that's not > possible. > > Other framewo

Re: how to perform this query

2007-07-31 Thread Geoff Ford
A Membership belongsTo User hasOne TaskList from what I can see. Once you have your associations set up properly try $this->User->TaskList Make sure the associations are set up correctly. You cannot call arbitrary members and just pray that CakePHP will figure out what you mean. It's good but

multiple forms of 1 model in same view

2007-07-31 Thread tyhilltx
Hi Bakers! I need to have a small set of input fields that belong to 1 model used 3 times in a view. The business reason is that a user can enter up to 3 different people's contact information along with some other information in one form (one view). My question is how do I set up the view (I'm

question about related model data

2007-07-31 Thread rtanz
hi i am looking at the model part of the manual, in the SAVING RELATED MODEL DATA section. here there is an example of saving a new post and a related comment. now if the post were to be deleted at a later stage, would the comment be deleted automatically (provided that 'dependent' is set to true

Re: $access, what does it mean?

2007-07-31 Thread Grant Cox
1. All cake views are either *.thtml or *.ctp, not *.phtml 2. All cake views are in app/views/CONTROLLERNAME/*.ctp , they are not directly in app/views. 3. $access['SOME_CAPITAL_WORD'] is not "standard" cake. You must have additional helpers / components in there, if you are not manually setti

Re: how to perform this query

2007-07-31 Thread rtanz
ok now i should have my associations set up correctly. associations can be seen here: www.jpgalea.com/erm.jpg What i need is that when a membership is created the following script is run in order to create a tasklist record. http://bin.cakephp.org/view/1697492973 this is the part where im gett

Re: question about related model data

2007-07-31 Thread Grant Cox
Yes, if dependent is set to true on an association, all associated models are deleted when this model is deleted. On Aug 1, 9:04 am, rtanz <[EMAIL PROTECTED]> wrote: > hi i am looking at the model part of the manual, in the SAVING RELATED > MODEL DATA section. here there is an example of saving a

Re: ajax/form/warnings problems

2007-07-31 Thread Geoff Ford
The session errors are probably because of whitespace after the closing ?> in images.php The reason you can't save with $this->data may have to do with the fact that there is no 'id' field in your comments table. In your comment model try adding a var $primaryKey = 'id_comment' Take a look at t

Re: Best Practice for Views

2007-07-31 Thread Grant Cox
One of the primary parts of Cake is to keep your data separate from your application interface (controllers), separate from your presentation (views). Changing one of these elements should not require modification to the others. You want the first two to remain the same, you just want different

Re: Calling functions in a Controller

2007-07-31 Thread Grant Cox
Ok, no worries. Just seeing the $this->function build_resume() set off an alarm bell that perhaps you didn't even know how to call a function, so I may have been a bit harsh :) On Aug 1, 3:38 am, peterhf <[EMAIL PROTECTED]> wrote: > Thanks for the reply, Grant. The "$this->function build_resume(

Using paginate() with conditions from a query form

2007-07-31 Thread gmarziou
Hello, I have written a "search" form with some criteria that are then combined as conditions used by paginate(). It works, I get the first page of my list of results but when I click on 2nd page I come back to the form. The paginated list is the generic index view generated by bake. My understa

Re: how to perform this query

2007-07-31 Thread Geoff Ford
Models should not really access other models but there are situations where it is needed/useful. The more correct method would be that the controller saves the User and then creates a TaskList for the newly created User. Geoff -- http://lemoncake.wordpress.com On Aug 1, 9:11 am, rtanz <[EMAIL P

Re: Best Practice for Views

2007-07-31 Thread Geoff Ford
I'm with grant - use one action with a differnt view as needed function action1($layout = 'list'){ // set data and other stuff switch ($layout){ case 'table': $this->render('action1_table'); break; default: $this->render('action1_list'); break; } } You could

Re: multiple forms of 1 model in same view

2007-07-31 Thread Geoff Ford
I have added section on Frequent Discussions for Multi-record forms. THe basics is you have to create the inputs yourseld rather than use the form helper. Use a structure like data[Modelname][count] [fieldname] as the name of the input then loop over data["Modelname"] in the controller action.

Re: Using paginate() with conditions from a query form

2007-07-31 Thread rtconner
Use the bakery my boy, use the bakery http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 http://wiki.kabturek.info/paginating_search_results On Jul 31, 5:22 pm, gmarziou <[EMAIL PROTECTED]> wrote: > Hello, > > I have written a "search" form with some criteria that are then > combine

Re: how to perform this query

2007-07-31 Thread rtanz
ok seems to be one step closer to solving this, by using the requestAction command. how can i insert the $ret data returned from the tasklist model into the tasklist controller's $this->data ? Membership model: function beforeSave() { $this->requestAction('tasklists/add'); retur

Re: Idea about bin

2007-07-31 Thread Chris Hartjes
On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > but bin is beter place becouse have count line... and is very nice > place to put the code... much other code exeamples for peapol whos > like case studies... > I don't know about you, but I have syntax highlighting in my blog so when I

Re: integrate third party ajax library

2007-07-31 Thread Chris Hartjes
On 7/31/07, nagarjuna <[EMAIL PROTECTED]> wrote: > After perusing this tutorial: > http://www.littlehart.net/atthekeyboard/2006/09/26/tutorial-integrating-phpswf-charts-with-cakephp/ > > I am beginning to think that including the library is not as simple as > I had first thought. Will I have to g

Re: how to perform this query

2007-07-31 Thread Beertigger
You've got $taklist_data and (later) $tasklist_data On Jul 31, 2:17 pm, rtanz <[EMAIL PROTECTED]> wrote: > why is it a typo? function beforeSave() { $taklist_data = $this->Tasklist->query("SELECT `memberships`.`module_id`, `memberships`.`user_id`, `tasks`.`id`as task_id

your own class files location?

2007-07-31 Thread Aaron Thies
Where should your own class files reside in cake? Is this what components are for? Aaron Thies Funky Dope aPhone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Re: multiple forms of 1 model in same view

2007-07-31 Thread tyhilltx
Fantastic, Geoff! Thanks for the direction and the quick response. I quickly scanned the thread you mentioned and it looks like it will work great. On Jul 31, 6:45 pm, Geoff Ford <[EMAIL PROTECTED]> wrote: > I have added section on Frequent Discussions for Multi-record forms. > > THe basics is

Re: Cake PHP running dead slow

2007-07-31 Thread housebolt
Are you guys caching anything. That will do tons for you. Also, I'd look into using InnoDB for your database if you're using MySQL. If I'm getting what you're telling me right, it looks like there are some configurations you need to tweak in your server config. If MySQL is what's crashing your ser

A quick note about BakeSale

2007-07-31 Thread housebolt
I was just taking a look at bakesale for some ideas on building my own shopping cart. Please don't use bakesale in its current form without looking into its security issues. This has nothing to do with Cake, and everything to do with the fact that BakeSale currently has NO security measures whats

Re: HABTM self-referencing question

2007-07-31 Thread [EMAIL PROTECTED]
you have your var $hasAndBelongsToMany messed up. Should be something similar to the following: var $hasAndBelongsToMany = array( 'FlowFile' => array('className' => 'FlowFile', 'joinTable' => 'contacts_flow_files',

Re: your own class files location?

2007-07-31 Thread housebolt
Usually yes, although if you want to use third party classes you can put them into the vendors folder. You'll have to change a few things in your code in order to use your library or class as a component, but in most cases it's not much of a change. On Jul 31, 6:25 pm, Aaron Thies <[EMAIL PROTEC

Re: Cake1.2 Validation fails but no messages shown..

2007-07-31 Thread burzum
I have the same problem. There is no output of an error message in my view but pr($this- >Spindle->invalidFields()); shows that 2 fields are invalid!? Array ( [company_id] => This field cannot be left blank [spinnr] => This field cannot be left blank ) select('Spindle/company_id', $Comp

Re: your own class files location?

2007-07-31 Thread Geoff Ford
The vendors folder is used for anything that is outside the cake framework. e.g MyClass is in a file called myClass.php in the vendors folder, then you use it with venders('myclass'); $myclass = new MyClass(); Geoff -- http://lemoncake.wordpress.com On Aug 1, 11:25 am, Aaron Thies <[EMAIL PROT

Re: A quick note about BakeSale

2007-07-31 Thread Dr. Tarique Sani
On 8/1/07, housebolt <[EMAIL PROTECTED]> wrote: > > > I was just taking a look at bakesale for some ideas on building my own > shopping cart. > > Please don't use bakesale in its current form without looking into its > security issues. Did you contact the deveopers of Bakesale about this before

Re: A quick note about BakeSale

2007-07-31 Thread housebolt
There's nothing to disclose. I haven't given out anything, and it's blatantly apparent. There is not one single security measure in place within the code, so I would have to disclose the entire code base. I'm not trying to make trouble here, I'm just warning people about the danger of using BakeS

Empty Fields on a Model->create() for string data types

2007-07-31 Thread chewie124
I have a Model with a table something like: create table foo ( id int not null auto_increment, bar varchar(100) not null default '', baz datetime not null default '-00-00 00:00:00' ); So when I do a $this->foo->create(), the associative array returned looks like: [foo] => Array ( [baz

Re: A quick note about BakeSale

2007-07-31 Thread Dr. Tarique Sani
On 8/1/07, housebolt <[EMAIL PROTECTED]> wrote: > > > There's nothing to disclose. I haven't given out anything, and it's > blatantly apparent. Should I take that to mean you did not contact the original developers before posting here? At the expense of sounding didactic I would like to point ou

Re: A quick note about BakeSale

2007-07-31 Thread Hohngjuhn Pahk
Hi, your grammer is good, and your Engish too. I am Korean of republic sombody called 'south Korea'. What is your expression was known some. I has quested some because of you. I don' like learning new thing, I am lazyman, my age is 43 years old, FOURTY THREE years old. I was cultivated by C-langua

Re: tags.ini.php

2007-07-31 Thread TBone
Feris, I too was searching for this file. It happens to be moved into a helper class found in "cake\libs\view\helpers\html.php" T On Jul 15, 1:35 am, "Feris Thia" <[EMAIL PROTECTED]> wrote: > I look at the helper section in the manual and find that there is a > file calledtags.ini.php. I'm usin

Multiple model fields in generatelist, was: Multiple field values in select box?

2007-07-31 Thread Beertigger
Moving this one along a bit I've tried every which way to get this one to work, and I'm stumped. Using afterFind on info from one table works just fine; putting this in the Player model: function afterFind($results) { foreach ($results as $key => $val) { $results[$k

Re: Change language with pulldown/select

2007-07-31 Thread getacloo
Thanks for posting up your results Dakapo. It took me a little while to figure it all out but I think I've finally figured out a way to implement a similar Select which saves its data to a session variable. One thing I did want to mention which took me a little while to figure out is that the defi