Re: bake.php no cakephp 1.2

2008-01-10 Thread Gustavo Carreno
On Jan 10, 2008 1:13 AM, Bill [EMAIL PROTECTED] wrote: Então, já havia feito isto. Em nome da variável, está: Path Em Valor da variável, adicionei o seguinte: D:\Apache\VertrigoServ\Php;D:\Apache\VertrigoServ\www\cakephp1.2\cake\console Que no caso são os caminhos até a pasta do PHP e a

Re: findAll ñ reconhece campos

2008-01-10 Thread Gustavo Carreno
Tenta limpar os ficheiros da tua cache situados em app/tmp/cache. On Jan 10, 2008 10:24 AM, Rafael Bueno [EMAIL PROTECTED] wrote: Bom dia pessoal, preciso de uma ajudinha de vcs, acontece o seguinte, o findAll estava funcionando normalmente ai depois q eu adicionei mais 3 campos na tabela

Re: bake.php no cakephp 1.2

2008-01-10 Thread Bill
Valeu Gustavo, agora funfou legal aqui. Era problema do Ruindows mesmo, depois de reiniciar ele funcionou. Testei apenas com o comando cake bake app, uma pena a documentação oficial do cake ainda ser tão escassa, pois seria bom ter acesso a todos comandos de geração de acl e do bake. grande

Re: HasMany e HABTM no mesmo model

