Re: newbie question

2007-04-10 Thread mindcharger
That's a tough one! :-) I cannot give you a straight answer for that one because I never needed that but I can try to give you some clues. Please note that these are just ideas and they might not even be possible. Also, please check that Cake cannot supply to DB connections to the same Model bef

Re: newbie question

2007-04-09 Thread mindcharger
Hello, I assume that you mean "3 schemas" when you say "3 databases". I think you can select which schema you want to use on the fly. You can define the dbconfigs on the appropriate file and then switch between them using the model's $useDbConfig var. As of putting the models and controllers on

Re: newbie baker question

2007-03-25 Thread mindcharger
Hi, In fcat that's wierd...it shouldn't be happening... Did you defined any rules on inflections.php (it's in $PATH_TO_CAKE\app \config)? Also, what Cake version you're using? Cheers! On Mar 25, 6:53 am, "Stacey" <[EMAIL PROTECTED]> wrote: > hi all, > > i'm playing with bake for the first t

Re: Introducing myself

2007-03-21 Thread mindcharger
Yes, thanks to all you moderators... Don't take my comment personal, it was just a question, not some form of group-oriented rage... :-) If you need assistence on something concerning Cake-PHP group you can count me in! I want to give back to the group what it has given me...and that might not b

Re: Introducing myself

2007-03-19 Thread mindcharger
Mariano, You can't imagine how many times I feel like this: "The silent and unheard scream of a fed up individual" I understand you had to do it... ;-) Is anyone cleaning the group from messages like this (or, I might add, from any messages that don't fit here, such as messages on native lang

Re: sessions problem

2007-03-08 Thread mindcharger
ECTED]> wrote: > In my case my solution was: > > define('CAKE_SESSION_SAVE', ''); > > Is a good solution? > thanks. > > On 7 mar, 03:52, "bingo" <[EMAIL PROTECTED]> wrote: > > > Hi mindcharger, > > > Thanks for

Re: sessions problem

2007-03-07 Thread mindcharger
! On Mar 6, 10:39 am, "bingo" <[EMAIL PROTECTED]> wrote: > Hi, > > I checked my phpinfo() details and over there it shows > session_cookie_lifetime = 0. Is this the same cookie_lifetime you were > talking off or is there some other...I don't have access

Re: sessions problem

2007-03-06 Thread mindcharger
sion always remain active... > > looking forward for some insights > > regards, > bingo > > On Mar 3, 8:09 am, "mindcharger" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > Do you the PHP Sessions active? > > This is not CAKESession, is PHPS

Re: Possible use CakePHP without DocumentRoot ?

2007-03-03 Thread mindcharger
You have to move your apache documentroot to point to: /PATH_TO_CAKE/app/webroot For ex, if you have cake installed on C:\Cake Change de DocRoot to C:\Cake\app\webroot This is easy to do...just edit Apaches httpd.conf file! Good luck On Mar 2, 7:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]

Re: sessions problem

2007-03-03 Thread mindcharger
Hello, Do you the PHP Sessions active? This is not CAKE Session, is PHP Session. To check if you have the PHP Sessions active go to your php.ini file, find the 'Session' section and check for something like this: session.auto_start = 1 //This will turn on the session session.gc_maxlifetime = 14

Re: Form validation + Ajax ?

2007-02-28 Thread mindcharger
AFAIK the wiki is off... Try: http://bakery.cakephp.org/ Good luck! On Feb 27, 11:55 am, "Mech7" <[EMAIL PROTECTED]> wrote: > Does anybody know how i can reach the wiki? I found this link thru > google but i can't acces it :( > > http://cakebaker.42dh.com/2005/12/31/form-validation-with-ajax/

Re: Can cake (or php) handle huge amounts of data?

2007-02-24 Thread mindcharger
Also, you can increase the memory assigned to a PHP script (just look into php.ini) so the script can use more memory, which in your case means extra capabilities to hanlde more data... Cheers On Feb 23, 9:36 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Feb 23, 2007, at

Re: Notice: Undefined variable

2007-02-24 Thread mindcharger
Yep...Tarique's absolutely right!! You want to see all the "notices" while developing...because "notices" are something you don't want your customer tonotice!! :-) I think that it would be pretty straightforward to correct those "notice" causes... cheers On Feb 24, 4:24 am, "Dr. Tarique Sa

Re: Blank page of death

2007-02-24 Thread mindcharger
Hello, Do you have a valid index.thtml page for the model "Article"? Sorry to ask such a stupid question, but sometimes when stupid things happens you must ask stupid quesions... Your problem is interesting, because when you access http://dev.reya.de/articles you actually have a page returned, b

Re: Twisting a little bit afterSave() use...

2007-02-21 Thread mindcharger
Hello again!! I think I've found a way to solve my problem... I do the table creation before saving (using beforeSave() as opposed to afterSaave()) and use the $this->exists() method to check wheter or not my Model instance already exists... I think it's pretty straightforward...but I might b

Re: Twisting a little bit afterSave() use...

