Re: Duvida com o bake 1.2

2008-01-22 Thread DrWinux
gostaria de alterar os arquivos add, view, index, edit para que quando o bake gere os mesmos, já esteja personalizado, com isso ganharia tempo, na criação dos views, o model e os controllers já consegui alterar, mais os views não funciona. não sei da onde ele pega os modelos padrões, pq mesmo eu

Re: Seesion Cakephp 1.2

2008-01-22 Thread Rafael Bueno
Bom dia pessoal, estou com o mesmo problema do Rogério tentei utilizar no core Configure::write('Session.save', 'php'); e Configure::write('Session.save', 'cake'); Configure::write('Session.cookie', 'php'); e Configure::write('Session.cookie', 'php'); mais ñ deu certo entre varias outras coisas

Re: Implementação Carrinho de compras

2008-01-22 Thread TSassara
Ah sim, eu dei uma boa olhada no bakesale e fiquei interessado no fonte. O bakesale guarda as informações no SGDB e a tabela do modelShoppingCart possui uma coluna session com um valor baseado na sessão do usuário. Eu pensei em usar o bakesale, porem isso seria em ultimo caso. Gostaria de poder

Re: Seesion Cakephp 1.2

2008-01-22 Thread Juan Basso
O padrão do Cake 1.2 já vem habilitado por padrão. Provavelmente não deve ser do Cake o problema. Vamos baixando o nível então... Você está usando Linux? Windows? PHP4? PHP5? Banco de Dados? ... ? Juan Basso On 22 jan, 09:19, Rafael Bueno [EMAIL PROTECTED] wrote: Bom dia pessoal, estou com o

Re: Duvida com o bake 1.2

2008-01-22 Thread Sadjow Medeiros Leão
Beleza, Eu disponibilizei em http://www.sadjow.com/bakept.php Ta zipado. Esse é um link temporário, e se sumir eu venho aqui colocar o link da versão 1.2. Tem 800k por causa do fckeditor. Qualquer dúvida sobre as configurações que eu fiz no fckeditor e no bakept é só perguntar. E gostaria de

Re: Seesion Cakephp 1.2

2008-01-22 Thread Sadjow Medeiros Leão
Seu navegador ta gravando cookie? pois o Id da sessão é gravao através do cookie no navegador. --~--~-~--~~~---~--~~ Recebeu esta mensagem porque está inscrito em Grupo Cake PHP Português do Grupos Google. Para enviar mensagens para este grupo, envie um email

Chave composta e atributo em tabela associativa

2008-01-22 Thread Fênix
Olá pessoa, sou um novo membro do grupo, estou precisando de um ajuda. no modelo de banco de dados que estou trabalhando há um associação muitos pra muitos que gera um atributo na tabela associativa. seguindo o padrão de nomenclatura do cake toda chave primária deve ser ID, porém o que

Re: Seesion Cakephp 1.2

2008-01-22 Thread Marcelo Linhares
tenta colocar session_start() no início do controller! []s On 22 jan, 13:36, Sadjow Medeiros Leão [EMAIL PROTECTED] wrote: Seu navegador ta gravando cookie? pois o Id da sessão é gravao através do cookie no navegador. --~--~-~--~~~---~--~~ Recebeu esta

Re: Connecting Two HABTM Tables

2008-01-22 Thread david_setwise
Doesn't CakePHP 1.2 support additional fields in a HABTM table? David On Jan 21, 6:15 pm, Ponderosa - Lists [EMAIL PROTECTED] wrote: Your colors_shirts_sizes table should be a new table/model inventory. Inventory - id - shirt_id - size_id - color_id - inventory_qty ... any other

Re: ternary and binary relationships together

2008-01-22 Thread AD7six
On Jan 22, 1:49 am, pipi69e5 [EMAIL PROTECTED] wrote: Hi, I'm new in cakePHP (and in database modeling (and in english:) too)! I have three models (entities): A, B and C. A hasAndBelongsToMany B, A hasAndBelongsToMany C and B hasAndBelongsToMany C All of this join-tables has own

upload photo and files

