Re: Save data to database

2006-05-29 Thread nate
k, I'm not gonna ask what a spage is, but if you put var $useTable = 'newsletter'; in your Spage model, it should work out okay. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gr

Save data to database

2006-05-29 Thread pex
Hey, i have a problem i cant't solve let's say my models name is Spage. Now my database table isn't called Spage, it's called "newsletter". I've got a function called "newsletter" in my SpagesController where i said "$this->Spage->setSource('newsletter');". Now i want to save my data to the datab

Re: Installation path

2006-05-29 Thread gwoo
just copy the contents of the app directory into any subdirectory. Make sure you get the htaccess file, which could be hidden. Then change the CAKE_CORE_INCLUDE_PATH to point to your "cake" directory. Assuming you have mod_rewrite, everything should go just fine. --~--~-~--~~-

Re: associations assoc. array keys too restricted?

2006-05-29 Thread nate
I'm saying you don't have to change your primary key's, you just need to tell Cake what they are; I understand your constraints in trying to integrate with an existing site. Cake tries to be as real-world-friendly as possible. If you post your db schema for the relevant tables, it'd be easier to

Re: /*+*+*+*+*+*/ ''' Paraíso Tecnológico ''' /*+*+*+*+*+*/

2006-05-29 Thread nate
This is an English mailing list! I expect *English* spam! --~--~-~--~~~---~--~~ 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 gr

Re: How to set a JavaScript load xml path?

2006-05-29 Thread nate
Eeh? I'm going to guess at what I think you mean, so if I'm completely off-base, don't say you haven't been warned. I think you need to prepend the path with Cake's base path, i.e.: you can put validation-manager.xml in app/webroot/files and do the following: ValidationFramework.init("base; ?>/

/*+*+*+*+*+*/ ''' Paraíso Tecnológico ''' /*+*+*+*+*+*/

2006-05-29 Thread % Didac
La opinion sobre el paraiso y la tecnologia ¿ te has preguntado que es el paraiso y que es la tecnologia ? paraiso : -- http://www.Piensa.Unlugar.com Tecnologia : --- http://www.telefonica.Online.TK AutoResponder : http://www.google.es/search?hl=es&q=prot%C3%A9gete&meta

Re: associations assoc. array keys too restricted?

2006-05-29 Thread GregL
I am adding Cake to an existing site, so I wasn't easily able to accomodate the naming conventions. I did go through and change all the primary keys to "id", however, so that isn't what's keeping my models from seeing each other. I'm still not fully understanding why, but I'm just going to stick

How to set a JavaScript load xml path?

