Re: Moving methods to AppModel

2006-10-23 Thread AD7six
If it's an abstract class, put it on thesame level as your app_controller model, if it's not wrap the class defenition in if(class_exists(Cart)) { ... } HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Problem with setting up cake on server

2006-10-23 Thread leo.cacheux
If you have to write index.php in the URL, then the mod_rewrite isn't enabled. Did you uncomment this line in core.php ? define ('BASE_URL', env('SCRIPT_NAME')); Do you use the HTML helper to create correct links to your images and css ? --~--~-~--~~~---~--~~

Copy data from one database to another

2006-10-23 Thread [EMAIL PROTECTED]
Hi there, I have 2 databases with one table each. Now I would like to copy the data from TableA in DatabaseA to TableB in DatabaseB. But how can I use two databases in the same controller? Do I really need 2 models? Thanks Felix --~--~-~--~~~---~--~~ You

local configuration file

2006-10-23 Thread [EMAIL PROTECTED]
Hi there, where should I save a local config-file, in which I save all the global vars and so on? Thanks Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

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: Copy data from one database to another

2006-10-23 Thread [EMAIL PROTECTED]
Thanks for the answer. But the problem is, that there is an existing database with many existing tables. And I need to copy data from all of these tables. So do I really need a model for each of the tables in the existing database? Thanks, Felix

Re: Moving methods to AppModel

2006-10-23 Thread AD7six
I noticed the missing ! as I pressed send ;). The 'problem' is only that all the files in yoru models directory are loaded by cake, and the order they are loaded depends on their name (which is dictated by convention). therefore: if you try to extend a class that isnĀ“t loaded when the model

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

Re: Copy data from one database to another

2006-10-23 Thread AD7six
Try the nate search technique: http://groups.google.com/group/cake-php/search?group=cake-phpq=switch+database+nateqt_g=1searchnow=Search+this+group HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

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 AD7six
Hi Sonic, Sonic Baker wrote: The method is being called even though it's not there! I replaced it with a blank function of the same name but the old one still gets called. Please elaborate. This is likely to finish with an Oh yeah... given that the class structure/methods and cache are two

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

having empty entry in selecttag selected

2006-10-23 Thread [EMAIL PROTECTED]
Hi there, I have a selecttag filled with an array. The first entry in the selecttag-list is empty. Now I want that empty entry to be selected by default. Here is my code in the view: echo $html-selectTag('User/contact', $Contactlist, '0', array( 'size' = '10', 'multiple' = 'multiple')) But

Re: Copy data from one database to another

2006-10-23 Thread [EMAIL PROTECTED]
Thanks for the link! I will give it a try! Cheers --~--~-~--~~~---~--~~ 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

Re: having empty entry in selecttag selected

2006-10-23 Thread nate
It should work if you just pass null to $selected (which is the default value). http://api.cakephp.org/class_html_helper.html#0a0a7c56c21b7d7352fd99158350dfc5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: having empty entry in selecttag selected

2006-10-23 Thread [EMAIL PROTECTED]
Hi Nate, you mean something like this? echo $html-selectTag('User/contact', $Contactlist, null, array( 'size' = '10', 'multiple' = 'multiple')); unfortunately this is not working aswell. Nothing is selected by default. There must be a simple solutionbut I don't get it.

Re: having empty entry in selecttag selected

2006-10-23 Thread nate
Are you saying the first element in the actual array is empty, because you don't need to do that, as selectTag will add an empty element at the beginning by default, unless you tell it not to. Otherwise, $selected should be set to the key value of the array element that should be selected.

Re: Dynamic Menu

2006-10-23 Thread Steniskis
Hello I have created a component with my menus I began with the menu tutorial in the wiki http://wiki.cakephp.org/tutorials:building_a_cakephp_site_part_-_1 I call the menu from my controller lass RapportsController extends AppController { var $name = Rapports; var $layout =

installation problem