2007-02-21 Thread mindcharger
Hello! Many thanks to Mariano and Wood for your inputs. You know, I'm having a little trouble making the "function afterSave() { if (!isset($this->data[$this->name]['id']) || empty($this->data[$this->name]['id'])) { // We just created the record } } " s

Re: $helpers doesn't work for java script function in layouts files but it work on views index files.

2007-02-21 Thread mindcharger
Isn't there any way to "purge" the groups posts? There would be cool to have some kind of "moderation" that eliminated duplicate questions and posts in other languages than English... I know that moderating is a time consuming task, but there are ways to distribute the load (a moderator for every

Re: Saving hasMany relation in edit view

2007-02-20 Thread mindcharger
>From the error: "I get following error when i try to save the view Notice: Undefined index: Pnumber in /var/www/html/cake/app/controllers/ users_controller.php on line 22 " I'd say that the Pnumber is not getting to the controller... Do you have your "input boxes" in a form? Maybe you're not g

Twisting a little bit afterSave() use...

2007-02-19 Thread mindcharger
Hello! Here's the thing, I'm a couple of weeks from deploying my application and for this first version we will be using scaffolding for a "lesser- used" system part...so the 'quit scaffolding and code it by hand' is not an option (at least for a timely delivery...). In my system, when you creat

Re: Build Single view use scaffolding for many models

2007-02-19 Thread mindcharger
As far as I understand your problem, you have a "scaffolding" problem. Scaffolding should be used for testing the models and DB structure. If you need that level of custom adaption it's time to quit scaffolding and supply your own VIEWS and CONTROLLERS. If you create your own view you can use th

Re: Problama com a função Session->setflash no I.E. Preciso de ajuda!!!

2007-02-19 Thread mindcharger
You shouldn't post your questions in any other language than English. If you stick your posts to English everybody will be able to understand what you say and help you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: 1.2: pagination related data in scaffolding-type baked views

2007-02-18 Thread mindcharger
On Feb 17, 6:41 pm, "Cynthia" <[EMAIL PROTECTED]> wrote: > I have a list of topics and each topics hasMany issues. After > scaffolding I have used bake.php to create the MVC's. > > When I view the issues they paginate. > When I view the topics they paginate. > > But when I view a single issue, I

Re: 1.2: pagination related data in scaffolding-type baked views

2007-02-18 Thread mindcharger
Hello, I see many possible problem sources here: 1) Database structure: how are you associating the topics and issues o the DB? 2) Cake Model Association: how are you telling Cake to fetch the results? Does each issue "belongsTo" one topic? 3) Bake.php: while bake.php is an amazing tool, you sho

Re: CakePHP+JpGraph

2007-02-15 Thread mindcharger
Several suggestions ;-) : 1) create a new script called pi.php and put just this inside: Then put it on your web root and access the script. You'll see the neat phpinfo() page...look for the "session" part and make sure that you have these values: Session Support:enabled session.auto_

Re: Yet another 'hasMany/belongTo' question...

2007-02-15 Thread mindcharger
After running a couple of tests I must say that cake DO retrieves the "hasMany" part as well. My problem (or cake's problem...I don't know...) was due to a MySQL table primary key having value '0'. Don't know if this is a bug, or is supposed to be like so... Now everything's fine... Thanks agai

Re: Yet another 'hasMany/belongTo' question...

2007-02-15 Thread mindcharger
Hey! Thanks a lot on your input. I see it was my interpretation problem...so CAKE takes care of $belongsTo but not of $hasMany...ok...so everything's fine with my code and my head... As of "You just need to set: $this->Network->recursive = 1; In your Network controller, and then you can call

Re: Navigation Component / Helper

2007-02-14 Thread mindcharger
Hey! I think you need an Element... Check this from CAKE manual: "Elements Many applications have small blocks of presentational code that needs to be repeated from page to page, sometimes in different places in the layout. Cake can help you repeat parts of your website that need to be reused.

Re: Change debug level for certain actions

2007-02-14 Thread mindcharger
Not sure if I understood what you want to say, but to disable debug just go to cor.php in (app/config) and set: define('DEBUG', 0); Cheers! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Yet another 'hasMany/belongTo' question...

2007-02-14 Thread mindcharger
Hello, Here's another 'hasMany/belongTo' question... :-) I have read the user manual but either I didn't understood it or I am goin' nuts... :-P I have this DB structure: Table 'users': ++--+--+-+- ++ | Field | Type |

Re: Associations stored in a table?!

2007-02-14 Thread mindcharger
views code dynamically. That is if I'm understanding correctly what you want... On Feb 13, 12:09 pm, "Hawk|" <[EMAIL PROTECTED]> wrote: > Hi Mindcharger, > > your System sounds like the Problem i have. > How do u create your forms? Hardcoded in cakePhp or dynamicly? > &g

Re: What editor do you use for CakePHP?

2007-02-13 Thread mindcharger
If you like something simple, and light try: Notepad++ Cheers! --~--~-~--~~~---~--~~ 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 fro

Re: CakePHP+JpGraph