2006-05-29 Thread [EMAIL PROTECTED]
I use a javascript validation framework componets, To initlize a js validation use this: ValidationFramework.init("validation-manager.xml") validation-manager.xml is the configure file However I set the path ("validation-manager.xml","js/validation-manager.xml","/js/validation-manager.xml","../js/

Re: Installation path

2006-05-29 Thread bigdog
Try working with routes or hijack your url. Routes: http://groups.google.com/group/cake-php/browse_thread/thread/d570ca3d03e2d737/a9798df92bf58a66?q=routes&rnum=1#a9798df92bf58a66 or http://manual.cakephp.org/chapter/4 To hijack: http://groups.google.com/group/cake-php/browse_thread/thread/6

Re: associations assoc. array keys too restricted?

2006-05-29 Thread nate
As I said, you can call the association whatever you want, as long as you set the approriate array keys. If your table uses a primary key other than 'id', you can set it in your model as follows: var $primaryKey = 'WhateverID'; I'm going to assume this is your problem, since it looks like you u

Installation path

2006-05-29 Thread Antonio Hernández
Hello.I'm trying cakephp for the first time, and I'm wondering how could I tell to cakephp configuration that the base url of the application is not '/', but, for example '/caketest'.In my development machine I have installed cake under http://localhost/caketest, but I want to be able to install t

Re: associations assoc. array keys too restricted?

2006-05-29 Thread GregL
In my case I had a model class "MusicDetails" which in turn had an association with Composers. When I had class Music extends Item { var $name = 'Music'; var $belongsTo = array( 'Details' => // not 'MusicDetails' array('className' =>

Re: Adodb with Sybase it not work on CakePHP

2006-05-29 Thread nate
Okay *fine*. I'll write a Cake-native Sybase driver! --~--~-~--~~~---~--~~ 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,

Re: associations assoc. array keys too restricted?

2006-05-29 Thread nate
You can call both the association name and the class name whatever you want. In fact, if the association name and class name are the same, the 'className' key is not required. The association name defines the name of the key that is returned in query results, so you can use whatever you want for

Re: associations assoc. array keys too restricted?

2006-05-29 Thread nate
You can call both the association name and the class name whatever you want. In fact, if the association name and class name are the same, the 'className' key is not required. The association name defines the name of the key that is returned in query results, so you can use whatever you want for

associations assoc. array keys too restricted?

2006-05-29 Thread GregL
In an association, today for me it was $belongsTo, I learned that the associative array you make is required to re-use the class name for both the className field and the key of the assoc. array, like this: class Music extends Item { var $name = 'Music'; var $belongsTo = array(

Re: prevent expiration of session info?

2006-05-29 Thread RosSoft
Hi! you can work with cookies + encryption with this http://rossoft.wordpress.com/2006/05/22/cookie-component/ I suggest you to save in the cookie the user+password all encrypted in reversible way. The user can't modify the content because he doesn't know the key for encrypt. --~--~-~-

Re: Error after installing oceancms

2006-05-29 Thread John Zimmerman [gmail]
It seems I messed up my .htaccess file in the root of my cake install.  This was the source of my 404's.I am going to retry oceancms later.  So if anyone else was going to try to move it to 1.1 I didn't meanto scare you off.  So far most of the errors after working around the validators problem see

Re: The proper way to use generateFieldNames()??

2006-05-29 Thread stephenrs
That was it!! I increased memory_limit from 32M to 80M and now my forms render. It is still much slower than building the forms one field at a time, but no more blank screen. Thank you, thank you, thank you! --~--~-~--~~~---~--~~ You received this message because

Re: Google Maps + CakePHP Recipe

2006-05-29 Thread tom
Yeah, I was going to post it on my in-progress blog ( http://notes.we-run.com ) but TXP was messing up, and then as a snippet, and the registration process was taking a while. I'll post it elsewhere soon. --~--~-~--~~~---~--~~ You received this message because you

Re: Google Maps + CakePHP Recipe

2006-05-29 Thread tom
It's not public yet. I'm writing an online running log, which will take a month or more to get production-read. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

Re: Scaffold vs. Baking

2006-05-29 Thread Larry E. Masters aka PhpNut
Latest version is 1.1.3.2967Released a few days ago.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ On 5/29/06, jgoforth <[EMAIL PROTECTED]> wrote: my version.txt says 1.0.1.2708 which as far as I know is the mostrecent

Re: Scaffold vs. Baking

2006-05-29 Thread AD7six
Might be worth your time looking again ;) http://cakeforge.org/frs/?group_id=23&release_id=96 AD7six --~--~-~--~~~---~--~~ 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@

Re: Scaffold vs. Baking

2006-05-29 Thread jgoforth
my version.txt says 1.0.1.2708 which as far as I know is the most recent released version. --~--~-~--~~~---~--~~ 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

Re: prevent expiration of session info?

2006-05-29 Thread AD7six
Hi Dave, I wondered if someone more knowledgable would chip in on this thread: Glad you found a solution. I suggested DB sessions primarily because it would be easier to debug and find out what was happening should things go wrong (and having never expiring sessions is a situation that may well

Baking Day

2006-05-29 Thread Armando Sosa
Hi fellow bakers!I was reading about railsday 2006:[quote]Here's how it works… On June 17th, teams of one to three people around the globe will have exactly 24 hours to develop a Rails application from the ground up. When it's all over, the entries are judged and the winners go home with the goods.

Re: prevent expiration of session info?

2006-05-29 Thread Dave
What I ended up doing was creating my own database-driven solution. Turns out to be pretty simple. You don't need encryption since all you have to store on the client is a key. So, I just used md5 hashing to create a key in a cookie, and added a table and model for the session information. Authent

use of recursive

2006-05-29 Thread [EMAIL PROTECTED]
my models: execution hasMany result state hasMany result result belongsTo execution,state What I want to do: >From the execution View, I need to now the state of all the result I try to set the recursive at 2 from the execution controller: $this->set('data', $this->Execution->findAll($conditio

Re: Adodb with Sybase it not work on CakePHP

2006-05-29 Thread joriw
I'm try to use native adodb with sybase its ok. But when I use adodb with sybase via cakePHP the CGI error is shown ! Please try solve for me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Re: Help me out on my SQL syntax please

2006-05-29 Thread RosSoft
try changing int to int(11) --~--~-~--~~~---~--~~ 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 PROTE

Re: Session->setFlash(), Layouts and helpers

2006-05-29 Thread nate
Congratulations, you found a bug in Cake. It's shocking, I know. But yes, it still does happen from time to time. Should be fixed in the next couple hours. If you think there might be a bug, you can report it at https://trac.cakephp.org, and it'll get fixed a little quicker. Thanks. --~--~-

Re: Model's update method in cake 1.1

2006-05-29 Thread nate
Actually, most of the code above is handled in the DBO abstraction. What would be more efficient is something like this: class AppModel extends Model { var $htmlFields = array(); function beforeSave(){ foreach ($this->htmlFields as $field) {

Re: The proper way to use generateFieldNames()??

2006-05-29 Thread Andreas Henden
On Mon, May 29, 2006 10:24 am, stephenrs said: > > EDIT: actually, it's not a browser timeout that I'm seeing, because > even with max_execution_time set very high, calls to generateFieldNames > causes a blank page to render in the browser. > > Any ideas? I'm not sure if this is the correct solut

Re: Adodb with Sybase it not work on CakePHP

2006-05-29 Thread joriw
Ok, I've change to using query(). But it same problem. ( I try to use adodb with mysql it no have problem.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to ca

Re: Adodb with Sybase it not work on CakePHP

2006-05-29 Thread RosSoft
first, findBySql is deprecated, use query() instead. Anyways, you have an error with CGI ? You haven't PHP as a module in Apache? If you comment findBySql, the CGI error is not shown? --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Adodb with Sybase it not work on CakePHP

2006-05-29 Thread joriw
I'm using cakePHP and adodb (cake_1.0.1.2708.tar.gz , adodb481.tgz.gz) and I query this sql in my.php as following: my.php - class MyModel extends AppModel { var $name = 'My'; var $useTable = false; var $useDbConfig = 'sybase'; functio

Re: hasAndBelongsToMany Manual error

2006-05-29 Thread Gustavo Carreno
On 5/29/06, felle42 <[EMAIL PROTECTED]> wrote: > > Perhaps this is already fixed in the 1.1.3.x > version of the framework. I haven´t tested it yet. Please do and report with a ticket on trac if the issue still persists. -- < If you know Red Hat you know Red Hat, If you know Slackware you know

Re: hasAndBelongsToMany Manual error

2006-05-29 Thread felle42
There´s also another error in the same sector. I found out that I have to provide an array for the associated model. Giving only one ID(not as an array) didn´t work. Perhaps this is already fixed in the 1.1.3.x version of the framework. I haven´t tested it yet. from the manual of HABTM-documentat

Re: The proper way to use generateFieldNames()??

2006-05-29 Thread stephenrs
EDIT: actually, it's not a browser timeout that I'm seeing, because even with max_execution_time set very high, calls to generateFieldNames causes a blank page to render in the browser. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are su

Re: CAKE_ADMIN and /bare

2006-05-29 Thread Federico
Il giorno 27/mag/06, alle ore 12:43, gwoo ha scritto: > Actually, bare with admin routes should never have worked, and never > has for me. ops :D > However, with the RequestHander, bare routes are a thing of the past. Indeed, used setAjax() in the methods I was trying to request /bare and g

Re: Error after installing oceancms

2006-05-29 Thread John Zimmerman [gmail]
I got past the validators part, but it seems that none of the controllers want to display pages properly with the new 1.1 cake installation.right now I can get a static page to render without a stylesheet at /hodes/index if I remove the redirect call from the index function. Letting /hodes/view try

The proper way to use generateFieldNames()??

2006-05-29 Thread stephenrs
For some of the forms on my project, I'm using the generateFieldNames() controller method (without any arguments) to get a $fieldNames array, and the $form->generateFields( $fieldNames ) form helper method to render my form fields. The problem is that the call to generateFieldNames() is taking a