Re: Save data to database
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 group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Save data to database
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 database by using "$this->Spage->save($this->data);". But that wont't work. He's just saving the created and modfied row, not the data that should be put in "name" and "email". But in my view the inputfields got the name "Spage/name" and "Spage/email". Why wont that work? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Installation path
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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: associations assoc. array keys too restricted?
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 help you figure out how to make this work better (or just work ;-). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: /*+*+*+*+*+*/ ''' Paraíso Tecnológico ''' /*+*+*+*+*+*/
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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: How to set a JavaScript load xml path?
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; ?>/files/validation-manager.xml") --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
/*+*+*+*+*+*/ ''' Paraíso Tecnológico ''' /*+*+*+*+*+*/
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= Herounknown & Boixnet = 0,101% pi®ata --~--~-~--~~~---~--~~ Ha recibido este mensaje porque está suscrito a Grupos de Google "Cake PHP" grupo. Si quiere publicar en este grupo, mande un correo electrónico a cake-php@googlegroups.com Para anular la suscripción a este grupo, envíe un mensaje a [EMAIL PROTECTED] Para visualizar más opciones, visite este grupo enhttp://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: associations assoc. array keys too restricted?
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 to the convention that for this $belongsTo, the name I assign the array is significant and has to agree with the class name inside. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
How to set a JavaScript load xml path?
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/validation-manager.xml") and wherever I store the validation-manager.xml file,It never works; I also try to make it cake work property by view the htm file(which config this js validation component) from url like "file:///E:/SVN/company/SD2/project/sms_manage/source_code/app/webroot/t.htm#add",the visit it under "apache url":http://192.168.1.18/t.htm,it occurs errors! How to resovle this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Installation path
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/66dc2488f95ca098 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: associations assoc. array keys too restricted?
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 use your own key-naming convention. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Installation path
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 the application I will develop on any other subdirectory with only a change in configuration. I've tried to find anything about this on the manual, but I don't get it. Is there any standard way to tell cake what the base url is?Thank you very much--antonienko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: associations assoc. array keys too restricted?
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' => 'MusicDetails', 'dependent' => true, 'foreignKey' => 'DetailRef'), ); } class MusicDetails extends AppModel { var $name = 'MusicDetails'; var $useTable = 'tblMusic'; var $hasAndBelongsToMany = array( 'Conductors' => array('className' => 'Person', 'joinTable' => 'joinMusicPersonConductor', 'foreignKey' => 'MusicIDref', 'associationForeignKey' => 'PersonIDref'), } then the MusicDetails data came in fine to my view, but the Conductors data that was one association further was not found because Cake was unable to come up with an ID of the MusicDetails to which it was linked. It was querying with 'MusicIDref = NULL' instead of = 2 or whatever. Once I changed the name of the key to "MusicDetails", thus duplicating the name in both places, the more-nested association started working. That seems to contradict "you can call the association name whatever you want." So what am I misunderstanding? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adodb with Sybase it not work on CakePHP
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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: associations assoc. array keys too restricted?
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 that (assuming that the class in 'className' actually exists). Also, if you're using the defaults for all array keys (read: following Cake's conventions), you don't even need to define the array, just use: var $belongsTo = 'Details'; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: associations assoc. array keys too restricted?
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 that (assuming that the class in 'className' actually exists). Also, if you're using the defaults for all array keys (read: following Cake's conventions), you don't even need to define the array, just use: var $belongsTo = 'Details'; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
associations assoc. array keys too restricted?
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( 'MusicDetails' => array('className' => 'MusicDetails', 'dependent' => true, 'foreignKey' => 'DetailRef'), ); } So the following will fail to work: class Music extends Item { var $name = 'Music'; var $belongsTo = array( 'Details' => // called this Details as I would prefer array('className' => 'MusicDetails', 'dependent' => true, 'foreignKey' => 'DetailRef'), ); } This seems limiting to me. I expected the key name to be under my control. What if I wanted to link to the same foreign table in two ways for two reasons? Like a User that has User 'friends' and User 'enemies' as a hasManu relationship? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: prevent expiration of session info?
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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Error after installing oceancms
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 seem to be my fault. On 5/29/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: 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 to run results in a page not found error, which is a little odd.Right off I am not seeing an easy way to update this to work with 1.1.Maybe the project owners will get around to it, or maybe we can learn from their sourcecode and start from scratch with 1.1.I wasn't really interested in the whole CMS system, just in parts of the "how things were done" to apply elsewhere. On 5/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: HiAny results? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: The proper way to use generateFieldNames()??
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 you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Google Maps + CakePHP Recipe
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 are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Google Maps + CakePHP Recipe
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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Scaffold vs. Baking
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 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Scaffold vs. Baking
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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Scaffold vs. Baking
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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: prevent expiration of session info?
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 be prone to problems). I don't always post everything that I am thinking to keep posts shorter. As I've alluded, I'm not a session-type expert but: Be careful not to permit a backdoor to your app - even if the app isn't public. Md5 isn't really a safe solution: If a malicious user recognises that his username and/or password is md5ed into a cookie (and this would be most malicious users' first guess), it's childsplay to change the cookie value the the md5 value of another username/ common password and see where it takes you. Here's a very similar thread: http://groups.google.com/group/cake-php/browse_frm/thread/5395c72c008ab2dd/3b80490729e934ee?q=session+ad7six&rnum=1#3b80490729e934ee Cheers, 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Baking Day
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.[/quote]And thought it will be cool to have something like that for Cake, don't you think? I don't have the necessary technical skills to run something like that, but I've registered bakingday.com just in case that anybody wants to work on it. I'm sure that developing an app in 24 days is a piece of Cake and demonstrating it we will be publicizing our beloved framework and maybe winning some prizes ( if any sponsor shows up!). So, what do you think?-- Armando Sosawww.nolimit-studio.com/baking --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: prevent expiration of session info?
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. Authenticating the cookie then just involves looking up the table row that matches the key, and (optionally) verifying against other information. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
use of recursive
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($conditions,null,null,null,1,2)); In the view I only got the right $data['execution']['result']['state_id'] but $data['execution']['result']['state'] is still null That's how the query is build SELECT `state`.`id`, `state`.`name` FROM `state` AS `state` WHERE `state`.`id` = {$__cakeForeignKey__$} and the query: SELECT `state`.`id`, `state`.`name` FROM `state` AS `state` WHERE `state`.`id` = NULL Why did I got `state`.`id` = NULL ??? I hope someone can understood my problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adodb with Sybase it not work on CakePHP
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 post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Help me out on my SQL syntax please
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 PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Session->setFlash(), Layouts and helpers
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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Model's update method in cake 1.1
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) { if (isset($this->data[$this->name][$field])) { $this->data[$this->name][$field] = h($this->data[$this->name][$field]); } } } } Then, in your model classes, you can do this: class Post extends AppModel { var $htmlFields = array('body'); } This method has a few additional advantages: - You can use Cake's builtin methods instead of having to rewrite your app to support different ones. - Using the $htmlFields array, you can define which fields in each model should be HTML-encoded. - You can add an afterFind callback to AppModel, to decode the respective fields. One thing to watch out for with both methods, though, is that the HTML data does not get escaped multiple times. This can be avoided by adding the afterFilter metioned above. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: The proper way to use generateFieldNames()??
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 solution but I have experienced sometimes that the page is just loading and nothing happens. The solution was to change the max memory in php.ini. Default is 8M I think. I just inserted a zero so it became 80M and then it works. I'm not sure if it's the same thing but it is worth a look! And I'm not sure if this is the best solution! > > > > > > From Andreas Henden [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adodb with Sybase it not work on CakePHP
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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adodb with Sybase it not work on CakePHP
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 to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Adodb with Sybase it not work on CakePHP
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'; function view() { $sql = "SELECT name FROM sysobjects"; $ret = $this->findBySql($sql); return $ret; } } - When I run web browser Then i've got an alert message box "CGI / FastCGI has encountered a problem and needs to close. We are sorry for the inconvenience." and close message box web browser have display: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Please tell me the right way to use adodb-sybase --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: hasAndBelongsToMany Manual error
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 Linux > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: hasAndBelongsToMany Manual error
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-documentation: "The submitted data must be a single ID, or an array of IDs of linked records." greets felle42 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: The proper way to use generateFieldNames()??
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 subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: CAKE_ADMIN and /bare
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 got the results I wanted. Thank you, - fm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Error after installing oceancms
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 to run results in a page not found error, which is a little odd.Right off I am not seeing an easy way to update this to work with 1.1.Maybe the project owners will get around to it, or maybe we can learn from their sourcecode and start from scratch with 1.1.I wasn't really interested in the whole CMS system, just in parts of the "how things were done" to apply elsewhere.On 5/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: HiAny results? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
The proper way to use generateFieldNames()??
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 very long time - in fact the browser times out most of the time. I'm wondering - is there a better way to use generateFieldsNames(), or is it better practice to generate form fields individually in the view, and not use generateFieldNames at all...or am I just missing something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---