2006-10-23 Thread Hong
I have downloaded cakephp and having follow the installation process, i am unable to set the root directory and app directory to work. it seems a lttle confusing i install it as running as a localhost. please assist --~--~-~--~~~---~--~~ You received this

can anyone help me on find()

2006-10-23 Thread Gayathiri
Hi, i need to extract a record whose name is from input field and language_id id $lang value. I have the following code. But it isnt working..can anyone help on this please. $id=$this-username-find(name = . $this-data['Username']['name'] . AND language_id = . $lang);

Cakephp projects on subfolder best practice

2006-10-23 Thread [EMAIL PROTECTED]
Hi, by default cake thinks it needs to be set up in some domain or subdomain root folder. It's a little bit messy setup for test environment and some what pain to setup. So my question is what is the best practice to setup cake projects in subfolders like: somedomain.com/cake/project1

Re: How do you parse XML using cake?

2006-10-23 Thread Richard
I looked at the thinkingphp solution but it only works in Cake 1.2 ... the other option i could see was using PHP's SimpleXML (only PHP 5) . On Oct 23, 5:27 am, nate [EMAIL PROTECTED] wrote: http://bin.cakephp.org/saved/87http://www.thinkingphp.org/2006/09/21/dessert-14-the-new-xml-class/

Re: First time installation - need help

2006-10-23 Thread Hong
yeap i got the php, mysql and apache working. i have run other php application --~--~-~--~~~---~--~~ 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

The model practice tool of the raw recruit

