Re: AJAX: is it possible to update the src parameter of an image directly?

2008-10-01 Thread David C. Zentgraf
'callback' doesn't exist, the only names of callbacks you can use are listed on the page in my last message. :-) Other than that, you pretty much got it. I always forget what the variable name is called, but I think in your callback function you'll have access to whatever the controller retu

Release: CakePHP RC3 - The RC of Triumph!

2008-10-01 Thread Nate
It's finally here: the final release before the final release of CakePHP 1.2, and I just want to say how thrilled I am. This release, possibly more than any other in the history of the project, has truly been a team effort. Everyone has really come together to make this a great release, and I just

i18n help using multiple po files

2008-10-01 Thread exo_duz
Hi all, Relatively new to CakePHP although I have most of the basics down pat. I am creating a website using i18n and there don't seem to be many solutions out there that I can really use. I found this http://www.formation-cakephp.com/41/multilingue-18n-l10n about Internationlization. It is in F

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread Mr-Yellow
Let me rephrase. I have a custom "foo" behaviour. By adding this behaviour to a model the afterFind callback checks the data for fields specified in the behaviour params and creates a mirror field "bar" with processed data from the specified field. Hopefully that now isn't view in model :-P

Re: AJAX: is it possible to update the src parameter of an image directly?

2008-10-01 Thread qwanta
OK, thanks. That's exactly what I am looking for. I already have the javascript I need from my php/javascript code. If I understand this correctly, I just have to send the generated image name back using echo statements in the controller (maybe wrapping it in xml format), then trigger my 3 js stat

Re: Using model without a database for form

2008-10-01 Thread sniper
i finally got it! i searched "cakephp _schema" and got this link http://snook.ca/archives/cakephp/contact_form_cakephp/ when i implemented it, to my surprise it worked! So i striped my cheer model to exactly like contact one and that too worked. So turns out (after little debugging) i had to call

Re: Problem using SaveAll() don't saving related model

2008-10-01 Thread Yodiaditya
Sorry, all work's perfect... My faults...This code is right.. Hope this help somebody that want saving related data HasOne On 10/2/08, Yodiaditya <[EMAIL PROTECTED]> wrote: > > Hello, > I have two models : Account -> hasOne -> Company & Company -> belongsTo -> > Account. > > on /app/models/accoun

Re: AJAX: is it possible to update the src parameter of an image directly?

2008-10-01 Thread David C. Zentgraf
I guess the AJAX helper doesn't have this ability built-in, but you could simply write your own JS for the 'complete' callback. http://book.cakephp.org/view/211/Callback-Options On 2 Oct 2008, at 12:12, qwanta wrote: > > Using pure php/javascript without cakephp, I am able to use the > javascr

Problem using SaveAll() don't saving related model

2008-10-01 Thread Yodiaditya
Hello, I have two models : Account -> hasOne -> Company & Company -> belongsTo -> Account. on /app/models/account.php class Account extends AppModel { var $name = 'Account';. var $hasOne = array('Company'); } on /app/models/company.php === class

AJAX: is it possible to update the src parameter of an image directly?

2008-10-01 Thread qwanta
Using pure php/javascript without cakephp, I am able to use the javascript function === document.getElementById("pic").src = imageName; === to update an image (when a button on the web page is clicked). this results in very smooth image updates. In CakePHP, I have been able to update the

Re: Using model without a database for form

2008-10-01 Thread Joel Perras
My mistake. You shouldn't be overriding the Model::schema() function, only the $_schema protected variable. -J. On Oct 1, 10:07 pm, sniper <[EMAIL PROTECTED]> wrote: > the prblem is not saving, its in my cheer.ctp when i call echo > $form->create('Cheer'); > > its throwing fatal error. i am exp

Re: Model arrays

2008-10-01 Thread Joel Perras
> Just need to get the Manufacturers array in the first into a form like > the second or some > standard common ground between the two. > > Thanks again Take a look at the Set::extract() and set::combine() methods of the Set core class. http://book.cakephp.org/view/640/Set http://book.cakephp.o

Re: Using model without a database for form

2008-10-01 Thread sniper
the prblem is not saving, its in my cheer.ctp when i call echo $form- >create('Cheer'); its throwing fatal error. i am expecting //Output: but instead its Fatal error: Call to a member function schema() on a non-object in C: \xampp\htdocs\cake_1.2.0.7296-rc2\cake\libs\view\helpers\form.php on lin

Re: Data Modeling Tool

