Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Bill
Hehe, acabei de mandar pro servidor, domínio já está criado. Vou instalar agora mesmo e já passo dados pra vcs. Ah, vou verificar que me parece q o dokuwiki tem vários plugins de editor html, syntax highlight, etc, ai se tiver, podemos ver pra colocar e deixar mais bacana o conteúdo. Abs a

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Bill
Instalado em: http://manual.cakephp.com.br/doku.php Bill se for para sustentar o pagamento mensal do servidor tudo beleza, mais é que eu acho um pouco estranho o site do cakephp indicar ouro framework, entende? Bill da para você criar quando no manual.cakephp.com.br ?! Estou aguardando,

Re: Validação de um formulario de email - 1.2

2008-01-24 Thread DrWinux
Eu de novo, so que agora apareceu algo que nunca tinha visto. code: if ( empty($this-data) ) { pr($this-data); }else{ $this-Contact-data = $this-data; if ($this-Contact-validates($this-data)) { echo 'envio';

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Bill
:( pra variar, fui mexer na configuração dele e fiz merda... Já reinstalei e agora está td normal, me fala o que vc precisa pra iniciar. Vou abrir aqui o manual e te falo q parte pegarei pra traduzir. Abs Bill Bill, aqui não está entrando. A tela está branca, estou usando firefox. Quando

Re: Validação de um formulario de email - 1.2

2008-01-24 Thread DrWinux
Problema resolvido e para algum futuro usuario que tenho a mesma duvida la vai... MODEL: ?php class Contact extends AppModel { var $name = 'Contact'; var $useTable = false; var $validate = array( 'sector' = array('email'),

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Juan Basso
Pessoal, Movi todo o conteúdo do meu site para o site do Bill. Apenas não movi os usuários... cada um terá que recriar o seu. No link que ia para minha página coloquei um redirecionador para o site do Bill para caso alguém ainda vá lá... Bill: Na instalação que baixei do site do DokuWiki ele já

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Bill
Valeu uan, hj a noite pegarei uma parte pra traduzir e informo a todos abs Pessoal, Movi todo o conteúdo do meu site para o site do Bill. Apenas não movi os usuários... cada um terá que recriar o seu. No link que ia para minha página coloquei um redirecionador para o site do Bill para

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Sadjow Medeiros Leão
Beleza ! Tô indo terminar associações agora! I am going finish associations now! =) --~--~-~--~~~---~--~~ Recebeu esta mensagem porque está inscrito em Grupo Cake PHP Português do Grupos Google. Para enviar mensagens para este grupo, envie um email para

Re: Implementação Carrinho de compras

2008-01-24 Thread TSassara
Talvez! Eu gostaria de ver no Bakesale o uso de transactions. É uma pratica comum no desenvolvimento de um e-commerce. On 23 Jan, 13:31, Juan Basso [EMAIL PROTECTED] wrote: Cara, faz o pedido para entrar no projeto do bakesale! Sem dúvida sua ajuda vai ser legal. O chefe do projeto é bem

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Juan Basso
Opa... Depois de muito trabalho (pela quantidade) consegui colocar todos os itens do menu lá... Além disso já coloquei a parte de componentes também. Coloquei as mesmas informações que a documentação do Cake. Acho que poderia ter mais, porém preferi não incrementar nada para que primeiro

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Sadjow Medeiros Leão
Opa Juan, estou terminando associações aqui. Ta ficando massa a documentação! Mão na massa gente! Quando terminar aqui vou dar uma lida em componentes ...!! Eu também tive essa vontade, depois até podemos colocar mais. Mas temos que destacar de alguma forma que foi palavras que não constam

Re: Sobre Tradução da Documentação 1.2

2008-01-24 Thread Sadjow Medeiros Leão
Um, sei como que é. Vamos deixar do jeito que está. Por mim tá ótimo, além de traduzido, ficará mais rico/auto-explicativo. Beleza, sempre que posso eu do uma olhada em Alterações Recentes para ver se tem algo de novo. --~--~-~--~~~---~--~~ Recebeu esta mensagem

Re: Helper - password

2008-01-24 Thread [EMAIL PROTECTED]
That's right. That password method will only generate a form-field of the type password. To protect a page you still need the AuthComponent (or one of the similar components on cakeforge) On Jan 23, 11:12 pm, justradar [EMAIL PROTECTED] wrote: thanks for the links, i'll check those out.

Re: Redirect leaves old URL

2008-01-24 Thread jonknee
Hmm. It probably is a FaceBook thing like David said, see here: http://facebook-developer.net/2007/11/27/implementing-a-simple-facebook-redirect-with-cakephp/ In Facebook, redirecting the end user cannot be performed with a standard redirect call as in the above example. Trying to do so will

Re: Redirect leaves old URL

2008-01-24 Thread Daniel Moore
I did some further testing and what was happening was that I was redirecting to a page that had a route assigned to it. Here's the situation: User goes to http://apps.face.../messages/post/ //messages_controller.php function post() { // ... Some Stuff // Redirect back to McGriff

1.2 is-dir Error

2008-01-24 Thread ERic ZoU
Hi, everyone, I update my 1.19 to 1.2. There are errors occur below. What happened? Is the error from my Host? Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/share/pear/cake/libs/model) is not within the allowed path(s): (/webhosting/katiezhou) in

Re: Debugger stuck in a loop

2008-01-24 Thread jonknee
It is a bit odd. Unfortunately the Debugger class is new in 1.2 so there is nothing to look back on. I'm not familiar enough with the inner workings to fix it fully, but there is definitely some more work to be done in the class. As you mentioned, $recursion doesn't seem to be doing anything (one

Re: Redirect leaves old URL

2008-01-24 Thread MrTufty
Why does everyone keep beating the dead horse of a wiki? We had one before, when I first got into Cake. Guess what? It wasn't very effective. Outdated articles providing poor solutions to problems that didn't need to be solved. I prefer the Bakery, these groups and the various articles written on

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-24 Thread ProFire
Hi, you are not the only one experiencing this problem. ME TOO!!! Here's my error message: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 36571 bytes) in D:\webserver\awa\cake\libs\debugger.php on line 412 When I comment out the same thing, I get a valid error:

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-24 Thread ProFire
Just an update to my situation. I'm pretty sure this error is due to my fault. I was debugging to pin point the source of error in my codes and I figured this: $departmentAdminData = array( DepartmentAdmin = array( account_id = $account_id,

Re: problems with cake and swfupload

2008-01-24 Thread Novice Programmer
yups you are write.. finally the only solution left is to install apache on my local machine.. :(. On 1/24/08, b logica [EMAIL PROTECTED] wrote: On Jan 23, 2008 7:40 AM, Novice Programmer [EMAIL PROTECTED] wrote: I am running on a shared server.. so /etc/logs is not accesible to me. dont

newbie syntax question

2008-01-24 Thread bob
what does this mean Post.created = . date('Y-m-d', strtotime(-2 weeks) the date is greater that 2 weeks ago? what does the period . mean in this case? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: newbie syntax question

2008-01-24 Thread grigri
Both of these are php questions rather than cakephp... The period is the php string concatenation operator - $var = 'con'.'cat'.'e'.'nation'; is the same as $var = 'concatenation'; date and strtotime are base php functions. strtotime(-2 weeks) returns a unix timestamp representing 2 weeks

Re: Moved CakePHP 1.2.x from unix to windows, weird directory problem?

2008-01-24 Thread RichardAtHome
I've been bitten by this myself. Question to the devs: Would it be a good idea to move the cache (app/tmp) directory out of the application directory? I realise you can have multiple applications under one install so perhaps there should be a cache/app/... directory in the root of the cake

cakephp manual question

2008-01-24 Thread bob
This is a newbie question. In the cakephp manual ( http://manual.cakephp.org/chapter/models) $this-data['Comment']['post_id'] = $post_id; //Because our Post hasMany Comments, we can access //the Comment model through the Post model: $this-Post-Comment-save($this-data);

Re: cakephp manual question

2008-01-24 Thread bob
Another related question: in their post tag HABTM example, in the Post model, they defined a HABTM for Tag. For the Tag model, we would need a HABTM for Post as well correct? On Jan 24, 2008 2:38 AM, bob [EMAIL PROTECTED] wrote: This is a newbie question. In the cakephp manual (

Re: join

2008-01-24 Thread bob
sorry, please ignore this dumb question On Jan 23, 2008 10:39 PM, bob [EMAIL PROTECTED] wrote: I have the tables lists and categories and lists hasMany categories. How do i create a join statement that finds all lists in a specific category?

Re: Problem with Delete

2008-01-24 Thread RichardAtHome
I don't know firebirdSQL, but every other version of SQL (and this is how the SQL92 spec. has it) I've ever used uses the syntax described by villas: DELETE FROM table WHERE conditions. On Jan 24, 12:31 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: this is not correct SQL, it should be:

Re: Accessing Acl from a Helper

2008-01-24 Thread RichardAtHome
I do it exactly the same way as martin. Works like a charm :-) On Jan 23, 10:02 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It is a component and thus only available to cotrollers. What I do is I set the authentication data I need in my views from the beforeFilter of AppController. if (

Re: cakephp manual question

2008-01-24 Thread abstract
There is no difference. You can use both, but in the latter case You have to add Comment to the uses array of the controller, so $this-Post-Comment-save() is better way On Jan 24, 11:38 am, bob [EMAIL PROTECTED] wrote: This is a newbie question. In the cakephp manual

Re: Problem with Delete

2008-01-24 Thread villas
@RichardatHome. That's what I figured. But maybe other DBs accept the 'alias' in the middle? @davidgregan. Which DB accepts this format? MySQL? DELETE {$alias} FROM table FirebirdSQL definitely doesn't like it :-) On Jan 24, 10:46 am, RichardAtHome [EMAIL PROTECTED] wrote: I don't know

Re: Why appears this error (Undefined offset)?

2008-01-24 Thread dandreta
Hi! I have been verifying it and I have a problem with the relations, concretly with one: 1 Project - N Persons N Persons - N Projects I have two different relations between the same models (Project and Person). I explain it: A project can be realized by several persons, but a person only can

Re: 15 minute blog tutorial

2008-01-24 Thread Pablo Viojo
No, that's what layouts are for -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Jan 24, 2008 3:45 AM, justradar [EMAIL PROTECTED] wrote: are you supposed to use routes to define which page uses which template?? There are all manor of things you can do with routes

Re: problems with cake and swfupload

2008-01-24 Thread Novice
Got the issue... Getting the service restarted on linux machine fixed the problem... :(.. Now stuck into another issue.. This is more of swfupload issue but still going ahead .. :) Swf upload is not posting the file to the desired post target. Here is what i wrote in demo's upload.php but the

Setting up CSS compression (RFC)

2008-01-24 Thread [EMAIL PROTECTED]
Setting up CSS compression There are two things needed to get css compression running for the current 1.2 beta that are not mentioned in the documentation. I post it here to get some feedback before posting it as a documentation ticket. 1. In app/config/core.php locate define('COMPRESS_CSS',

An Idea For Ease Of Developing Views

2008-01-24 Thread Gary Taylor
I am relatively new to cakephp and I got tempted to switch to rails when I came across 'hobo'. The template language that this uses looks fantastic. You can simply define your own 'html tags' if you like, and there are also some built in tags to provide helpers etc.. Obviously, you could get

Re: cakephp manual question

2008-01-24 Thread [EMAIL PROTECTED]
Relationships can be either declared on one end or both ends. If you know that you will only need the related data when going Post-Tag but never Tag-Post you can leave the relation out of the Tag model and gain some speed dure to less database access. I have found that there are huge

how to upload file?

2008-01-24 Thread Rgarg
Hi Please help me to upload a file. i am using this if (move_uploaded_file($_FILES['filename']['tmp_name'], $destination_path)) { $this-Session-setFlash('File is valid, and was successfully uploaded.'); $this-redirect('/products/index'); } else {

css classes for flash messages

2008-01-24 Thread Sebastian
Hey, it seems like before 1.2 you were able to send errorMessage from the controller to the view by simply setting: $this-set('errorMessage', 'There was an error'); This message was then automatically rendered with the appropriate css class from cakePHP's default css file at the top of the

errorMessages in 1.2 / flash with different css classes

2008-01-24 Thread Sebastian
Hi, it seems that in previous versions of cakePHP I could at any time set an errorMessage in the controller by $this-set('errorMessage', 'There was an error!'); which was then regularly displayed in the view (without me having to put any code into my view). In 1.2 however, it's not displayed

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread Pablo Viojo
I don't understand the following...can you explain it a little? I can't stand using php in my view code (even though I am a php programmer !), -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~-~--~~~---~--~~ You received this message because you

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread AD7six
On Jan 24, 11:41 am, Gary Taylor [EMAIL PROTECTED] wrote: I am relatively new to cakephp and I got tempted to switch to rails when I came across 'hobo'. The template language that this uses looks fantastic. You can simply define your own 'html tags' if you like, and there are also some

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread Chris Hartjes
On Jan 24, 2008 5:41 AM, Gary Taylor [EMAIL PROTECTED] wrote: I would love to see this as an addon to cake or even built in. I can't stand using php in my view code (even though I am a php programmer !), I have tried flexy and about to try smarty. PHP itself is a templating language, so I

Re: css classes for flash messages

2008-01-24 Thread Samuel DeVore
you can also create custom layouts for error messages and then set which one to use from the call to setFlash in layouts create files like error.ctp, notice.ctp and success.ctp looks like div class=error?php echo $content_for_layout ?/div then you can call $this-Session-setFlash('The Report

Problem with Auto complete

2008-01-24 Thread [EMAIL PROTECTED]
Hi to all I m using Using Autocomplete component but when i use it nothing displayed at browser white blank page is use it from from http://bakery.cakephp.org/articles/view/autocomplete this is my cod my controller var $components =

Re: css classes for flash messages

2008-01-24 Thread grigri
//-- In your controller action: $this-Session-setFlash('There was an error', null, array(), 'error'); return; In your layout: // If there's an error, display it - if not, display flash message [if there is one] if (!$session-flash('error')) { $session-flash(); } In your css

Re: CakePhp and Extjs tree

2008-01-24 Thread Paolo
Hi! Thanks for your answer, I tried using a function that loads all the children of the tree and puts them, formatted in a particular way, in a textbox. I can read that textbox and parse it to add all the relevant stuff to the db. I'll post a tutorial soon. Thanks On 23 Gen, 19:39, hydra12

Re: css classes for flash messages

2008-01-24 Thread grigri
sam d: Yeah, flash layouts are handy. But the added overhead of running a layout and whatnot hardly seems worth it for a one-liner message. If you were using this in conjunction with the params() to display a detailed error/warning/whatever message, I'd agree. But for simple static text, I

Re: Inserting secure urls or actions

2008-01-24 Thread vb13
.htaccess? Do you mean rewriting the URL's? This will not work, because I want the Client to post to https. Or am I missing something? On Jan 24, 1:57 am, francky06l [EMAIL PROTECTED] wrote: You can use .htaccess to force an https connection for the desired url's. On Jan 23, 6:34 pm, vb13

Re: fread errors with 1.2 beta and php 4.3.2

2008-01-24 Thread Blackolo
have exactly this same each time when it cake try to access cache :( if anyone know reason ... On Jan 16, 5:31 pm, oceanguy [EMAIL PROTECTED] wrote: My best guess is that it's all the cache files. Doing nothing more than copying the cake application files to a fresh install, I get the

Re: fread errors with 1.2 beta and php 4.3.2

2008-01-24 Thread Chris Hartjes
On Jan 24, 2008 9:19 AM, Blackolo [EMAIL PROTECTED] wrote: have exactly this same each time when it cake try to access cache :( if anyone know reason ... Delete all the files in the tmp/cache directory. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants

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

2008-01-24 Thread RichardAtHome
Hi again folks, still not having any luck with this. Here's what I currently have: $tags = $this-Output-Tag-find(list, array( fields=array( {n}.Tag.id, {n}.Tag.name, {n}.TagType.name), order=array( TagType.name, Tag.name ASC ), recursive=0 )); I've tested this in the

Re: css classes for flash messages

2008-01-24 Thread Samuel DeVore
Was just showing another supported way to do it ;) Sam D On Jan 24, 2008 7:21 AM, grigri [EMAIL PROTECTED] wrote: sam d: Yeah, flash layouts are handy. But the added overhead of running a layout and whatnot hardly seems worth it for a one-liner message. If you were using this in

Re: cakephp 1.2 :: Database prefix and tips about sanitize

2008-01-24 Thread José Pablo Orozco Marín
Thanks. But in custom queries like: $this-query('UPDATE `bm_aros` SET `alias`... We need to use: $this-query('UPDATE ' . $this-database prefix. '`bm_aros` SET `alias`... I dont remember if is databaseprefix or just only prefix. hydra12 escribió: I could be wrong, but I don't think you

Possible to loop through all flash-messages? (1.2)

2008-01-24 Thread [EMAIL PROTECTED]
In version 1.2 the Session component uses dot-notation when creating flash messages. Is there any way to loop through them? I am guessing the answer is somewhere in the Set class but I haven't been able to figure out how to do it. A layout snippet: if ($session-check('Message.flash')):

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

2008-01-24 Thread grigri
Looks like the '{n}' bit is prepended automatically in the find() method, so you don't need it. Why it's not grouping is a different matter... Exactly what SQL is generated without the '{n}' ? And paste a debug() of the resultset too. In fact, temporarily hack your model.php and add this line:

Re: Possible to loop through all flash-messages? (1.2)

2008-01-24 Thread grigri
?php if (is_array($messages = $session-read('Message'))) { foreach (array_keys($messages) as $key) { $session-flash($key); } } ? On Jan 24, 3:05 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In version 1.2 the Session component uses dot-notation when creating flash messages. Is there

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread hydra12
I'll have to agree. I confess that, when I first started using cake, I hated using php in my views. I had been using smarty and a few other templating systems, and I thought they were better. I was wrong. Adding a templating system adds one more level to debug and one more level where things

Re: CakePhp and Extjs tree

2008-01-24 Thread hydra12
I was reading the docs for cake 1.2 (http://tempdocs.cakephp.org/) and found out that there is a tree behavior. Maybe this could help with getting the correct data into the correct format. I haven't dug into it yet due to lack of time, but it might be worth looking at. On Jan 24, 8:19 am,

Re: Possible to loop through all flash-messages? (1.2)

2008-01-24 Thread [EMAIL PROTECTED]
Thanks! As so often with cake the answer is so simple that you would never think of trying it :) On Jan 24, 4:16 pm, grigri [EMAIL PROTECTED] wrote: ?php if (is_array($messages = $session-read('Message'))) {   foreach (array_keys($messages) as $key) {     $session-flash($key);   }} ?

help, upgrade from alpha to beta: paginator problem

2008-01-24 Thread Dia
before, this code worked perfectly : $paginator-prev(' Page précédente', array('url' = $annee), null, array('class'='disabled')) now, I have this error message: array_merge(): Argument #2 is not an array [CORE\cake\libs\view\helpers \paginator.php, line 306] the problem is on 'url' = $annee

Re: Capture webcam stream from client and upload it as a flash video to server

2008-01-24 Thread [EMAIL PROTECTED]
Web Cam Sex - Free Adult Web Cams - Webcam Porn - LIVE CHAT WEBCAMS http://www.ibestadult.info/1/webcam.html Webcam Sex With Webcam Girls From all over the world. Pick your live sex cam take the web cam girls to a private session and enjoy the show from the privacy ... . . . . . .

Re: help, upgrade from alpha to beta: paginator problem

2008-01-24 Thread grigri
tried some stuff but failed What have you tried? Have you tried this? $paginator-prev(' Page précédente', array('url' = array($annee)), null, array('class' = 'disabled')); On Jan 24, 3:47 pm, Dia [EMAIL PROTECTED] wrote: before, this code worked perfectly : $paginator-prev(' Page

Don't want to trigger modified field update

2008-01-24 Thread Jakanapes
I have a small app I'm working on and I'm trying to port it over to cakePHP for easier handling. There is a table that serves pages and I want the modified field to be updated on an edit, but I have a visits field that I increment so I can track the most popular page views and I don't want to

auth-component with many email-adresses (cake 1.2)

2008-01-24 Thread lx
hi, i already posted this question in the german cakegroup. But i didnt get an answer. In fact there isnt much activity at all in the german group. So maybe someone could help me with that. I am a beginner in cake. I want to use the auth-component in cake1.2. I have a table users with the

Re: how to upload file?

2008-01-24 Thread Novice Programmer
At the face of it, every thing looks ok.. it would be great if you dont mind telling us the error messages you are getting. Thanks. On 1/24/08, Rgarg [EMAIL PROTECTED] wrote: Hi Please help me to upload a file. i am using this if (move_uploaded_file($_FILES['filename']['tmp_name'],

Re: Capture webcam stream from client and upload it as a flash video to server

2008-01-24 Thread Novice Programmer
What the hell... some one can't spam our great community like this.. i hope some one is taking care of this. Thanks. On 1/24/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Web Cam Sex - Free Adult Web Cams - Webcam Porn - LIVE CHAT WEBCAMS http://www.ibestadult.info/1/webcam.html Webcam

Importing and Executing Raw SQL: Problems with Semicolons

2008-01-24 Thread daphonz
Hi Folks, I'm trying to create a self-install routine for my web app, part of which requires it to create multiple tables with some pre-set content. I use a system similar to that mentioned by Cakebaker, (http:// cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-

Re: Problem with Delete

2008-01-24 Thread [EMAIL PROTECTED]
MySQL can use alias. if you SELECT * FROM table as alias then whenever you reference the table later in the query, you have to use alias.field instead of table.field. It also will return the results as alias instead of table. Perhaps this is not compatible with all database systems, I don't

Looking for a cool php debugger(supporting cake)

2008-01-24 Thread Novice Programmer
Hello guys, I am relatively new at cake and more specifically at php. I am more of a desktop programmer than a web programmer. Have programmed on C++, java et al.. when i got into php i found debugging extremely tough(using echo and all that), then i found eclipse PDT extension which helped me

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread WebSpin.Biz
Absolutely agree with all the above. Template systems (Smarty, et al) are obtrusive layers upon layers that are completely unnecessary. Very basic PHP *Is* a templating system. With alternative control block structure, it is very readable in view/html code (ie: :endif; usage) and thats

Re: help, upgrade from alpha to beta: paginator problem

2008-01-24 Thread Dia
I tried using array but not this (easier) way... ashamed :/ it works, thanks for helping --~--~-~--~~~---~--~~ 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

Re: Problem with Delete

2008-01-24 Thread [EMAIL PROTECTED]
I just found this: http://www.1keydata.com/sql/sqlalias.html That describes using alias without the 'AS' I mentioned above (which is needed in MySQL). In this reference, they use the alias feature as described in villas original post: SELECT table_alias.column_name1 column_alias FROM

Re: question about *po files and i18n

2008-01-24 Thread Dia
up no one knows ? --~--~-~--~~~---~--~~ 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

Create new object with hasAndBelongsToMany association

2008-01-24 Thread LoKi
Hi! I'm beginner with cakephp. I have two objets linked with hasAndBelongsToMany association : VERSION MODEL *** class Version extends AppModel { var $name = 'Version'; var $hasAndBelongsToMany =

Re: Looking for a cool php debugger(supporting cake)

2008-01-24 Thread [EMAIL PROTECTED]
I've heard good things about xdebug, Komodo IDE, and Zend Studio, though the later 2 aren't free. Dave On Jan 24, 9:22 am, Novice Programmer [EMAIL PROTECTED] wrote: Hello guys, I am relatively new at cake and more specifically at php. I am more of a desktop programmer than a web

Re: question about *po files and i18n

2008-01-24 Thread Marcin Jaworski
I have my po files in UTF-8 and everything works fine (polish chars are displayed properly on UTF-8 encoded pages). You can have %s etc in your language strings. Just use sprintf(__('Message id', true), $var1, $var2, ...) for example: in po MSGID Do you want to delete %s? MSGSTR Czy chcesz

Re: Looking for a cool php debugger(supporting cake)

2008-01-24 Thread Chris Hartjes
On Jan 24, 2008 11:22 AM, Novice Programmer [EMAIL PROTECTED] wrote: I was wondering what all you are guys are using for debugging. I'm a Komodo user and it has built-in support for using Xdebug for debugging purposes. You might also want to check out the Zend Developers Zone

Re: fileinfo help needed

2008-01-24 Thread b logica
On Jan 24, 2008 12:53 AM, bob [EMAIL PROTECTED] wrote: Just magic.mime Maybe it's a Windows thing. Try adding the following to your php.ini: [mime_magic] mime_magic.debug = On mime_magic.magicfile = 'c:\magic.mime' --~--~-~--~~~---~--~~ You received this

Re: Don't want to trigger modified field update

2008-01-24 Thread Andrew Assarattanakul
It probably would be better to create a separate table to take care of the visit counter so that you don't have to stop a built in convention. This way if you have a modified field in the visit table you can also see when the last time someone visited that page. On Jan 24, 8:57 am, Jakanapes

Re: question about *po files and i18n

2008-01-24 Thread Dia
thanks a lot --~--~-~--~~~---~--~~ 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

Re: Don't want to trigger modified field update

2008-01-24 Thread grigri
If you're using Model::save(), then no, there's no way to deactivate it (that I know of). However, you could try this: $this-MyModel-updateAll(array('visits' = 'visits+1'), array('id' = {{whatever}})); This will update the record, but will not call beforeSave(), afterSave(), or update any

FormHelper - multiple checkbox tags

2008-01-24 Thread Renan Gonçalves
Hello, I'm using the new form helper on Cake 1.2. I would like to create multiple checkbox, but I can't, because it generates div's that should not be generated (brokes layout). $form-select('Model.column', array('key' = 'value'), null, array('multple' = 'checkbox')) I think that I could be

Re: Importing and Executing Raw SQL: Problems with Semicolons

2008-01-24 Thread b logica
On Jan 24, 2008 11:14 AM, daphonz [EMAIL PROTECTED] wrote: Hi Folks, I'm trying to create a self-install routine for my web app, part of which requires it to create multiple tables with some pre-set content. I use a system similar to that mentioned by Cakebaker, (http://

Re: Create new object with hasAndBelongsToMany association

2008-01-24 Thread [EMAIL PROTECTED]
I believe that whatever model you are using to save needs to be first in your array, so if you are saving with $this-Tab-save() your code needs to look like this: $to_save['Tab'] = array( 'title' = '(Onglet)',

Re: Accessing Acl from a Helper

2008-01-24 Thread Keith
Thanks for the info. That is a great solution. On Jan 23, 5:02 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It is a component and thus only available to cotrollers. What I do is I set the authentication data I need in my views from the beforeFilter of AppController. if (

Re: FormHelper - multiple checkbox tags

2008-01-24 Thread b logica
On Jan 24, 2008 12:18 PM, Renan Gonçalves [EMAIL PROTECTED] wrote: Hello, I'm using the new form helper on Cake 1.2. I would like to create multiple checkbox, but I can't, because it generates div's that should not be generated (brokes layout). $form-select(' Model.column', array('key' =

Auth / Acl and plugins

2008-01-24 Thread francky06l
Hi Bakers, I am having a problem with ACL and Auth component. First the context : 1) I have several applications, and I am using a User / Group etc .. plugin in order to the public site to process the login and the redirect the user to ont of the application. The User / Group / Role and some

Pquery with cake1.2 beta and PHP5

2008-01-24 Thread CakeMan
Hi Guys, Does anyone has used Pquery with cake1.2 beta on PHP 5. I are trying to use it but it is not working for me. Anyone have any idea for Pquery. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Command Line in Mac OSX Leopard

2008-01-24 Thread martinp
I finally did it. Thanks for your help everyone. This is how, step-by- step: I set up a file - ~./bash_login (as longint says above). This was done by typing: pico .bash_profile from the first directory you're in when you open Terminal (your Users/ username directory). In this (new) file I

Re: Command Line in Mac OSX Leopard

2008-01-24 Thread martinp
P.S. I then had a problem because I'm using MAMP for mySQL and the command line bake couldn't connect to the database. Follow the instructions on this thread to fix it: http://groups.google.com/group/cake-php/browse_thread/thread/5865eb1c29c1/644b7eadf87a7a68?lnk=gstq=mamp#644b7eadf87a7a68

Re: Importing and Executing Raw SQL: Problems with Semicolons

2008-01-24 Thread daphonz
I may not understand the LOAD DATA LOCAL INFILE fully, but doesn't that require special security access? I'm trying to get this system to work off of a generic apache server out-of-the-box. On Jan 24, 12:26 pm, b logica [EMAIL PROTECTED] wrote: On Jan 24, 2008 11:14 AM, daphonz [EMAIL

Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
I don't know why HABTM relationships are deleted automatically on a Model::save() in the first place, but is this really necessary for the 'with' relationships too? They are practically standalone models so shouldn't there be an option to preserve the current 'with' relationships? I can unbind()

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
Hey Eric, why don't you just use saveField() in this situation? On Jan 24, 1:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't know why HABTM relationships are deleted automatically on a Model::save() in the first place, but is this really necessary for the 'with' relationships too?

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
yeah that seems like a logical thing to do On Jan 24, 1:30 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey Eric, why don't you just use saveField() in this situation? On Jan 24, 1:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't know why HABTM relationships are deleted

Re: Importing and Executing Raw SQL: Problems with Semicolons

2008-01-24 Thread b logica
On Jan 24, 2008 1:46 PM, daphonz [EMAIL PROTECTED] wrote: I may not understand the LOAD DATA LOCAL INFILE fully, but doesn't that require special security access? If you have shell access to the database you can use this command to load the data into a table. One needs to have the FILE

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
I'm back to thinking I'm right...someone please prove me wrong here. If $fieldList is specified for Model::save() shouldn't it at least THEN ignore the 'with' relationships? It currently does the DELETE query even in this case. The only other option is saveField() but that is really wasteful

Re: Importing and Executing Raw SQL: Problems with Semicolons

2008-01-24 Thread daphonz
Oh, sorry, I misunderstood your initial reply. So to properly answer you: yes. The SQL syntax works when directly loaded through the command line or PHPMyAdmin. When I remove any INSERT data that contains serialized content, my initial system works just fine, and the SQL file is successfully

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread nate
class Post extends AppModel { var $hasAndBelongsToMany = array(Tag = array(with = Whatever, unique = false)); } On Jan 24, 2:48 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm back to thinking I'm right...someone please prove me wrong here. If $fieldList is specified for

not sure whats best practice: recursiveness

2008-01-24 Thread Buckyball
Hello to all, just started to play around with cake and I like it. Now I stuck a little concernig accociations and the recursive level of find/findAll. I got following setup: ProducthasManyComment Comment belongsTo User Comment belongsTo Product UserhasMany Comment

  1   2   >