2008-01-22 Thread Nil
Hi I m trying to upload the photo. I used the code from http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/ this site. But my application is work fine on local machine but it is not working on server. Can you please help me. Thanks.

When is the cake Namespace Reference in the API going to be fixed?

2008-01-22 Thread matches
When is the cake Namespace Reference in the API going to be fixed? Does anyone know? --~--~-~--~~~---~--~~ 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

cake Namespace Reference

2008-01-22 Thread matches
What's up with cake Namespace Reference? When is it going to be fixed? 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

Apache error 404 on AJAX POST on existing controller action

2008-01-22 Thread Hawk|
Hi, i have a strange problem. i have an controller with an action add and edit If i call the controller action in the first place it works fine. I got my form and enter my data. After sending the data back to the controller action it never reaches the action in the contoller. It got somewhere

Re: afterFind() dillemna - eats memory for breakfast

2008-01-22 Thread Flipflops
Thanks AD7six You learn something new every day. That is certainly a lot easier than a custom query! I downloaded 1.2 last week and am looking forward to trying it out. J --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

problem to updating last_login using save()

2008-01-22 Thread Rgarg
i am trying to update field 'last_login' in table 'users' like this : $someone = $this-User-findByUsername($this-data['User'] ['username']); $this-Session-write('last_login', $someone['User'] ['last_login']); $someone['User']['last_login'] = date(Y-m-d H:i:s);

Re: Connecting Two HABTM Tables

2008-01-22 Thread AD7six
On Jan 22, 6:25 am, david_setwise [EMAIL PROTECTED] wrote: Doesn't CakePHP 1.2 support additional fields in a HABTM table? David Yes, but I doubt that is going to make your life very easy if you try to administer/user your Colors_Shirts_Sizes table based on that. Wouldn't your

Re: Connecting Two HABTM Tables

2008-01-22 Thread MrTufty
It does, but you still need a model for the link. If I remember correctly anyway. I think Danielle is correct here though. Your database structure is overcomplicated a little - you could achieve the same goal by having: Size:- id size shortCode Colour:- id colour Style:- id style description

Re: Pagination