2008-10-01 Thread Okto Silaban
But none of them work smoothly on Linux.. MySQL Workbench already has it Linux version (still in alpha). After several minutes compiling finally it works. But the export SQL script menu was disabled.. I hope it getting better on the next release.. On Thu, Oct 2, 2008 at 7:44 AM, Predominant <[

Re: Data Modeling Tool

2008-10-01 Thread Predominant
For databases... I know a lot of the core team use DBDesigner (http://fabforce.net/ dbdesigner4/). I personally use MySQL Workbench, which is being worked on by the old DBDesigner team (http://dev.mysql.com/workbench/) For Controllers etc.. I would suggest Enterprise Architect. Cheers. On Oc

Re: Best way to localize URL

2008-10-01 Thread David C. Zentgraf
You could use Routes to connect URLs to a controller by an alternate name: Router::connect('/マイアップ/外国語/何々', array('controller' => 'actualController', 'action' => ...)); But that can be become quite a hassle if you have many controllers and actions. Any variables in the URL you could store i

Re: Pagination of search results

2008-10-01 Thread double07
Thanks for your input Martin, but I ended up going a slightly different way... Basically I decided to use a custom named parameter which in the end looks pretty tidy. So if anyone is interested, this is what I did: In my news controller: function admin_index() { $options[

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread Mr-Yellow
I've tried it using coded joins rather then the automagical parent_id +threaded find. Behaviour callbacks also don't happen when you link the model to itself. Seems the only time a behaviour is attached is if you specifically call that model and that model only, any nesting or relationships seem

Re: Major Pain - retrieved data

2008-10-01 Thread seanislegend
Thanks for the suggestions. Joel, magic_quotes_gpc is turned on. I'll try turning it off and see if it works. I'll let you know! Thanks. On Oct 2, 1:34 am, Joel Perras <[EMAIL PROTECTED]> wrote: > Have you checked that magic_quotes_gpc in your php.ini file is turned > off? > > -J. > > On Oct 1,

Re: Best way to localize URL

2008-10-01 Thread Joel Perras
The best way is to localize the *content* on all your pages, and leave the URLs alone. Provide your users with a method of switching locales (i.e. a link), which calls an AppController function / Component / Whatever which then sets the proper locale using Configure::write(). Your static content o

Re: imap datasource - some design questions

2008-10-01 Thread Predominant
I guess you can only provide what the Protocol supports. Have you had a good look through the RFC For v4rev1 ? http://tools.ietf.org/html/rfc3501 Interested to see how you go with it. Cheers. On Oct 2, 12:58 am, "Siegfried Hirsch" <[EMAIL PROTECTED]> wrote: > Hi everybody > > I am just lookin

Re: class AppController extends Controller { issue - update

2008-10-01 Thread Predominant
Are you getting an error? Or are you observing the code in AppController not executing? Post some more information. On Oct 2, 3:39 am, Dérico Filho <[EMAIL PROTECTED]> wrote: > Hi, > > /app/app_controller.php is not working. > /app/controllers/app_controller.php is not working either. > > Anyone

Re: problem naming controller

2008-10-01 Thread Predominant
The CakePHP Book really is the ultimate source for this information. The Conventions section explains everything you need: http://book.cakephp.org/view/22/CakePHP-Conventions Model Name: singular, camel cased Model File Name: singular, underscored Controller Name: plural, camel cased Controller F

Re: CakePHP whith PHP/SWF SlideShow

2008-10-01 Thread Predominant
I am assuming all you really need here is a herper to show up the flash object (assuming it works this way) and the parseExtensions automagic of CakePHP 1.2 You can add to routes.php the following: Router::parseExtensions('xml'); This will tell it to redirect the view to use /app/views/controlle

Re: Major Pain - retrieved data

2008-10-01 Thread Joel Perras
Have you checked that magic_quotes_gpc in your php.ini file is turned off? -J. On Oct 1, 5:15 pm, seanislegend <[EMAIL PROTECTED]> wrote: > Hi, > > in the data I'm retrieving from my DB I'm still getting slashes in > front of quotes. I've been told before that Cake should strip these > automagic

Re: Major Pain - retrieved data

2008-10-01 Thread Predominant
Are you adding excess slashes when they go into the database? Take a look at the raw database output to see if you are in fact storing too much escaping. SELECT * FROM `mytable`; Inspect the output, and reply here if you need help. Cheers. On Oct 2, 7:15 am, seanislegend <[EMAIL PROTECTED]>

Re: Model arrays

2008-10-01 Thread Predominant
Standardise your input to the Element. Elements are designed for repeated content, or visual presentation of similar data. Either supply the Element with an array of manufacturers, or one manufacturer. Example for the Supply One Manufacturer to the element: in the view: element('myElem

Re: Using model without a database for form

2008-10-01 Thread Joel Perras
You're already half way there by overriding the model schema function. Which other model function do you think you should override so that you can *save* the data to an external webservice? -J. On Oct 1, 4:38 pm, sniper <[EMAIL PROTECTED]> wrote: > thanks for the reply, i tried that too, but it

Model arrays

2008-10-01 Thread nightfallvt
For all of my models I created a table.ctp that can be used as an element in any view that needs to show a table for that model. I'm trying to use the same element to display the table data in related models as well. Is there any way to reformat the array for a related model to match the format r

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread Mr-Yellow
Just to add. This behaviour calls a vendor and processes the markup for all the returned entries on the fields specified in the behaviour params. Thus it's faster to call this up once when the model is retrieved and process the data in one batch, then it is to put in a helper and load it up

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread Mr-Yellow
No it's not view stuff. Just because it says "markup" doesn't mean it should be in a view. This is a behaviour to modify model data as it is retrieved. It's logic applied to data in a model behaviour. A helper could do a similar thing although less efficiently, however that isn't my intention, an

Major Pain - retrieved data

2008-10-01 Thread seanislegend
Hi, in the data I'm retrieving from my DB I'm still getting slashes in front of quotes. I've been told before that Cake should strip these automagically, but apparently not. I'm still none-the-wiser as to what I can do for this problem. At the moment I'm using a custom function on each part of t

Re: Using model without a database for form

2008-10-01 Thread sniper
thanks for the reply, i tried that too, but it still doesn't work and looks like html, form helpers are built in , at least html works, you dont have to include for CakePhp1.2 my saving and retrieving of data is done through webservice/soap. i am going to impl the save and find in my cheer model.

Best way to localize URL

2008-10-01 Thread lemp
What would be the best way to localize URL? I know I can use gettext function on URL, like in: $html->link(__('Logout', true), __('/users/logout', true)); But it seems a bit cumbersome. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Get month, day, year helper to put dates in an array

2008-10-01 Thread BrendonKoz
http://book.cakephp.org/view/547/Field-naming-convention On Sep 29, 5:02 pm, Tony Thomas <[EMAIL PROTECTED]> wrote: > I'm using the form helpers for month, day & year to record several > start and end dates. What I'd like is for each respective helper to > create an array of months, days & years.

CakePHP whith PHP/SWF SlideShow

2008-10-01 Thread Sackjounas
Hello Guys I'm Quite New developing in CakePHP and I'm curious about integrating CakePHP and PHP/SWF Slideshow I've read the PHP/SWF Chart tutorial, but it is difficult to understand for me can you tell me where to find this information to read? I have CakePHP 1.2 and I want to make PHP/SWF Sl

Baking views results in error: missing component session

2008-10-01 Thread GrandiJoos
Hi all, After a few weeks of 'manual baking' I finally found the bake console script. (I know...) After baking a few models and controllers I get an error while baking a view. The error message is: Error: Missing Component file 'session.php' for 'Session' Now I don't know which other session.php

Manual Search Not Working?

2008-10-01 Thread Tony Thomas
Has something changed with the CakePHP Cookbook's search (book.cakephp.org)? Over the last few days every search turns up no results. I just tried a search for "model" and it returned no results. Anyone who works on that know anything? --~--~-~--~~~---~--~~ You rece

Re: Validating only several fields in model

2008-10-01 Thread 3lancer.eu
Hi, > How can I validate only firstname and lastname fields, without > validating password? You can simply write custom function for validation of that field which would first check if that field is set in $this->data array and if so, perform other checks. However there may be better ways to do

class AppController extends Controller { issue - update

2008-10-01 Thread Dérico Filho
Hi, /app/app_controller.php is not working. /app/controllers/app_controller.php is not working either. Anyone has any update on this but using Night Builds? []s Dérico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

problem naming controller

2008-10-01 Thread carlos ferrandis
I thought it was a problem because I was not used to the naming rules for cake but now I don't understand, please continue reading... I have a table named: items then inapp/controllers/items_controller.php I have the code above troughs the following error: Error: ItemController could n

Re: help me understand cakaphp

2008-10-01 Thread qwanta
There's also a couple good tutorials: http://www.sitepoint.com/article/application-development-cakephp/ http://www.davidgoldingdesign.com/newbie-cakephp.pdf But they are from 2006, so a little outdated (use .thtml instead of .ctp extension). Still worth reading for the concepts, and the code sti

Re: html helper issue

2008-10-01 Thread Samuel DeVore
On Wed, Oct 1, 2008 at 9:32 AM, soosa <[EMAIL PROTECTED]> wrote: > Thanks for your reply Lance! > > but still this is not a good way to handle this issue, at least because the > code in the view will be ugly since some metas have been generated by cake > and others you should put them in plain har

Re: html helper issue

2008-10-01 Thread soosa
Thanks for your reply Lance! but still this is not a good way to handle this issue, at least because the code in the view will be ugly since some metas have been generated by cake and others you should put them in plain hard coding! i already did it as you said but IMHO i still think that the miss

AW: Accessing Multiple database

2008-10-01 Thread Liebermann, Anja Carolin
I guess different tables is as bad a different databases. Why don't you have your 10 tables and have the city correlation via an city_id field? That is what I would do. Greetings Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von book

Re: CakePHP Auth - Basic Template User System

2008-10-01 Thread Sam Sherlock
2 searches on goole these link all came from first page, be sure to search this group. Password reseting, user registration, saving passwords etc have all been discussed - acl much harder, auth minutes to set up once you know how. This is something that worth learning as you need to have confiden

Re: html helper issue

2008-10-01 Thread Lance Willett
> is there any way to generate the output for those metas as dealing with > description and > keywords metas? Hi soosa, The "meta" HTML helper currently supports building meta elements for "rss", "icon", "atom", "keywords", and "description". For all the other types of meta elements, you are be

Re: repair ACL acos tree cakephp

2008-10-01 Thread Jaime
Check /cake/libs/model/behaviors/tree.php for method recover(): /** * Recover a corrupted tree * * The mode parameter is used to specify the source of info that is valid/correct. The opposite source of data * will be populated based upon that source of info. E.g. if the MPTT fields are corrup

imap datasource - some design questions

2008-10-01 Thread Siegfried Hirsch
Hi everybody I am just looking into the imap skeleton, that was provided by gwoo in the bin some time ago. So far I have implemented some basic read functionality. But now I am thinking about the further implementation of the imap datasource. Here are some questions, that I am not sure about: - s

Data Modeling Tool

2008-10-01 Thread bookme
Hi Can any one tell me best Data Modeling Tool for CakePHP that follow CakePHP convention Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@google

Validating only several fields in model

2008-10-01 Thread Anna P
Hi! I have an issue with data validation. I have model Administrator with fields : firstname,lastname,password In Administrator model I set validation for every field (let's say firstname can't be empty, lastname can't be empty and password can't be empty and can consist only letters). I want to

Re: Outgoing requests for tests?

2008-10-01 Thread Daniel Hofstetter
Hi Martin, > I was wondering if anyone had some tips for a good way to write a test > for a Controller or Component that performs an outgoing request? > Ordinary models and things are so much more self-contained and > therefore usually not a big problem writing tests for. > > In my case I a talki

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread jitka (poLK)
Linas: Note #1: you are off topic Note #2: see http://groups.google.com/group/cake-php/browse_thread/thread/9b7e60900269643b/560dfd225009f5aa?show_docid=560dfd225009f5aa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Database Conventions: 2 foreign keys to same table

2008-10-01 Thread Michael
Be careful with your $belongsTo definitions. The second one just overwrote the first. If you want to create two relations you need to use this syntax: var $belongsTo = array( 'FromTeam' => array( 'className' => 'Team',

Re: Using model without a database for form

2008-10-01 Thread techiguy
sniper, you are saying u dont want 2 use database/tables and ur using a method to save the data. then where it will save? any how i am thinking that u have missed one parameter in... $helpers = array('Form','Html'); Html is missing? hope it works. On Sep 30, 7:15 pm, sniper <[EMAIL PROTECT

Re: how to save twice??

2008-10-01 Thread techiguy
Dear rocket, why dont u loop it. when u make a loop for the data then u can insert 'N' Number of records not limited to 1 or 2? did u got my point? On Sep 30, 9:24 pm, rocket <[EMAIL PROTECTED]> wrote: > perfect the ->create() works > i'd also like to tell others it unsets $this->data > > On S

Re: 'Undefined index' problem on production server

2008-10-01 Thread Pieter Van Leuven
OK. I built a small CakePHP application on ubuntu. It doesn't show relative data on my ubuntu install and online webhosting, but on my local windows installation the exact same code (with the exact same dababase) does! How is this possible? Am I missing something? I'm getting desperate ;-) It must

Re: HasAndBelongsToMany

2008-10-01 Thread majna
first, by cake naming convention there shall be: categories_forms(category_id, form_id) After that you should read from manual chapter "Saving hasAndBelongsToMany Relations" form http://book.cakephp.org/view/312/Models There is sample form markup. You can use cake bake console to "bake" code and

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread Linas
Since nobody wants to answer... How are you solving your problem, Mr-Yellow? :) Linas On Oct 1, 12:50 pm, Linas <[EMAIL PROTECTED]> wrote: > Hey, I came to tell about my problem and found your post. > My problem is somewhat similar to yours: > I have two models related with hasMany relation (let

Re: pushing my luck -- complete pm system?

2008-10-01 Thread techiguy
Dear rocket, if you found the PM system online pls let me know the download link On Sep 30, 9:26 pm, rocket <[EMAIL PROTECTED]> wrote: > I'm about to write a PM system for users... but why invent the wheel? > Anyone know of a good prebuilt cake pm system, or a vendor I can use? > > thanks --~--

Re: sending mail through google server using EMail component

2008-10-01 Thread Marcin Domanski
same thing using swift mailer but 100% compatible with your actual code (just add smtpOptions['type'] = 'tls' or 'ssl' to your array with username/pass) http://www.assembla.com/wiki/show/swift_email_component HTH, -- Marcin Domanski http://kabturek.info On Wed, Oct 1, 2008 at 3:35 AM, Gonzalo

Re: Accessing Multiple database

2008-10-01 Thread bookme
Thanks your reply! Each city specific datbase have 10 tables..how can i make them? suppose common database has brands table and city1 database has stores table, becuase every city has different stores and no realtion to other city. so making diffrent database for different city is good I think.

Re: Auth Redirect Problems

2008-10-01 Thread [EMAIL PROTECTED]
Thought i'd just comment on Auth->loginRedirect. This really is used to redirect a user AFTER a successful login if no "referrer" was found in the session. It is a default destination after login. If you look at Auth::redirect(), starting at line 627 in my file (rc2) you will see that the variabl

Re: pushing my luck -- complete pm system?

2008-10-01 Thread Jon Bennett
>> Since User has Many message (in inbox), but User also has Many message (that >> the user sent to other User). > > So? User hasMany SentMessage (className: Message, foreignKey: > sender_id), User hasMany ReceivedMessage (className: Message, > foreignKey: receiver_id) or User hasMany SentMessag

Re: about the controller insert data into two tables

2008-10-01 Thread techiguy
flyingfish, y dont y do like this way var $uses = array('User', 'Userfield'); function add() { $this->User->save($this->data); $this->Userfield->insertData($this-data); and in your Userfield model write the query to insert data into the database like this.. function insertData($arr)

Re: pushing my luck -- complete pm system?

2008-10-01 Thread grigri
> How about the relation..? > > Since User has Many message (in inbox), but User also has Many message (that > the user sent to other User). So? User hasMany SentMessage (className: Message, foreignKey: sender_id), User hasMany ReceivedMessage (className: Message, foreignKey: receiver_id) Done.

Re: Accessing Multiple database

2008-10-01 Thread techiguy
sorry i mean to say one common database and have tables city1,city2,city3 instead of separate databases?? On Oct 1, 12:31 pm, bookme <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on a highly dynamic web content site. > This website have two types of data one is common data and second is > cit

Re: Database Conventions: 2 foreign keys to same table

2008-10-01 Thread [EMAIL PROTECTED]
One simple thing I'd suggest is the naming of the fields team2_id does not tell me wether the trade is from or to this team. Something like from_team_id and to_team_id would make their role more obvious. At least imagine that is what a trade is in baseball... if they are always a bidirectional ex

Re: Accessing Multiple database

2008-10-01 Thread techiguy
y dont u make table in a common database instead of separate databases? like u have one common table and have city1,city2,city3 as its tables. On Oct 1, 12:31 pm, bookme <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on a highly dynamic web content site. > This website have two types of d

Re: 'schema generate' and different connections (was: help with YAML pls basic syntax...etc)

2008-10-01 Thread techiguy
Dear forrestgump, u can do 2,3,4 things which u mentioned using schema.php file except that u cannot insert data from a schema file i.e the default data into the table. other than that every thing will work fine On Oct 1, 10:01 am, forrestgump <[EMAIL PROTECTED]> wrote: > Hey, >  So ive been m

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread Linas
Hey, I came to tell about my problem and found your post. My problem is somewhat similar to yours: I have two models related with hasMany relation (lets say, A hasMany B), both using TranslateBehavior. When I fetch A from database, it has it's translated fields, however all B records don't have th

Re: pushing my luck -- complete pm system?

2008-10-01 Thread Okto Silaban
How about the relation..? Since User has Many message (in inbox), but User also has Many message (that the user sent to other User). On Wed, Oct 1, 2008 at 2:41 AM, Markus Muschol <[EMAIL PROTECTED] > wrote: > > This should be kind of easy to write on your own > > setup a new database table: >

Re: Auth Redirect Problems

2008-10-01 Thread Okto Silaban
I don't know, but I works for me.. :) 1. AFAIK logoutRedirect has not always to point to the loginAction.. 2. I should set autoRedirect to FALSE, to make my app works. Whenever I set it to true user can't login. I haven't diagnose this yet.. Just a quick fix. 3. "And it really doesn't make much s

Re: Behaviours and Parent/Child Self-Joins

2008-10-01 Thread AD7six
On Oct 1, 9:21 am, Mr-Yellow <[EMAIL PROTECTED]> wrote: > I have a custom wiki markup behaviour. > > By adding this behaviour to a model the afterFind callback checks the > data for fields specified in the behaviour params and create a mirror > field "wiki".$whateveritwascalled which has the con

Re: Auth Redirect Problems

2008-10-01 Thread Okto Silaban
I'm using 1.2. And this code works perfect with me.. But I don't know it doesn't work with you.. Can't help.. Okto.Silaban.Net On Tue, Sep 30, 2008 at 8:18 PM, Tony Thomas <[EMAIL PROTECTED]> wrote: > > I don't know why. Are you you using 1.2 or 1.1? I'm using 1.2. > > This: > > $this->Auth->au

Accessing Multiple database

2008-10-01 Thread bookme
Hi, I am working on a highly dynamic web content site. This website have two types of data one is common data and second is city specific. The homepage has listing of all the available cities which then takes you to that specific cities page. All the code for a specific city is the same as any o

HasAndBelongsToMany

2008-10-01 Thread Copot
Hi everyone. I have the following problem (I'm using Cake 1.1). Three tables: forms, categories, forms_categories. forms (id, name) categories (id, name) forms_categories(id, id_form, id_category) Forms hasAndBelongsToMany Category Category hasAndBelongsToMany Form Form

Re: CakePHP Auth - Basic Template User System

2008-10-01 Thread Kanten
I must say I second that. I'm trying to build a Auth-system and the documentation of the Auth Component is sorely lacking. So if anyone could point to a full fledged working example, that would be very much appreciated. /Anders On Oct 1, 5:37 am, Tom Chapin <[EMAIL PROTECTED]> wrote: > Hello, >

Re: 'schema generate' and different connections (was: help with YAML pls basic syntax...etc)

2008-10-01 Thread David C. Zentgraf
Hi Mark, Schema seems to want to schemify all models using the same connection, the one it automatically defaults to or the one that was specified, ignoring the $useDbConfig setting in the model itself. Opened a ticket for it: https://trac.cakephp.org/ticket/5502 Chrs, Dav On 30 Sep 2008,

Outgoing requests for tests?

2008-10-01 Thread [EMAIL PROTECTED]
Hi, I was wondering if anyone had some tips for a good way to write a test for a Controller or Component that performs an outgoing request? Ordinary models and things are so much more self-contained and therefore usually not a big problem writing tests for. In my case I a talking about a Componen

Behaviours and Parent/Child Self-Joins

2008-10-01 Thread Mr-Yellow
I have a custom wiki markup behaviour. By adding this behaviour to a model the afterFind callback checks the data for fields specified in the behaviour params and create a mirror field "wiki".$whateveritwascalled which has the content formatted. The reason for an extra field is that it allows ed

Re: 'schema generate' and different connections (was: help with YAML pls basic syntax...etc)

2008-10-01 Thread forrestgump
what do u know ...got insert working after all, after a friend of mine showed me my stupidityhere is the update: UP: create_table: users: username: type: varchar length: 100 index: true password: type: varchar length