2006-10-23 Thread KyleKai
I composed a simple small tool, letting me practice by myself and the usage of the test model with examine back to spread. controller: ?php class DemoController extends AppController { //var $scaffold; var $name = 'Demo'; var $uses = array(); var $helpers =

Make $javascript available to layouts

2006-10-23 Thread Mike Baranski
Hi, I have a layout defined that needs the javascript helper enabled, as well as the html helper. I modified the base class for the views to add the javascript helper to the class, but this modifies the core cake libs. How do I set this in the config? This should be on for all views by

Re: First time installation - need help

2006-10-23 Thread Hong
Hi eric, if you don't mind can you send me the index.php setup for the root directory and the app_dir if (!defined('ROOT')) { //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR'; //You should also

Re: having empty entry in selecttag selected

2006-10-23 Thread [EMAIL PROTECTED]
No, the first element in the actual array has a value. I would like to have the empty element added by the selectTag to be selected by default. But somehow none of the items is selected, when i load the page. --~--~-~--~~~---~--~~ You received this message

Re: Planning on CakePHP future versions

2006-10-23 Thread Samuel DeVore
just for kicks I did move a couple of sample projects to the new core stuff and other then the chaning of the index.php files and some tweeking of config files they all seemed to move fine. No rigorous testing but initially pretty good Sam D On 10/23/06, Mariano Iglesias [EMAIL PROTECTED]

Re: Re: How do you parse XML using cake?

2006-10-23 Thread Samuel DeVore
actually you can move the xml.php file to vendors and it works pretty good in 1.1 On 10/23/06, Richard [EMAIL PROTECTED] wrote: I looked at the thinkingphp solution but it only works in Cake 1.2 ... the other option i could see was using PHP's SimpleXML (only PHP 5) . On Oct 23, 5:27 am,

Re: can anyone help me on find()

2006-10-23 Thread Samuel DeVore
$this-Username Models are CamelCaseSingular On 10/23/06, Gayathiri [EMAIL PROTECTED] wrote: Hi, i need to extract a record whose name is from input field and language_id id $lang value. I have the following code. But it isnt working..can anyone help on this please.

Re: Make $javascript available to layouts

2006-10-23 Thread [EMAIL PROTECTED]
You enable/add helpers in your controller, not your view base class - class AppController extends Controller { var $helpers = array('html','javascript'); } By doing this, $javascript and $html are available in all views and layouts --~--~-~--~~~---~--~~ You

Re: installation problem

2006-10-23 Thread [EMAIL PROTECTED]
define('ROOT', '/home/dho/projects/projectxy/trunk'); define('APP_DIR', 'app'); define('CAKE_CORE_INCLUDE_PATH', '/home/dho/projects/cake_1.2.x.x'); You want those 3 lines in your app/webroot/index.php file, obviously with paths that are valid for your setup. Then you can setup a virtual host

Re: Cakephp projects on subfolder best practice

2006-10-23 Thread [EMAIL PROTECTED]
define('ROOT', 'C:\www\project_name'); define('APP_DIR', 'app'); define('CAKE_CORE_INCLUDE_PATH', 'C:\www\cake\cake_1.2.x.x'); You want those 3 lines in your app/webroot/index.php file, obviously with paths that are valid for your setup. Personally, when I setup projects, I have a

Re: Planning on CakePHP future versions

2006-10-23 Thread gwoo
The API is not changing until 2.0, so for some time you should have no worries about dropping the cake core into any project and watching it work. We are writing documentation for 1.2, but the goal is to allow people to easily upgrade without any worry. To us, there is no point in

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: Planning on CakePHP future versions

2006-10-23 Thread Mariano Iglesias
Hi gwoo (kewl name btw), Will there be major changes on the API on 2.0? I know that soon you'll make i18n available, so for example in my case I would have to move out of current PEAR's Translation2 implementation I use for i18n towards cake internationalization, but in this case that's

Re: having empty entry in selecttag selected

2006-10-23 Thread [EMAIL PROTECTED]
Does no one know how to declare a selectTag, so that the first empty entry is selected by default? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Missing Controller

2006-10-23 Thread [EMAIL PROTECTED]
Okay, this one was weird. Please note, it is not a CakePHP bug / error. First of all, Given Nates answer (3 things that can cause the error), I was going nuts trying to figure this out. To make a long story short, either me (I don't remember doing it) or Textmate was putting a space after the

Re: Cakephp projects on subfolder best practice

2006-10-23 Thread Kjell Bublitz
yes, that the cool thing about it.. you can run unlimited apps, each within an own subfolder, using just one cake installcake-install/app/ - defaultcake-install/blog/ - project 1cake-install/notes/ - project 2 cake-install/portal/ - project 3...cake-install/homepage/ - project

Re: having empty entry in selecttag selected

2006-10-23 Thread kitten
Hi, Does no one know how to declare a selectTag, so that the first empty entry is selected by default? Normally, you would set an entry to be selected by default like this: $html-selectTag( 'User/contact', $Contactlist, $html-tagValue('User/contact') ?

Re: having empty entry in selecttag selected

2006-10-23 Thread [EMAIL PROTECTED]
Ok, thanks. That helps. The solution isn't as simple as I expected, but it seems that I have to work on an own method. Cheers Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

THTML files not working

2006-10-23 Thread barry_normal
Hello there, I've just installed CakePHP and have been going along okay with the blog tutorial till I get to viewing the thtml files. I'm running os x 10.4 and using Safari but the thtml files just show me the code when I browse to them. Do I need to enable thtml somewhere? Any help would be

new to cake, and mvc in general

2006-10-23 Thread [EMAIL PROTECTED]
Greetings, After putting work in for the past few months on a system I was going to build on phpBB3 (when it was released) I've decided to move over to a framework. Most of the work I've done is portable, as I was building around phpBB3, instead of modding it, with it being in development still.

Re: Pb renderElement in Ajax Updated div

2006-10-23 Thread francky06l
I am facing the same issue, did you find a solution to your problem ? Thanks On Sep 30, 5:53 pm, francky06l [EMAIL PROTECTED] wrote: Hello, I have a small problem but can't figure out what I am doing wrong. First I have created an Element that call a controllers using RequestAction :

RE: new to cake, and mvc in general

2006-10-23 Thread Grant Davies
I would be very interested in responses to this, especially the validation areas so please keep the discussion on-list if possible. Thanks Grant -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, October 23, 2006

Re: new to cake, and mvc in general

2006-10-23 Thread John David Anderson (_psychic_)
On Oct 23, 2006, at 10:28 AM, [EMAIL PROTECTED] wrote: Data Validation - It's way too simple for what I want. I'm looking for ways to say, validate a date field is a real date, and then also validate that it's in an acceptable range (ie: over 14 years old). I'd also like to be able to set

Re: problem with updates

2006-10-23 Thread mike091
Hi, Is any one able to give me a quick example of how a callback in the model can write to or pull data from a table other then it's own? For example: changing the a field in an enquiries table when the appointments table is updated from the appointments model. I hope I've made myself clear-ish.

Re: How do you parse XML using cake?

2006-10-23 Thread Richard
Hi Samuel I couldn't get it to work with 1.1 ...but have upgraded to 1.2 from SVN and will seee how I go. thanks for your replies - Richard On Oct 23, 7:02 pm, Samuel DeVore [EMAIL PROTECTED] wrote: actually you can move thexml.php file to vendors and it works pretty good in 1.1 On

Re: new to cake, and mvc in general

2006-10-23 Thread [EMAIL PROTECTED]
John David Anderson (_psychic_) wrote: I did try some of the snippets out there for overriding invalidate in app_model.php. I mainly just encountered preg-match errors all over the place and they didn't work. You shouldn't need to override it.. just perform your non-regex validation

Re: new to cake, and mvc in general

2006-10-23 Thread John David Anderson (_psychic_)
On Oct 23, 2006, at 12:04 PM, [EMAIL PROTECTED] wrote: John David Anderson (_psychic_) wrote: I did try some of the snippets out there for overriding invalidate in app_model.php. I mainly just encountered preg-match errors all over the place and they didn't work. You shouldn't need

Re: Refactoring Views

2006-10-23 Thread Matt Adams
[EMAIL PROTECTED] wrote: Ditto I would love to see that framework, Matt, even if it's not all packaged up and ready for prime time. I will do my utmost to release it when I have time. I've been crazy busy lately and haven't had time to even think about it. I will, of course, have to get

Login through HTTPS on CakePHP

2006-10-23 Thread Mariano Iglesias
Hi fellow bakers, I have an element where I have the following($layout_texts reffers to an array of text elements, such as $layout_texts['top.menu.user'] = 'User', obtained through PEAR Translation2 package): ?php echo $html-formTag('/account/login'); ??php echo

Re: Some questions about PKs and FKs

2006-10-23 Thread Mikee Freedom
hey Marcelo, Cake conventions define that every table / model should have the primary key of `id`. also, there are naming conventions for foreign keys that can be found in the manual or in the wonderful cheat sheet provided by Gwoo. http://cakephp.org/files/cakesheet.pdf finally, i think

Re: local configuration file

2006-10-23 Thread Mikee Freedom
hey felix, i believe the bootstrap.php file is commonly used for this kind of function. outside of the CakePHP global variables already in place of course. cheers, mikee On 23/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there, where should I save a local config-file, in which I

Re: THTML files not working

2006-10-23 Thread [EMAIL PROTECTED]
You shouldn't be browsing to .thtml files; .thtml files go in your views folders and are accessed via the file name w/out the .thtml extension - for example: e:\www\project\app\views\pages\test.thtml is viewed by browsing to http://localhost/project/app/webroot/pages/test or site.com/pages/test

Re: Cakephp projects on subfolder best practice

2006-10-23 Thread [EMAIL PROTECTED]
I prefer to keep my cake app's separate from my cake install; I have a directory structure like what I mentioned before: /projects/cake/cake_1.x.x.x /projects/project_name/app etc.. etc... All of my cake app's point back (locally) to my 1 directory of cake installs - if a new version comes out,

View this page Western TV series presents Johnny Ringo DVD

2006-10-23 Thread [EMAIL PROTECTED]
Click on http://groups-beta.google.com/group/cake-php/web/western-tv-series-presents-johnny-ringo-dvd - or copy paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ Group Pages is a new feature of Groups Beta -

Re: View this page Western TV series presents Johnny Ringo DVD

2006-10-23 Thread mariano.iglesias
Just so everyone knows: 1. I reported this as SPAM (do the same to the original message by [EMAIL PROTECTED]) 2. I've removed the content from the page (since I couldn't find a way to remove the page alltogether) --~--~-~--~~~---~--~~ You received this message

Re: View this page Western TV series presents Johnny Ringo DVD

2006-10-23 Thread mariano.iglesias
There is a way to delete the page (click on EDIT, then More Options, Delete this page) but everytime I try it I get a We're sorry, but we are unable to display this page at this time. Google Groups BETA... BETA... You can say that again :) --~--~-~--~~~---~--~~

SMF + CakePHP

2006-10-23 Thread [EMAIL PROTECTED]
Hi everyone, This is the first time I use PHP, so it's very exciting + somewhat confusing at the same time. Currently I have a board runs on SimpleMachineForum software with 1+ members and I want to use SMF's authentication system for the project Im working on (reasons: well, the current

Re: Some questions about PKs and FKs

2006-10-23 Thread Marcelo de Moraes Serpa
Oh yeah, thanks for reminding me of that sheet :)Also, I've been talking to phpnut and got some directions on that ;)Thanks!Marcelo.On 10/23/06, Mikee Freedom [EMAIL PROTECTED] wrote: hey Marcelo,Cake conventions define that every table / model should have theprimary key of `id`.also, there are

$this-redirect() after an ajax update

2006-10-23 Thread Brian French
I have the following code which addes a revision. the form is in a div that gets updated when the form is submitted. The form is submitting and saving fine and the div is getting updated when finished, but the problem is, the div is using the default.thtml layout instead of the ajax.thtml

Re: Blog Tutorial vs Screen cast (confused?)

2006-10-23 Thread Robert
Cheers for the reply guys, I think I finally figured it out :) On Oct 22, 6:59 am, gobblez [EMAIL PROTECTED] wrote: bake.php is some sort of command line script that the windows user in me is trying to avoid. But I think it has a wizard type thing in your web browser too, at least I

Cake associations question (foreign keys)

2006-10-23 Thread Robert
Hey guys, ok, been doing a lot of reading the last few days and I think I am nearly ready to start creating some more complex models and associations. But I have a question about Foregin keys. In the manual (http://manual.cakephp.org/chapter/models -section 4) it shows how to make associations

Re: Cake associations question (foreign keys)

2006-10-23 Thread John David Anderson (_psychic_)
On Oct 23, 2006, at 3:35 PM, Robert wrote: Hey guys, ok, been doing a lot of reading the last few days and I think I am nearly ready to start creating some more complex models and associations. But I have a question about Foregin keys. In the manual

Re: Cake associations question (foreign keys)

2006-10-23 Thread Robert
Cheers John for the quick reply. Haven't run into problems, it was just that from my Databases lecture I vaguely remember something about foreign keys;) and the manual didn't mention it all, was just checking if it was something the author 'assumed' the reader had already done. Any advise of

Re: Cake associations question (foreign keys)

2006-10-23 Thread John David Anderson (_psychic_)
On Oct 23, 2006, at 4:03 PM, Robert wrote: Cheers John for the quick reply. Haven't run into problems, it was just that from my Databases lecture I vaguely remember something about foreign keys;) and the manual didn't mention it all, was just checking if it was something the author

basic Ajax file uploading

2006-10-23 Thread Brian French
I have a form which is submitted via ajax. I have a field in this form which needs to be a file upload. below is the smippet of code. it's only sending me the local location of the file and not the actual file data. how do i get it to properly upload the file? form onsubmit=return false;

Re: can anyone help me on find()

2006-10-23 Thread Grant Cox
And for the conditions, you can pass an associative array when all you want is equality. $found_username = $this-Username-find( array('name'=$this-data['Username']['name'], 'language_id' = $lang) ); On Oct 24, 1:03 am, Samuel DeVore [EMAIL PROTECTED] wrote: $this-Username Models are

RE: Cake associations question (foreign keys)

2006-10-23 Thread Christian Winther
Hey If you want to use constraints / foreingkeys ( FK ) under the MySQL database server, you need to use the table type innodb instead of MyISAM ( default for mysql ) http://dev.mysql.com/doc/refman/4.1/en/innodb-overview.html ( == 5.1 )

need help with specifying a complex query

2006-10-23 Thread bingo
Hi Bakers, I am trying to figure out a good way to specify a query. I want to retrieve all the singers based on the songs that a user has in his library. Here is my database structure Users id name singer id name songs id title album

AJAX TO-DO LIST ERROR

2006-10-23 Thread Eric
Hi, everyone I just follow the instrction from the to-do list ajax function. I got everything copy and pasted. When I click the Add button there is an error message To do Notice: Undefined variable: javascript in W:\www\blog\cake\libs\view\templates\layouts\default.thtml on line 36 Fatal

Re: How to Save a Div's position into a database?

2006-10-23 Thread Eric
hi, I just follow the instrction to do the to-do list ajax function. I got everythin copy and pasted. When I click the Add button there is an error message To do Notice: Undefined variable: javascript in W:\www\blog\cake\libs\view\templates\layouts\default.thtml on line 36 Fatal error: Call

Re: Fetching data with join over 3 tables

2006-10-23 Thread Samuel DeVore
try adding $this-Artist-recursive = 2; (or other recursion level defaults to 1) values -1 only the model of interest NO joins 0 only the root level (may include belongsTo and hasOne 1 only first level of hasMany and hasAndBelongsToMany 2 ok I bet you can guess ;) hth, if not hope for someone

Re: basic Ajax file uploading

2006-10-23 Thread nate
how do i get it to properly upload the file? You don't. Because of the way the XHR transport layer works, you can't use it to send actual file data. What you *can* do is have the upload form POST to an iframe, and use a separate set of asynchronous requests to monitor it's progress.

Re: AJAX TO-DO LIST ERROR

2006-10-23 Thread nate
http://www.google.com/search?q=%22Undefined+variable:+javascript%22+cakephpnum=30hl=enlr=safe=offclient=safarirls=enfilter=0 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

othAuth problem solved with new version

2006-10-23 Thread yeastinflexion
it keeps popping up on the channel and the groups so i will mention this issue again: with the old othAuth v0.2 actions were being performed even though they were restricted. i discovered the v0.5 code that othman accidentally posted on the bakery and tried to get it working with the existing

Re: Fetching data with join over 3 tables

2006-10-23 Thread Preloader
Oh ... thank you very much, it works great! Maybe I should learn the hole API by heart before coding one single line. :-) Thanx, Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: can anyone help me on find()

2006-10-23 Thread nate
And/or: $found_username = $this-Username-find(am($this-postConditions(), array('language_id' = $lang)); -or- $found_username = $this-Username-findByNameAndLanguageId($this-data['User']['name'], $lang)); (PHP 5) -or- $found_username =

Re: Cake associations question (foreign keys)

2006-10-23 Thread nate
Nevermind the fact that compound primary keys are a Dumb Idea(tm). --~--~-~--~~~---~--~~ 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

Re: Fetching data with join over 3 tables

2006-10-23 Thread Preloader
Tested a little bit - one interesting point: if I have a field Artist in my albums table it got overwritten by the Artist recursion, so watch out :-) ... ... here the new structure: ___ Array ( [0] = Array ( [Artist] =