2008-01-22 Thread bhushan A
Hi, i have achieved dynamic pagination. But got one bug. I have made one text field which takes input from user for Records per page. Its displaying records as per field but when i am clicking on next page link then records displayed are 'default'(Not as per field's input). what to change? Reply

fileinfo help needed

2008-01-22 Thread bob
Hi I am having trouble getting the PHP PECL fileinfo component to work. I am using Cakephp 1.2, XAMPP in WIndows Vista environment. I have the following code: $file = C:\xampp\htdocs\app\webroot\pics\file.jpg; $handle = finfo_open(FILEINFO_COMPRESS,'c:/magic');// FILEINFO_COMPRESS,c:/magic);

Re: problem to updating last_login using save()

2008-01-22 Thread AD7six
On Jan 22, 9:47 am, Rgarg [EMAIL PROTECTED] wrote: i am trying to update field 'last_login' in table 'users' like this : $someone = $this-User-findByUsername($this-data['User'] ['username']); $this-Session-write('last_login', $someone['User'] ['last_login']);

What do fields foreign_key in ACL do?

2008-01-22 Thread [EMAIL PROTECTED]
Hi all, I'm currently working with ACL on creating some groups for users. I was wondering what are foreign_key and model fields for in AROS table !? I walked through API without success on this matter. My first thought is that foreign_key field can be used for referencing to e.g. users table...

Re: FormHelper and $validate

2008-01-22 Thread Kalt
In fact this was a bug. Ticket submited and gwoo has corrected the problem. https://trac.cakephp.org/ticket/3869 On 4 jan, 15:35, Kalt [EMAIL PROTECTED] wrote: 1.2.0.6311-beta : if you define an optionnal input in your $validate array, the FormHelper mark it with a required css class. In a

Re: When is the cake Namespace Reference in the API going to be fixed?

2008-01-22 Thread AD7six
On Jan 22, 8:01 am, matches [EMAIL PROTECTED] wrote: When is the cake Namespace Reference in the API going to be fixed? Does anyone know? Don't double post please. Did you already look for a ticket and create one if there isn't one? https://trac.cakephp.org

Re: Connecting Two HABTM Tables

2008-01-22 Thread david_setwise
Doesn't CakePHP 1.2 support additional fields in a HABTM table? David On Jan 21, 6:15 pm, Ponderosa - Lists [EMAIL PROTECTED] wrote: Your colors_shirts_sizes table should be a new table/model inventory. Inventory - id - shirt_id - size_id - color_id - inventory_qty ... any other

Re: cake Namespace Reference

2008-01-22 Thread AD7six
On Jan 22, 5:02 am, matches [EMAIL PROTECTED] wrote: What's up with cake Namespace Reference? When is it going to be fixed? Thanks What are you on about. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: How do people usually learn CakePHP and what is best?

2008-01-22 Thread Oxygen
Oops, not used to Google groups yet... Ment to say: If I were at home I'd be playing around to my heart's content with whatever I fancied doing I wouldn't be nearly so bothered, in this case I need to get something done for a customer in a couple of weeks. On Jan 22, 10:18 am, Oxygen [EMAIL

Re: Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-22 Thread Matt
I've got a working database configuration as the other models use the database. This model doesn't use the database because I am just using its validation methods to validate a form. On Jan 21, 6:00 pm, duRqoo [EMAIL PROTECTED] wrote: You still have to have database.php file in your

Re: How do people usually learn CakePHP and what is best?

2008-01-22 Thread Oxygen
Wow, I wasn't expecting this many replies! Thanks guys! To give you a little more background, I've just changed from Java Swing development to PHP. The first thing I had to do in PHP was set up Eclipse and get proper debugging working (I'm planning to look at Komodo and the rest soon). Stepping

Re: problem to updating last_login using save()

2008-01-22 Thread Rgarg
in database last_login is not going to change. i hv also use pr($someone) it contain all values but not reflecting in database. On Jan 22, 2:13 pm, AD7six [EMAIL PROTECTED] wrote: On Jan 22, 9:47 am, Rgarg [EMAIL PROTECTED] wrote: i am trying to update field 'last_login' in table 'users'

Re: How do people usually learn CakePHP and what is best?

2008-01-22 Thread RichardAtHome
The best advice I could give you under the circumstances you mentioned (time constraints), is to not use Cake (initially). Get the project out using whatever methods you usually employ. Once its out and you have some breathing space, you could use it as a learning project and re-write it using

Re: Pagination

2008-01-22 Thread Nasko
There are several alternatives you could use: * Use links instead of form input - this way you could pass show:20, show:50 in predefined steps. Of course this is not per your requirements as you probably need the visitor to be able to fully customize the number of records. The upside with this

Re: Simple binding question.

2008-01-22 Thread phpjoy
That's a very good idea. silly me. I don't know why I was stubborn using the ticket model. On Jan 21, 12:57 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Do bind in the model you will execute the findAll! As you say: A deal has many tickets, and belongs to one item. do bind: Deal

Re: upload photo and files

2008-01-22 Thread Matias Lespiau
Hi, Have you check your permissions on the upload directory? Does the server show any error when uploading? If you can provide us more information we might be able to help. Good luck, On Jan 22, 2008 3:05 AM, Nil [EMAIL PROTECTED] wrote: Hi I m trying to upload the photo. I used the code

Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread RichardAtHome
Hi All I've just upgraded a project to the latest beta 1.2 (cake_1.2.0.6311- beta) and am struggling to get my head around the new find(list) syntax. Previously, I had: $tags = $this-Output-Tag-generateList(null, array(TagType.name, Tag.name ASC), null, null, null, {n}.TagType.name); Which

Re: Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-22 Thread grigri
Have you tried implementing YourModel::schema()? I think you need to when the database is not available. On Jan 22, 10:22 am, Matt [EMAIL PROTECTED] wrote: I've got a working database configuration as the other models use the database. This model doesn't use the database because I am just

Re: What do fields foreign_key in ACL do?

2008-01-22 Thread djiize
it's for bind a model as ARO let's say Users are ARO, so you have 'User' in 'model' and id of user in 'foreign_id' you can have mutltiple ARO: User, Group, Role, Application, ... go see in AclBehavior that automates this On 22 jan, 10:29, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I'm

hasAndBelongsToMany issue

2008-01-22 Thread Eemerge
Hello, I have 3 tables: 1. posts 2. categories 3. post_2_cat I am trying to use hasAndBelongsToMany to fetch a post and its associated categories (from post_2_cat) The only problem i encountered so far is with table fields names. Initially i had post_id and category_id in the posts and

The bakery is borked...

2008-01-22 Thread Mech7
No articles work anymore ? http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings The Article could not be found Its the same with every other article.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread manish
http://groups.google.com/group/cake-php/browse_thread/thread/996efa1f92415163/6c38e322189ec4ef?lnk=gstq=manish#6c38e322189ec4ef On Jan 22, 4:20 pm, RichardAtHome [EMAIL PROTECTED] wrote: Hi All I've just upgraded a project to the latest beta 1.2 (cake_1.2.0.6311- beta) and am struggling to

Re: How do people usually learn CakePHP and what is best?

2008-01-22 Thread alkemann
Adding my 2 cents: 1. start with the blog toturial; USING THE SAME CAKE VERSION that is used in it 2. read the manual (manual.cakephp.org), its more of a quickguide in any case 2.b Make sure you understand the concept, if not the implementation of model associations. Model associations is DA

application falls

2008-01-22 Thread galem
First of all, sorry for my english! Has written the appendix on cakePHP. Have established on a hosting. There were problems: periodically the appendix falls with mistake Warning: require(cake/bootstrap.php) [function.require]: failed to open stream: No such file or directory in

Re: Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread ianh
Try: $tags = $this-Output-Tag-find ( list, array ( order=array(TagType.name, Tag.name ASC) ) ); The list method is now clever enough to insert a fields option that includes your display key and primary key (usually something like name and id respectively). If you want to generate a

Re: ternary and binary relationships together

2008-01-22 Thread pipi69e5
Hy AD! A little bit of thinking and the problem are working out :) 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

Re: Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-22 Thread grigri
It just so happens that I've just had to do this, and I've found a (straightforward) way that works perfectly. Here's a cut-down version with the necessary stuff: -- /app/models/contact.ctp --- class Contact extends AppModel { var $name = Contact; var $useTable = false; function

Re: Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread RichardAtHome
Thanks for replying ian, but I'm still getting the same result: Warning (512): SQL Error: 1109: Unknown table 'TagType' in order clause [CORE\cake\libs\model\datasources\dbo_source.php, line 440] And the SQL remains the same: Query: SELECT `Tag`.`id`, `Tag`.`name` FROM `tags` AS `Tag` WHERE 1 =

CakePhp and Extjs tree

2008-01-22 Thread Paolo
Hi all! Hasanyone tried to integrate cake with extjs tree? I qould like the used to edit the structure of a menu using extjs drag and drop tools on a tree, and then get the values (for ezample, a sequence of root - node 1, node 2- node 3 - node 4 and then update the parent in the db fields. Any

Re: Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread grigri
Model::find('list', ...) automatically assumes you want $recursive - -1 (no joins) unless you specify otherwise. Try this: $tags = $this-Output-Tag-find(list, array( fields = array( '{n}.Tag.id', // keyPath : Option value '{n}.Tag.name', // valuePath: Option display field

Re: Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread grigri
Looks like it's fixed in the latest branch, but not in the beta: https://trac.cakephp.org/changeset/6360/branches/1.2.x.x/cake/libs/model/model.php On Jan 22, 2:20 pm, ianh [EMAIL PROTECTED] wrote: Looking at the code thats what I thought it would do to (using the 1.2 beta) but my unit tests

Re: The bakery is borked...

2008-01-22 Thread JP
works for me.., maybe a temporary problem? On Jan 22, 1:43 pm, Mech7 [EMAIL PROTECTED] wrote: No articles work anymore ? http://bakery.cakephp.org/articles/view/bindable-behavior-control-you... The Article could not be found Its the same with every other article..

Re: The bakery is borked...

2008-01-22 Thread JP
works for me.., maybe a temporary problem? On 22 Jan., 13:43, Mech7 [EMAIL PROTECTED] wrote: No articles work anymore ? http://bakery.cakephp.org/articles/view/bindable-behavior-control-you... The Article could not be found Its the same with every other article..

Re: How to get a Helper and a Component reuse the same code?

2008-01-22 Thread JP
Hi, You could consider this: Create a folder in your /app dir, e.g. /app/mylibs. Put your global classes / utils there, e.g. translator.php, global_utils.php Next create a helper file, e.g. mybasics.php, with some code like that: code function uses_mylib() { $args =

Re: How to get a Helper and a Component reuse the same code?

2008-01-22 Thread JP
Hi, if the idea is to use your own lib or global component and make it globally available (cpntroller, component, helper, ...), I would see a solutions similar to the vendor approach. As you stated vendor could be considered for third party libs. One approach would be to create your own lib

Re: How to get a Helper and a Component reuse the same code?

2008-01-22 Thread JP
Hi, You could consider this: Create a folder in your /app dir, e.g. /app/mylibs. Put your global classes / utils there, e.g. translator.php, global_utils.php Next create a helper file, e.g. mybasics.php, with some code like that: code function uses_mylib() { $args =

Re: Updating a generateList() to use find(list) - problems with syntax?

2008-01-22 Thread ianh
Looking at the code thats what I thought it would do to (using the 1.2 beta) but my unit tests say that, when trying to generate a list of events.url = events.name - this doesn't work: return $this-find ( 'list' , array ( 'conditions' = $conditions

Re: Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-22 Thread Matt
Thanks for pointing out the schema function - I was not aware of this new function. duRqoo in my haste I didn't notice that my database configuration was lacking a default connection. Thank you for your help. On Jan 22, 11:35 am, grigri [EMAIL PROTECTED] wrote: Have you tried implementing

Testsuite and 1.1

2008-01-22 Thread Davide
Hello everybody, I'm trying to use the CakePHP TestSuite[1] and everything seems to work except some little things: The CSS has been changed from cake.default.css to cake.generic.css fixed on line 189 of /app/tests/test.php. When accessing http://app/tests, if I include the final slash in the

Re: Simple GROUP BY ?

2008-01-22 Thread Marcin Jaworski
That explains your problem better :). Do you need all the data from that query? Or only photo_id? In case you just need the photo_id you can do: $photoIds = $this-Hotel-findAll(hotel_id = '$hotel_id', DISTINCT photo_id); Using GROUP BY when there is no agregation function in SELECT clause

question about *po files and i18n

2008-01-22 Thread Dia
hi my question is simple: is it possible use expression like %s in msgid and msgstr in *po files? tried but failed tanks in advance note: manual says encode *po files in ISO-... but in my case I have to encode *po files in UTF-8 in ISO-..., special chars are not displayed correctly my HTML

Re: Simple GROUP BY ?

2008-01-22 Thread grigri
Using GROUP BY when there is no agregation function in SELECT clause somehow works in MySQL (I didn't believe that until I checked this myself), but for example, in MSSQL this raises an error. I think that MySQL is here not compliant with the standard. That's correct. MySQL extends the GROUP

FIX: Error 400 Bad Request

2008-01-22 Thread John - PostalService
I have found a fix for my Error 400 Bad Request problem. My Cake PHP app was structured like this: http://localhost/cakephp So I added this line to both .htaccess files. (in the root and webroot folders) RewriteBase /cakephp/ Hope that helps other people, John

Command Line in Mac OSX Leopard

2008-01-22 Thread martinp
There's what appears to be a very good screencast on the cakephp site about how to configure Unix so that you can run Cake from the command line. That is, until right at the beginning the author asks you to edit the .profile file, or whatever your equivalent file is. At that point I'm lost. I

Re: CakePhp Strange Session behavior

2008-01-22 Thread GardenWeazeL
I wouldn't know where to set: Configure::write('Session.cookie', 'PHPSESSID'); But, I did change the cakephp session name in my core.php file. After that, I still had an issue with two different session files, one in / tmp and one in my /app/tmp/sessoins directories. What I did was add this

Re: ternary and binary relationships together

2008-01-22 Thread Joaquín Windmüller
hey pipe69e5 could you explain how did you do? On Jan 23, 6:22 am, pipi69e5 [EMAIL PROTECTED] wrote: Hy AD! A little bit of thinking and the problem are working out :) Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Apache error 404 on AJAX POST on existing controller action

2008-01-22 Thread b logica
On Jan 22, 2008 3:01 AM, Hawk| [EMAIL PROTECTED] wrote: Hi, i have a strange problem. i have an controller with an action add and edit If i call the controller action in the first place it works fine. I got my form and enter my data. After sending the data back to the controller action

Re: fileinfo help needed

2008-01-22 Thread b logica
On Jan 22, 2008 4:24 AM, bob [EMAIL PROTECTED] wrote: Hi I am having trouble getting the PHP PECL fileinfo component to work. I am using Cakephp 1.2, XAMPP in WIndows Vista environment. I have the following code: $file = C:\xampp\htdocs\app\webroot\pics\file.jpg; $handle =

IBM Series updated for 1.2

2008-01-22 Thread Gwoo
Just a note to let everyone know that the IBM articles have been updated to work with CakePHP 1.2. You can check out the updated series here http://www.ibm.com/developerworks/views/opensource/libraryview.jsp?search_by=cook+web+sites+CakePHP Happy Baking.

Re: hasAndBelongsToMany issue

2008-01-22 Thread b logica
On Jan 22, 2008 7:13 AM, Eemerge [EMAIL PROTECTED] wrote: Hello, I have 3 tables: 1. posts 2. categories 3. post_2_cat I am trying to use hasAndBelongsToMany to fetch a post and its associated categories (from post_2_cat) The only problem i encountered so far is with table fields

Re: Connecting Two HABTM Tables

2008-01-22 Thread david_setwise
I see you point about making the database structure more simple, and I like it, but does that make the programming logic a lot more complicated? If I add a Style with 20 colors and 4 sizes, do I have to manually loop through all the potential options to save all the corresponding Stock records,

Re: Command Line in Mac OSX Leopard

2008-01-22 Thread longint
Make that two Leopard folks. I'll be watching this thread. On Jan 22, 10:13 am, martinp [EMAIL PROTECTED] wrote: There's what appears to be a very good screencast on the cakephp site about how to configure Unix so that you can run Cake from the command line. That is, until right at the

Re: Session lost using kcaptcha, after upgrading to new 1.2.0.6311

2008-01-22 Thread Alberto
Thank you very much, the problem was exactly that, a whitespace issue in the model. Sorry for the delay in the answer On Jan 10, 1:54 pm, fr3nch13 [EMAIL PROTECTED] wrote: This is 99% a whitespace issue IME's. Hint: Find where kcaptcha is writing the image headers header(...) comment them

Re: hasAndBelongsToMany issue

2008-01-22 Thread Renan Gonçalves
Maybe do you have to set $primaryKey on your controller. Like: class Posts extends AppModel { ... var $primaryKey = 'post_id'; ... } On Jan 22, 2008 10:13 AM, Eemerge [EMAIL PROTECTED] wrote: Hello, I have 3 tables: 1. posts 2. categories 3. post_2_cat I am trying to use

Re: Connecting Two HABTM Tables

2008-01-22 Thread AD7six
On Jan 22, 6:37 pm, david_setwise [EMAIL PROTECTED] wrote: I see you point about making the database structure more simple, and I like it, but does that make the programming logic a lot more complicated? If I add a Style with 20 colors and 4 sizes, do I have to manually loop through all

Re: fileinfo help needed

2008-01-22 Thread bob
Thanks for your reply. I don't think it is case sensitive, nor do i think that the backslash direction matters (I've tested it with same errors). I am aware about putting the exit() but i just commented it out so i could see what happens if it tried to do this

1.2 beta form validation

2008-01-22 Thread [EMAIL PROTECTED]
I am having trouble implementing form validation in 1.2 beta. Something weird is occurring as my controller seems to be ignoring anything I put in the $validate array, not to mention anything in beforeValidate(). controller... function register() {

Re: fileinfo help needed

2008-01-22 Thread b logica
On Jan 22, 2008 2:41 PM, bob [EMAIL PROTECTED] wrote: Thanks for your reply. I don't think it is case sensitive, nor do i think that the backslash direction matters (I've tested it with same errors). I am aware about putting the exit() but i just commented it out so i could see what happens

Re: Command Line in Mac OSX Leopard

2008-01-22 Thread Jon Molesa
It depends on your shell. I think in Leopard it is bash. Refer to this. http://www.macdevcenter.com/pub/a/mac/2004/02/24/bash.html I used this article to get my bash shell configured on a Mac. It should make more sense to you. *On Tue, Jan 22, 2008 at 07:13:02AM -0800 martinp [EMAIL

Re: The bakery is borked...

2008-01-22 Thread Sam Sherlock
The Article could not be found By aka is all that article says to me. I have found some content is borked and some not. I thought perhaps someone is tweaking a few things - S On 22/01/2008, JP [EMAIL PROTECTED] wrote: works for me.., maybe a temporary problem? On Jan 22, 1:43pm, Mech7

Re: When is the cake Namespace Reference in the API going to be fixed?

2008-01-22 Thread matches
Sorry about that. On Jan 22, 1:01 am, AD7six [EMAIL PROTECTED] wrote: On Jan 22, 8:01 am, matches [EMAIL PROTECTED] wrote: When is the cake Namespace Reference in the API going to be fixed? Does anyone know? Don't double post please. Did you already look for a ticket and create one if

Re: Command Line in Mac OSX Leopard

2008-01-22 Thread Joel
On Jan 22, 1:28 pm, longint [EMAIL PROTECTED] wrote: Make that two Leopard folks.  I'll be watching this thread. On Jan 22, 10:13 am, martinp [EMAIL PROTECTED] wrote: There's what appears to be a very good screencast on the cakephp site about how to configure Unix so that you can

Re: cake Namespace Reference

2008-01-22 Thread matches
I assume that the namespace reference is not suppose look like a blob. When I go to the link below it just a bunch of text with no spaces. http://api.cakephp.org/namespacecake.html Sorry about the double post, my bad. On Jan 22, 12:57 am, AD7six [EMAIL PROTECTED] wrote: On Jan 22, 5:02 am,

Re: Command Line in Mac OSX Leopard

2008-01-22 Thread dylanc
I've been working and learning the Unix environment for almost a year now and I can offer some tips based on how I've learned. First, get some books on the Unix system. There are books that deal with the Mac OS X unix base which will teach you a lot. No need to spend money either. Your local

problems with cake and swfupload

2008-01-22 Thread Novice Programmer
Hello guys, I am trying to get the swf upload work with cake. Before baking it, I just gave a try to the demos on the swfupload site. I observed that when the demo is placed in actual webroot, it works fine, but when it is placed in cake's webroot, it is giving an HTTP 500 error. Can any one give

Re: Can I use Session::setFlash from model?

2008-01-22 Thread powtac
But what can I do when Im using beforeFind()? I dont call this function in my controller, it is called automatically. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: fileinfo help needed

2008-01-22 Thread bob
var_dump() returns null. debug() does not return any extra useful info. [sigh...] On Jan 22, 2008 12:08 PM, b logica [EMAIL PROTECTED] wrote: On Jan 22, 2008 2:41 PM, bob [EMAIL PROTECTED] wrote: Thanks for your reply. I don't think it is case sensitive, nor do i think that the backslash

Re: how to find referrer url?

2008-01-22 Thread skoggins
Is there a solution for 1.1? On Jan 4, 5:03 am, krr [EMAIL PROTECTED] wrote: That worked. Thanks a lot Daniel. On Jan 4, 5:10 pm, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi krr, Controller::referer returns the referring url. HTH daniel -- Daniel

Re: how to find referrer url?

2008-01-22 Thread djiize
1- Did you try to follow Daniel Hofstetter's answer ? 2- Did you try to search by yourself ? http://api.cakephp.org/class_controller.html#e87c8e6edf53aadc511e3d050d71a494 Cake 1.1 API - Controller::referer() function is here

Transients Objects

2008-01-22 Thread Renan Gonçalves
Hello, What is the most appropriate way to deal with transient objects? The CakePHP provides a way of doing this? If not, as I might be doing that. Perhaps creating a datasource that lets the objects in memory? Thank's, -- Renan Gonçalves - Web Developer Cell Phone: +55 (11) 8633-6018 MSN:

1.2 Installation Error

2008-01-22 Thread longint
I just 'installed' the latest beta and when I navigate to the cake directory I get the following message: Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application [CORE/cake/libs/debugger.php, line 535] Anyone familiar with this error and

Re: 1.2 Installation Error

2008-01-22 Thread Baz
:) I can't help but smile because I know what everyone else is thinking: Just read the error and follow the instructions. But, I also know what you're thinking; you don't know what's going on. You just did a clean install so you shouldn't be getting and error. All things aren't obvious to

Re: 1.2 Installation Error

2008-01-22 Thread longint
Hmm, I don't disagree with your explanation but did everyone who installed the latest cake get this? This is a common message? And if so I don't see it in the manual (though it's not complete). I guess what I'm trying to get at is that (assuming) this is not the expected result of an initial

Re: 1.2 Installation Error

2008-01-22 Thread Chris Hartjes
On Jan 22, 2008 7:07 PM, longint [EMAIL PROTECTED] wrote: Hmm, I don't disagree with your explanation but did everyone who installed the latest cake get this? This is a common message? And if so I don't see it in the manual (though it's not complete). It's a common message if you update

Re: 1.2 Installation Error

2008-01-22 Thread Samuel DeVore
On Jan 22, 2008 5:07 PM, longint [EMAIL PROTECTED] wrote: Hmm, I don't disagree with your explanation but did everyone who installed the latest cake get this? This is a common message? And if so I don't see it in the manual (though it's not complete). If it is a clean install, I believe

Re: 1.2 Installation Error

2008-01-22 Thread longint
Samuel, Nice feedback there. I'm definitely very interested in the Cake project and helping out anyway I can. So as a noob I will definitely report it. And of course this thread is now here for anyone who does a search in the future. Thanks. On Jan 22, 7:49 pm, Samuel DeVore [EMAIL

Re: How do I set focus to a form input field?

2008-01-22 Thread kiang
Or, according to PHP faq ( http://tw.php.net/faq.html ) ~ 1. Give a name to your form $form-create('Customer', array('action' = 'login', 'name' = 'LoginForm')); 2. Catch the form element in another style document.LoginForm.elements['data[Customer][email_address]'].focus(); --- kiang On 1月22日,

Re: fileinfo help needed

2008-01-22 Thread bob
anybody face a similar issue? On Jan 22, 2008 2:17 PM, bob [EMAIL PROTECTED] wrote: var_dump() returns null. debug() does not return any extra useful info. [sigh...] On Jan 22, 2008 12:08 PM, b logica [EMAIL PROTECTED] wrote: On Jan 22, 2008 2:41 PM, bob [EMAIL PROTECTED] wrote:

How to setting the field type of a condition statement?

2008-01-22 Thread Chris
I am using CakePHP 1.2 and Oracle. I am trying to figure out how to tell the find function in a controller that a field in the condition statement is something other than a string. I am trying to do a comparison on a datetime field in the Oracle db. so I have: code

Where can I learn bake.php?

2008-01-22 Thread 703designs
I have yet to find a resource explaining how to use the bake.php script, or even precisely what does. Can anyone provide links and/or pointers? I'd like to bake an app... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: fileinfo help needed

2008-01-22 Thread b logica
On Jan 22, 2008 5:17 PM, bob [EMAIL PROTECTED] wrote: var_dump() returns null. debug() does not return any extra useful info. [sigh...] Hmm ... shouldn't be null. Anything in the error log? Maybe the magic file can't be opened? Although, I'd think it's return false in that case. Do you have

Validate alphaNumeric with spaces

2008-01-22 Thread Chris Gallop
I am trying to validate a field and I want to use alphaNumeric form of validation with spaces possible. However the alphaNumeric does not seem to allow spaces. Is there a validation rule I can tack on to allow this. My code is below and I would like the state field to be allowed to have spaces

  1   2   >