2007-02-13 Thread mindcharger
Hello, Here's what I did. 1) Put jpgraph as a vendor lib in the app/vendors folder. 2) Make a php script that receives the graph parameters you need (height, width, title, x_data, y-data, etc...) and place it on webroot 3) call the script from your view with You can pass the parameters via _G

Re: Associations stored in a table?!

2007-02-10 Thread mindcharger
ination. If threre's anything else you want to know feel free to ask. Cheers! On Feb 9, 2:15 pm, "Max" <[EMAIL PROTECTED]> wrote: > Hi Mindchanger, > > I will be interested in knowing more about the main requirements > behind this... It looks interesting. &

Re: Passing functions to views

2007-02-09 Thread mindcharger
I think this is a fairly good opportunity to learn... ;-) On Feb 8, 3:50 pm, "Károly Kiripolszky" <[EMAIL PROTECTED]> wrote: > Mostly because I don't know how to use the HtmlHelper in the > controller... :P --~--~-~--~~~---~--~~ You received this message becaus

Re: Route problem

2007-02-09 Thread mindcharger
Hi, I think if you edit ans study the routes.php file carefully you might be able to make it!! Good luck On Feb 8, 3:30 pm, Ámon Tamás <[EMAIL PROTECTED]> wrote: > Max wrote: > > I am looking for the same solution.. > > Hmmm. I think it is a very difficult thing... :) > I like to make something

Re: Associations stored in a table?!

2007-02-09 Thread mindcharger
Hi Hawk, I'm currently developing a system that shares that "dynamic table creation" requirement with yours. As far as I understand the problem, it's more a DB issue than a CAKE issue. I don't know if it will help you, but I will try to explain how I did it. 1) I have a table on the DB that "de

Re: Vendor trouble...can't seem to get this through

2007-02-03 Thread mindcharger
Hey Chris, Thanks a lot for passing the infromation... You've got such a nice blog...I will come back later to check it out more carefully... As of the "vendor()" trouble I see you solved the matter by placing the lib on a different folder than the one suggested by CAKE. I've used a workaround

Vendor trouble...can't seem to get this through

2007-02-03 Thread mindcharger
Hello! I need to use some graphic classes I wrote in my cake app. This would be fine and simple to do with vendor() fucntion but the damn thing won't work...no matter what I try... Here's the thing: my graphic lib uses jpgraph and act as a wrapper for jpgrah. I have a folder in \app\vendors na

Re: advice on database structure

2007-02-01 Thread mindcharger
"This post will only make sense if you can see the diagram!" Yes, that's a problem...I cannot see the diagram...probably Google groups doesn't allow attaches or something. I will try to answer you the best that I can, though... Cake can take care of relations between the tables...just look in t

Re: HTML "anchor" tag issue

2007-01-28 Thread mindcharger
Hey Lance, Thank you very much for your help!! It was indeed a layout error... The tag wasn't closed...I had put it there to mark the "top of the page" section and to put a link on the end of the page to navigate back to top... It was one of that silly mistakes...by not closing CAKE freaked

Re: HTML "anchor" tag issue

2007-01-27 Thread mindcharger
ut sucess... :-( Also two notes: i) I know the code might not be perfect...but I'm still developing the Business and Presentation Logic and things are changing on a daily basis...besides I believe in the motto: "Permature optimization is the root of all evil"... ;-) ii) As for

HTML "anchor" tag issue

2007-01-26 Thread mindcharger
Hello, I'm having a problem with the HTML "anchor" tag (). It seems that everytime I 'echo' something to the screen I get a "nasty" ... tag pair enclosing whatever I'm doing. I'm using Cake's CSS with a thing or two added, and the problem is that the pair shadows other style classes I use. The

Re: how to make bake in tables as 'tb_pedidos' and 'tb_pedidos_itens'?

2007-01-25 Thread mindcharger
Let's keep it in English, please... It's better a "Bad English" than "No English". If it's "Bad English" everyone can understand and help...if it's Portuguese or whatever language, only those who speak that language will be able to follow. You are free to use "Reply to Author" and speak whateve

dayOptionTag error

2007-01-16 Thread mindcharger
Hello! I'm getting a weird error with dayOptionTag function from the html-helper. I have a thtml on the appropriate path with the following content: dayOptionTag('Network_Summary', null, null, null, null, false); ?> And I get two errors of the following type: Notice: Undefined offs

Re: Create CAKE Models on-demand

2007-01-15 Thread mindcharger
Thanks a lot for pointing me a direction, Anselm... I think that might solve my problem...it's just a matter of putting hammer into anvil... Once again, thanks! On Jan 12, 2:15 pm, "anselm" <[EMAIL PROTECTED]> wrote: > So, there is never a really a static Model for the > tables, because the

Create CAKE Models on-demand

2007-01-11 Thread mindcharger
Hello to everyone. I have searched all through CAKE's manual, and suggested links, as well as through all of this group's posts but wasn't able to find anything similar to my problem. If this is a really easy question I appologize, but I've started with CAKE just two days a go... I'm working on