2008-01-10 Thread Josenivaldo Benito Junior
Olá , Acho que você está certo pois, entre User e Group existe uma terceira tabela HABTM (tabela que relaciona User.id com Group.id). Na tabela Group deve existir um campo user_id (chave estrangeira proveniente da tabela user que indica o dono do grupo... também poderia se chamar owner_id, mas

Re: bake.php no cakephp 1.2

2008-01-10 Thread Gustavo Carreno
On Jan 10, 2008 1:27 PM, Bill [EMAIL PROTECTED] wrote: Valeu Gustavo, agora funfou legal aqui. Era problema do Ruindows mesmo, depois de reiniciar ele funcionou. Testei apenas com o comando cake bake app, uma pena a documentação oficial do cake ainda ser tão escassa, pois seria bom ter

Re: nomenclatura padrão

2008-01-10 Thread Gustavo Carreno
o P deveria ser maiusculo, tenta isso. On Jan 10, 2008 2:02 PM, Josenivaldo Benito Junior [EMAIL PROTECTED] wrote: Olá Galera, Estou com uma dúvida (poderia haver uma tabela com exemplos claros sobre isso... eu sempre enrosco nisso) na nomenclatura padrão do Cake. Tenho duas tabelas

Re: nomenclatura padrão

2008-01-10 Thread Josenivaldo Benito Junior
Olá gustvo, P maiusculo onde, no controller? Grato On 1/10/08, Gustavo Carreno [EMAIL PROTECTED] wrote: o P deveria ser maiusculo, tenta isso. On Jan 10, 2008 2:02 PM, Josenivaldo Benito Junior [EMAIL PROTECTED] wrote: Olá Galera, Estou com uma dúvida (poderia haver uma tabela com

Re: nomenclatura padrão

2008-01-10 Thread Gustavo Carreno
Sim, todos os controller e seus models devem estar em CamelCase. Não sei se isso vai solucionar mas as regras ditam que deve ser assim. On Jan 10, 2008 3:06 PM, Josenivaldo Benito Junior [EMAIL PROTECTED] wrote: Olá gustvo, P maiusculo onde, no controller? Grato On 1/10/08, Gustavo

Re: bake.php no cakephp 1.2

2008-01-10 Thread Juan Basso
Não precisa configurar PATH pessoal, vamos pelo mais simples: Iniciar - Executar: cmd cd\ONDE\ESTA\O\APP ..\cake\console\cake Juan Basso Gustavo Carreno escreveu: On Jan 10, 2008 1:27 PM, Bill [EMAIL PROTECTED] wrote: Valeu Gustavo, agora funfou legal aqui. Era problema do

Re: nomenclatura padrão

2008-01-10 Thread Gustavo Carreno
Isso é o que tem agora ou o que já tinha? Agora fiquei sem perceber ... On Jan 10, 2008 3:42 PM, Juan Basso [EMAIL PROTECTED] wrote: Banco de dados: - propagation_types - disclosed_stations - registers (com campo propagation_type_id) Model: class PropagationType extends... hasMany =

Re: como posso pegar a sessão do usuário logado

2008-01-10 Thread Juan Basso
$this-Session-session_id('id da sessao'); $this-Session-read(...); Juan Basso igor_rj escreveu: vou verificar, tamb�m n�o sei.. mas como pegaria ela atrv�s do session_id? --~--~-~--~~~---~--~~ Recebeu esta mensagem porque está inscrito em Grupo Cake PHP

Re: nomenclatura padrão

2008-01-10 Thread Gustavo Carreno
Xii, estamos tendo um dialogo e estamos deixando o Josenivaldo de fora... Eu pensei que era o Jose que tava dando essa informação, LOL!! On Jan 10, 2008 3:52 PM, Juan Basso [EMAIL PROTECTED] wrote: Isso é como faria no seu caso, seguindo o padão cake. Não sei se você fez assim... Pelo que você

Re: nomenclatura padrão

2008-01-10 Thread Josenivaldo Benito Junior
Opa, Claro que ajuda... vou conferir. Abraço On 1/10/08, Juan Basso [EMAIL PROTECTED] wrote: Banco de dados: - propagation_types - disclosed_stations - registers (com campo propagation_type_id) Model: class PropagationType extends... hasMany = array('Register'); class

Re: nomenclatura padrão

2008-01-10 Thread Josenivaldo Benito Junior
De fora nada, to aqui de botuca... hehehe Abraço On 1/10/08, Gustavo Carreno [EMAIL PROTECTED] wrote: Xii, estamos tendo um dialogo e estamos deixando o Josenivaldo de fora... Eu pensei que era o Jose que tava dando essa informação, LOL!! On Jan 10, 2008 3:52 PM, Juan Basso [EMAIL

Re: findAll ñ reconhece campos

2008-01-10 Thread Rafael Bueno
Valeu amigo era isso mesmo, apaguei todo o conteúdo da pasta app\tmp \cache\models --~--~-~--~~~---~--~~ 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: Problema com update no postgresql.

2008-01-10 Thread wc
Sim, estou usando a versão 1.2.0.6311-beta. Que legal, vo falar pra minha chefe que o sistema vai funcionar assim que terminarem de homologar o cake. ai minha orelha heheh Acho que agora é hora de por em pratica as aulas de inglês e entrar no irc. mas antes vo tentar dar um rollback pra

Re: HasMany e HABTM no mesmo model

2008-01-10 Thread TSassara
Para os dois: Bill e Junior. Então Bill, no meu Model, eu preciso incluir um HasAndBelongToMany e HasMany para um mesmo Model como descrevi. Da uma olhadinha. E então Junior, aqui ficou supimpa. Quando dou um findAll, ele retorna uma array da maneira que imaginei. Com o nome do relacionamento

Re: HasMany e HABTM no mesmo model

2008-01-10 Thread Josenivaldo Benito Junior
Legal que funcionou. Abração On 1/10/08, TSassara [EMAIL PROTECTED] wrote: Para os dois: Bill e Junior. Então Bill, no meu Model, eu preciso incluir um HasAndBelongToMany e HasMany para um mesmo Model como descrevi. Da uma olhadinha. E então Junior, aqui ficou supimpa. Quando dou um

Re: Problema com update no postgresql.

2008-01-10 Thread Juan Basso
Aconselho você a dar uma analisadinha no código fonte também. O código do Cake é bem simples. Particularmente, eu prefiro ler o código fonte do que a documentação. Assim da para ver como funcionam os fornos da padaria. :) Juan Basso On 10 jan, 17:27, wc [EMAIL PROTECTED] wrote: Sim, estou

Re: nomenclatura padrão

2008-01-10 Thread Juan Basso
E eu pensei que a dúvida era sua. LOL! Josenivaldo, qualquer coisa, estamos aí. Juan Basso On 10 jan, 13:38, Gustavo Carreno [EMAIL PROTECTED] wrote: Xii, estamos tendo um dialogo e estamos deixando o Josenivaldo de fora... Eu pensei que era o Jose que tava dando essa informação, LOL!! On

Re: Multi Idiomas Cake1.2.

2008-01-10 Thread DJ Spark
pode dar mais algumas especificações ? vai ser *conteudo* (db) multi lingual, ou apenas as mensagens (e botoes, imagens, etc) serão multilinguais ? mas esse link aqui explica, em inglês, quase tudo de como o 1.2 funciona... sobre internacionalizaçao e localização

Re: findAll ñ reconhece campos

2008-01-10 Thread DJ Spark
aliás, isso é uma hábito necessário, que tive que me acostumar: sempre que mudar *qualquer* coisa na DB, limpar aquele folder de cache spark On Jan 10, 2008 5:10 PM, Rafael Bueno [EMAIL PROTECTED] wrote: Valeu amigo era isso mesmo, apaguei todo o conteúdo da pasta app\tmp \cache\models

Re: How combine CakePHP + ExtJS?

2008-01-10 Thread inma
Thanks for your answers! Although your examples show a datagrid, I will try to adapt it to show and validate a form... Kind regards. On 9 ene, 20:02, hydra12 [EMAIL PROTECTED] wrote: I'm working on a new version of my tutorial that works with 2.0.  I'll try to get it done soon, depending on

Saving Multiple HABTM associations

2008-01-10 Thread leveille
1.2 beta Following is the sql file I am working from: http://pastebin.com/f5d3d7ec5 After I bake my MVC files and add a user, it is apparent that when save reaches the second HABTM association for my model it attempts to save data from my first HABTM association, as well as data from my second

Some bake problems...

2008-01-10 Thread avairet
Hi everybody, I found some problems with bake script in command line. I'm using 1.2.0.6311 beta release, not the nightly. 1) In a controller creation, if I answer no for: Would you like to include some basic class methods?, bake doesn't ask me creating Admin routing methods... 2) The

Re: CakePHP webroot strange core.* files

2008-01-10 Thread NRGBilly
Hi, no, I use another server but propably this is the problem. I'll check the log files as DJ Spark pointed out. The problem is that these files remain in the webroot and fill up the available space. On 7 Ιαν, 12:27, AD7six [EMAIL PROTECTED] wrote: On Jan 7, 10:26 am, NRGBilly [EMAIL

Re: How combine CakePHP + ExtJS?

2008-01-10 Thread foxmask
i tried to repeat the step of your example with ext 1.1.1 here is my ajax.ctp !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=?php __('lang_iso_code') ? lang=?php __('lang_iso_code') ?

i18n Translations

2008-01-10 Thread [EMAIL PROTECTED]
I've been using the translation behaviour to translate and it works fine for the translations but not the original default language, when I set my application to the default language (es Spanish) and try to get the content from the Original Model (Page) the Translation behaviour tries to look for

Re: Some bake problems...

2008-01-10 Thread avairet
I have upgraded the console with nightly build release but problems always exist... Avairet On 10 jan, 11:34, avairet [EMAIL PROTECTED] wrote: Hi everybody, I found some problems with bake script in command line. I'm using 1.2.0.6311 beta release, not the nightly. 1) In a controller

Re: converting loadModel to App::import

2008-01-10 Thread lordG
Hi Conankun, Did you get a solution to this? Sounds like the App class is not being loaded (sorry for stating the obvious i think). Have you gotten the latest release and ensured all the correct files are in the right places? G --~--~-~--~~~---~--~~ You received

Re: specify field instead of string in conditions array

2008-01-10 Thread avairet
Hello Brian, Can you explain more? What is your context? Because conditions array is normally for SQL conditions (e.g. : Post.id 5 or Post.id 10), not for fields... BR Avairet On 10 jan, 02:32, blange [EMAIL PROTECTED] wrote: $conditions = array( 'Post.id' =

Re: specify field instead of string in conditions array

2008-01-10 Thread grigri
There's a 'magic marker' that tells cake not to interfere with conditions, and it's -! (hyphen - bang) So this would work: $conditions = array( 'Post.id' = '-!Post.thread_id') Of course, cake won't quote your field, so it would be better practice to put $conditions =

Re: Making a video screenshot from wmv

2008-01-10 Thread R. Rajesh Jeba Anbiah
On Jan 10, 4:38 am, Aria Rajasa Masna [EMAIL PROTECTED] wrote: Hi everyone, I wanted to take a screenshot from an user uploaded video, any links and references I can follow regarding that matter? Owh and I was wondering on how to make a animated gif screenshot like the one displayed

Submit ajax form using image

2008-01-10 Thread Richard
Hi, I need to submit an Ajax form using an image opposed to a submit button. The roadmap suggests this is now possible: https://trac.cakephp.org/ticket/770 but I cannot find this functionality. I am using 1.2 -- can anyone help? Thanks in advance.

Re: Acl-check without alias?

2008-01-10 Thread Dardo Sordi Bogado
Pass array('foreign_key' = $id, 'model' = 'Post') as the aco to check(). On Jan 9, 2008 11:48 AM, Andreas [EMAIL PROTECTED] wrote: Hi, bit new to ACL and having some problems when I want to check for permissions before deleting a post using the ACL setup from

Re: PHP has encountered a Stack overflow

2008-01-10 Thread Chris Hartjes
On Jan 10, 2008 10:37 AM, lordG [EMAIL PROTECTED] wrote: Hi Guys, I just updated my core site to the latest 1.2.0.6311 release and I keep getting this error on every second or third request: PHP has encountered a Stack overflow Imagine my shock when Google pointed out what the problem

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Also, when I hit refresh when this happens, I get this error: Fatal error: Cannot redeclare paths() (previously declared in D: \webserver\cake.1.2\dev.2\cake\cake\basics.php:60) in D:\webserver \cake.1.2\dev.2\cake\cake\basics.php on line 100 Er, um, what? I haven't even redeclared it.

Re: Submit ajax form using image

2008-01-10 Thread grigri
Hmmm... tough one echo $ajax-submit('your-image-here.png'); but I cannot find this functionality I'd just point out that I never use the Ajax helper [because I prefer mootools], and this took me all of 10 seconds to find out by browsing the source, although I'm sure you could find it on

PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Hi Guys, I just updated my core site to the latest 1.2.0.6311 release and I keep getting this error on every second or third request: PHP has encountered a Stack overflow Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: converting loadModel to App::import

2008-01-10 Thread rtconner
I dunno why it says App::import. I believe (from whay I know) you should be using ClassRegistry::init now. On Jan 10, 6:15 am, lordG [EMAIL PROTECTED] wrote: Hi Conankun, Did you get a solution to this? Sounds like the App class is not being loaded (sorry for stating the obvious i think).

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Hey Chris, Thanks, but mine is already set to 128M, which is far too high anyway. My app was working 100% with release 1.2.0.5875, but now with the new one, I get this error above. Any further ideas? G --~--~-~--~~~---~--~~ You received this message because you

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Even tried the ini setting at 512MB, and still no luck...! Like I mentioned, the app was working 100% before the update, and I used to use loadModel, and switched it to the App::import... could this be part of the memory usage error? On Jan 10, 6:08 pm, lordG [EMAIL PROTECTED] wrote: Hey

New site added to 'Cake Apps/Sites In The Wild'

2008-01-10 Thread Charlie van de Kerkhof
New site/app added to http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild A music aggragator of reviews, audios and videos. Build in cake 1.2. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: New site added to 'Cake Apps/Sites In The Wild'

2008-01-10 Thread Charlie van de Kerkhof
And the name of the site and URL: Cloudspeakers.com - http://www.cloudspeakers.com On 10 jan, 17:27, Charlie van de Kerkhof [EMAIL PROTECTED] wrote: New site/app added to http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild A music aggragator of reviews, audios and

Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l
I have upgraded my loadModel calls with App::inport without problem.. STACK_OVERFLOW is symptomatic of a dead-end loop ... Is the App::import the only code modified ? If you comment your App::import, do you face the same overflow ? On Jan 10, 5:25 pm, lordG [EMAIL PROTECTED] wrote: Even tried

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Yeah, i've been trying that, but I am not sure if that is or isn't related to the error. The code I have that seems to get nailed is as soon as I do the $MenuModel = new MenuModel();: if (!is_object($this-MenuModel)) { if

Where to call the form helper Save function in cakephp 1.2

2008-01-10 Thread manish
Hi All, I am relatively new to CakePHP and working with CakePHP 1.2 beta. What I have learned so far is that we use controllers to take input and models to actually save data. But the form helper Save function is working fine in my controller class and not in my model class. I want to ask that

Re: Saving Multiple HABTM associations

2008-01-10 Thread leveille
Issue solved - PhpNuthttps://trac.cakephp.org/timeline 01/08/08 PhpNutsomewhere around that date pretty sure I fixed it AD7six https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/model.php#L1276 AD7sixleveille: if you use the branch code you are set.

Re: Rendering a different main page

2008-01-10 Thread Greg Baker
Yes, that's exactly what I wanted. Thank you. On Jan 9, 5:38 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Jan 9, 2008 3:24 PM, Greg Baker [EMAIL PROTECTED] wrote: How can I get the root of my site to display a different page, without using a redirect? For example..

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

2008-01-10 Thread Alberto
I've read that problem and I tried it but it didn't solve the problem. In the vendor there was the a start_session, but it was not called, anyway I removed it. None else is having this problem? On Jan 10, 8:35 am, francky06l [EMAIL PROTECTED] wrote: Just a hint (maybe you tried already) ..

Re: Saving Multiple HABTM associations

2008-01-10 Thread leveille
Here is the thread from irc. Read it to become enlightened! PhpNut https://trac.cakephp.org/timeline 01/08/08 PhpNutsomewhere around that date pretty sure I fixed it AD7six https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/model.php#L1276

Re: Submit ajax form using image

2008-01-10 Thread Richard
echo $ajax-submit('your-image-here.png'); I have already tried this but a standard submit button with the image path is output. Hmmm... tough one. Maybe work on your research skills? I suggest you work on your communication skills. On Jan 10, 7:38 pm, grigri [EMAIL PROTECTED] wrote: Hmmm...

Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l
$MenuModel = new MenuModel(); ? Is all the code in same function ? Maybe ahve a look to ClassRegistry::Init('MenuModel', 'Model'), I think it does the add object and returns the class ...(to verify) On Jan 10, 5:54 pm, lordG [EMAIL PROTECTED] wrote: Yeah, i've been trying that, but I am not

More fun with legacy DB - using callbacks vs. using views

2008-01-10 Thread Robby Anderson
I've got a DB with legacy data and column names, and because other applications (currently) use it, we're sticking with the DB naming conventions (which is, of course, totally non-Cake). So, its not an option to change the DB naming convention, and its not an option to not use Cake. :) One of

Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l
Maybe yes, the Model in the init function should be prefix with plugin name. I think you only need this : if (!is_object($this-MenuModel)) { $this-MenuModel = ClassRegistry::init('cms.MenuModel', 'Model'); Also what in your plugin, if you have relation between model integrate the plugin

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
nope, if I remove the code, i dont get the error. The error only appears to be occuring when either running $MenuModel = ClassRegistry::init('MenuModel'); or $menuModel = new MenuModel(); Some further notes, this model is within a plugin call Cms. Could the error be related to how Cake is

Re: Submit ajax form using image

2008-01-10 Thread grigri
Sorry mate, it really does work. I even backgraded back to the beta release to test, and it still works there. You say you're using 1.2, is that the latest branch, the beta, the pre-beta, or what? This was added in 6161 : https://trac.cakephp.org/changeset/6161 (AjaxHelper::submit just calls

Re: Ajax Helper multiple actions

2008-01-10 Thread seacloud9
Trying to pass variables to different actions within the controller: showresult page contains two elements. I make the submit variable generic and then call the different actions. I am having trouble passing the variable to the other controller actions any clues... Thanks

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Yeah, still not. This is the updated code. if (!is_object($this-MenuModel)) { if (!ClassRegistry::isKeySet('MenuModel')) { //get the language model if (!class_exists('MenuModel')) { App::import('Model','cms.MenuModel');

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

2008-01-10 Thread francky06l
I have talk with Lion30 yesterday on IRC, he had the same problem with captcha component No idea if he did solve or not .. On Jan 10, 1:00 pm, Alberto [EMAIL PROTECTED] wrote: I've read that problem and I tried it but it didn't solve the problem. In the vendor there was the a

Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l
If you remove this block of code ? DO you get the error ? On Jan 10, 6:12 pm, lordG [EMAIL PROTECTED] wrote: Yeah, still not. This is the updated code. if (!is_object($this-MenuModel)) { if (!ClassRegistry::isKeySet('MenuModel')) { //get the language model

Using 1 cake app to power multiple sites

2008-01-10 Thread Travis
Hi, I was wondering if anyone had any ideas on how to implement this idea in the most effective way. I'm working on a CMS right now for private use that is going to need to power multiple domains (www.site1.com, www.site2.com, www.site3.com, etc) Each site needs its own database, and each

Re: specify field instead of string in conditions array

2008-01-10 Thread blange
Thanks that did the trick! On Jan 10, 5:57 am, grigri [EMAIL PROTECTED] wrote: There's a 'magic marker' that tells cake not to interfere with conditions, and it's -! (hyphen - bang) So this would work: $conditions = array( 'Post.id' = '-!Post.thread_id') Of

AclBehavior / TreeBehavior ... use save() instead of setParent()

2008-01-10 Thread aranworld
This is more of an FYI so that anyone searching about this will come across some new information. In the latest 1.2 Beta there have been some changes to the way you change an Aro element's parent AND have the Tree values changed at the same time. Previously, you would use the setParent method,

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Yeah, sorry about the code error, I forgot about the Plugin.ModelName here. This has not fixed the problem though. I've updated the code to: if (!is_object($this-MenuModel)) { if (!ClassRegistry::isKeySet('MenuModel')) { $MenuModel = ClassRegistry::init('Cms.MenuModel',

generateList deprecated ... how to find a list with conditions?

2008-01-10 Thread aranworld
In the latest 1.2 Beta, I am noticing that generateList is deprecated and to be replaced with find(list). But how am I supposed to add a condition to the find if the first argument is the string list? Can anyone help me figure out how to replicate a generateList with conditions using the new

Re: generateList deprecated ... how to find a list with conditions?

2008-01-10 Thread Baz
find('list', array ('conditions' = array() ); On Jan 10, 2008 11:42 AM, aranworld [EMAIL PROTECTED] wrote: In the latest 1.2 Beta, I am noticing that generateList is deprecated and to be replaced with find(list). But how am I supposed to add a condition to the find if the first

Re: Using 1 cake app to power multiple sites

2008-01-10 Thread Robby Anderson
I've got that going right now, based on a blog post or an article. Basically, I've got a directory like this: web - app1 - app2 - src - cake.v1 - cake.v2 I put my full versioned cake install into the source directory (right now I have cake_1.2.05875-pre-beta and cake_1.2.06311-beta, for

Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l
You do not need isKeySet and getObject, the init function will do the addObject (unless you need to call your init function load the first time) ... When tracing, where does fails ? init, load or getObject ? On Jan 10, 6:42 pm, lordG [EMAIL PROTECTED] wrote: Yeah, sorry about the code error, I

Re: Where to call the form helper Save function in cakephp 1.2

2008-01-10 Thread Siebren Bakker
actually, the $this-ClassName-save() function is supposed to be in the controller class as is. What it does is sends the data to the Model in order to validate the data to be saved. In the Model, you would place all of your data validation, and if the passed data passes the validation present in

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

2008-01-10 Thread Siebren Bakker
Another thing you want to check, is look at all of your model and controller files, and make sure that there is *NO* whitespace either before, or after the first ?php call or the last ? call. These have been known to cause the loss of session data in numerous cases. On Jan 10, 2008 6:00 AM,

New site added to 'Cake Apps/Sites In The Wild'

2008-01-10 Thread RRose
I would like to announce the launch of http://www.brightegg.com, a new web platform for building/managing professional-looking websites built with cakePHP 1.2. Brightegg also utilizes several popular open-source javascript toolkits, including jQuery, Dojo and FCKeditor. Brightegg offers

Re: Using 1 cake app to power multiple sites

2008-01-10 Thread Baz
Yep, that's basically it. Look up in the manaul.cakephp.org and look at the production setup. This only works on hosts that allow you to point a (sub)domain to a particular directory of your choice. I know some have their own generated directories they use. Just thought I put that out there. I

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Ok, I found the problem... In my controller I opted to switch the $ext value back to '.thtml' so I didn't have to rename hundreds of view files. Now this is interesting though becasue what does the $ext of the controller have to do with the App::import()? When debugging, I always got to the

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
though, whilst looking through the code of the constructor function of the model, there is no way around this... model class: 00349 if ($table === false) { 00350 $this-useTable = false; 00351 } elseif ($table) { 00352 $this-useTable = $table; 00353

Re: Using 1 cake app to power multiple sites

2008-01-10 Thread AD7six
On Jan 10, 8:35 pm, Baz [EMAIL PROTECTED] wrote: Yep, that's basically it. Look up in the manaul.cakephp.org and look at the production setup. This only works on hosts that allow you to point a (sub)domain to a particular directory of your choice. How does that affect things one way or

Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l
I have a model load with App::import and having no table. It does not generate any problem ... Actually I have never loaded a plugin.model, but I am doing plugin.helper, plugin.component without problem.. On Jan 10, 8:32 pm, lordG [EMAIL PROTECTED] wrote: nope, I think I was wrong about that!

Re: PHP has encountered a Stack overflow

2008-01-10 Thread AD7six
On Jan 10, 8:46 pm, francky06l [EMAIL PROTECTED] wrote: I have a model load with App::import and having no table. It does not generate any problem ... Actually I have never loaded a plugin.model, but I am doing plugin.helper, plugin.component without problem.. Check that you don't have

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

2008-01-10 Thread fr3nch13
This is 99% a whitespace issue IME's. Hint: Find where kcaptcha is writing the image headers header(...) comment them out and try to look at the image... it should be all garbled. Take a look at the source. It the first character is a space, you know that's your problem.

using configuration file

2008-01-10 Thread Novice Programmer
Hello Guys, I have a legacy appliaiton that i am porting to cake to avoid the clutter of code in my php pages. That application is using configuration file(traditional config.php). I was wonderting that what is the best place where it would go when thinking of cake paradigm. Please Help. --

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
The problem was not solved by changing the $ext! AD, i'll check on what you are suggesting. Is this because Cake loads all the models or something? Why would the duplicate aliases solve the problem? --~--~-~--~~~---~--~~ You received this message because you are

Re: How to set up PEAR and MDB2 for Cake Migrations?

2008-01-10 Thread Chris Hartjes
On Jan 10, 2008 2:05 PM, Cristiano [EMAIL PROTECTED] wrote: I would like to setup Cake Migrations 3.4 for my app, but it requires PEAR.php and MDB2.php. Problem is: I have NO idea how to do this and it doesn't seem to be documented anywhere. Go to http://pear.php.net for info on how to

Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG
Ok, I have no duplicate aliases in the models... any other suggestions? Whatever has gone wrong is because of a difference in the 2 releases, and I think to suspect the new App::import related items and how it is functioning. On Jan 10, 10:19 pm, lordG [EMAIL PROTECTED] wrote: The problem was

Re: How combine CakePHP + ExtJS?

2008-01-10 Thread hydra12
OK, I've updated my datagrid tutorial for ext-2.0. You can find it here: http://www.ntatd.org/mark/?p=30. I'll try to work on forms next. If I remember correctly, you build the form itself in ext just like in the tutorials. When you want to submit, do it as a post. In your controller, you

Re: Looking for an example with Extjs lib

2008-01-10 Thread hydra12
I just posted a newer tutorial that works with ext-2.0 and cake 1.2 beta here: http://www.ntatd.org/mark/?p=30 On Nov 26 2007, 10:12 am, hydra12 [EMAIL PROTECTED] wrote: OK, I now have an example to share. It's fairly long, so I won't post it here, but you can find it on my blog.

How to set up PEAR and MDB2 for Cake Migrations?

2008-01-10 Thread Cristiano
I would like to setup Cake Migrations 3.4 for my app, but it requires PEAR.php and MDB2.php. Problem is: I have NO idea how to do this and it doesn't seem to be documented anywhere. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How combine CakePHP + ExtJS?

2008-01-10 Thread hydra12
OK, I did some searching and found this thread: http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152746ddb38/48bde29ad0776d1f?lnk=gstq=extjs#48bde29ad0776d1f --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: using configuration file

2008-01-10 Thread MrTufty
It depends how many configuration settings you need to store. Personally, I'm just adding to the bottom of app/config/core.php - seems to work fairly effectively. Others have used a model and component in order to store configuration settings in the database. I haven't tried this yet. Steve

Re: Do I develop user authentication or the site itself first?

2008-01-10 Thread Sonic Baker
I try to go with doing whatever gives the most business value first. This means whichever piece of functionality is most important in getting the application working in the shortest amount of time. You can then release this part to the testers immediately and get feedback early. However, on my

Re: using configuration file

2008-01-10 Thread Novice Programmer
Hello Steve, Thanks for the reply. I have a lot of configuration files, so i think appending at the end of one file wont be advisable for me. Can you point me to any such example of the second approach you suggested? I will be thankful. thanks. On 1/11/08, MrTufty [EMAIL PROTECTED] wrote:

Populating the index page on fly

2008-01-10 Thread Novice Programmer
Hello Guys, I am new to OO and cake, so please bear with me for my stupid questions. I have got a legacy application to port to cake. On the index page of this application, images are loaded on fly from the database. From the cake's manual i got that replacing the cake's template with your custom

othAuth - Refresh session info

2008-01-10 Thread Sonic Baker
Hi all, I'm using othAuth with cake 1.1.x.x. I have a scenario where a user signs up for an account and then gets an email with an activation link. When the user clicks the link they can login. However, once logged in I want them to fill out their account profile. Once filled in I set their

RosSoft's head helper problem

2008-01-10 Thread Sonic Baker
Hi all, I'm using RosSofts head helper for 1.1.x.x It works a charm on my dev machine. However, when I upload the app to the test server it doesn't seem to add the .js extension to the javascript includes. It does add the .css extension for the stylesheets though. I know this is built into 1.2

Re: Populating the index page on fly

2008-01-10 Thread Aria Rajasa Masna
You can use the elements. Put those elements in your template file and load the image dynamically by calling it from the element. You can use requestAction to call the query from a controller. You would have to make the controller first of course, just something to call the query On Jan 11, 2008

Re: Cake newbie - How to get usermgmt running?

2008-01-10 Thread [EMAIL PROTECTED]
Thanks, but this still doesn't work. I get the same error when I try this, in either app_controller.php or auth_controller.php. I also tried putting the line: var $uses = array('Session'); in each of auth_controller.php and app_controller.php, and got the second error described above (Class

generateList Decrecated - why?

2008-01-10 Thread lordG
Hey Guys, One of the great features i liked about the generateList was that you could make a list of data that the id was the key and the data was the value... e.g. generateList(null, null, null, '{n}.Model.id', '{n}') Why remove generateList, why not just leave it and give the option of both?

Re: Using 1 cake app to power multiple sites

2008-01-10 Thread Robby Anderson
This only works on hosts that allow you to point a (sub)domain to a particular directory of your choice. I know some have their own generated directories they use. Just thought I put that out there. If you want http://www.app1.com to point to the www/app1 directory and http://www.app2.com

Re: generateList Decrecated - why?

2008-01-10 Thread lordG
If it is possible to do the above though using the find('list'..., how would one suggest it be done? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: generateList Decrecated - why?

2008-01-10 Thread AD7six
On Jan 10, 10:26 pm, lordG [EMAIL PROTECTED] wrote: Hey Guys, One of the great features i liked about the generateList was that you could make a list of data that the id was the key and the data was the value... e.g. generateList(null, null, null, '{n}.Model.id', '{n}') Why remove

Re: PHP has encountered a Stack overflow

2008-01-10 Thread Adam Royle
Hey AD, Can you elaborate on why there shouldn't be duplicate aliases? I'm pretty sure I've done this many times without issues. Cheers, Adam On Jan 11, 5:51 am, AD7six [EMAIL PROTECTED] wrote: On Jan 10, 8:46 pm, francky06l [EMAIL PROTECTED] wrote: I have a model load with App::import and

  1   2   >