RES: Muito errado fazer isso?

2007-09-15 Thread Helio Ricardo
Salve, Basicamente respondendo ao amigo... Eu entendo que sim... Existe problema (de segurança) em deixar um site em produção rodando no modelo de desenvolvimento, mas vai funcionar? Sim, vai funcionar perfeitamente. No início apanhei um poço para entender as formas de instalações do

Re: get access from one controller to another

2007-09-15 Thread AD7six
On Sep 15, 1:24 am, millZ [EMAIL PROTECTED] wrote: Hello, how is it possible to call functions of a Controller (EventsController) in another Controller (VisitsController)? The models are connected with visits:belongsto Events events: hasMany Visits I've tried to call

app_model to access a component

2007-09-15 Thread stab
I'm doing a bit of a hack to get some auto-transaction control for a set of models. The component is doing it's thing and saving down data correctly. So in app_model I have: var $transaction_models = array('Form','FormTemplate','FormRecord','FormGridRecord','FormExtended','Chain',

Re: Models /HABTM references

2007-09-15 Thread Jon Bennett
The generate_browser() function in the controller is where things are falling over. The goal is simply for an uploaded image to have many tags associated with it, which the user can enter as comma separated list in a textbox. I can't see anything wrong with your code actually, what is the

Re: app_model to access a component

2007-09-15 Thread AD7six
On Sep 15, 12:09 pm, stab [EMAIL PROTECTED] wrote: I'm doing a bit of a hack to get some auto-transaction control for a set of models. The component is doing it's thing and saving down data correctly. So in app_model I have: var $transaction_models =

Re: app_model to access a component

2007-09-15 Thread stab
Now to understand it :p On Sep 15, 6:22 pm, AD7six [EMAIL PROTECTED] wrote: On Sep 15, 12:09 pm, stab [EMAIL PROTECTED] wrote: I'm doing a bit of a hack to get some auto-transaction control for a set of models. The component is doing it's thing and saving down data correctly. So in

Re: new With Associations in a HABTM

2007-09-15 Thread Mech7
Hmm well i have looked and it but it is not clear to me at all.. can anybody please write a proper explanation for it preferable on the bakery so it will be usefull for others too :) On Aug 22, 1:10 am, Marcin Domanski aka kabturek [EMAIL PROTECTED] wrote: Ive read the pdf but i dont expect a

Re: new With Associations in a HABTM

2007-09-15 Thread Chris Hartjes
On 9/15/07, Mech7 [EMAIL PROTECTED] wrote: Hmm well i have looked and it but it is not clear to me at all.. can anybody please write a proper explanation for it preferable on the bakery so it will be usefull for others too :)

Re: Cake Pages w/Multiple Actions, Multiple Models

2007-09-15 Thread bingo
another option that I feel gives more flexibility is this http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction so you end up writing lot of small elements and use views to compose these elements. However you will need to also consider how requestAction is

Speeding up requestAction

2007-09-15 Thread BCN Adam
Hello all, I've been looking for a way to speed up requestAction and wanted to share a hack I came up with. It seems that the main problem is that the SessionComponent is re-instantiated and a new session is started each time. First i modified SessionComponent and added the following function:

Re: get access from one controller to another

2007-09-15 Thread millZ
Oh Thanks, that works fine :-). yours faithfully --~--~-~--~~~---~--~~ 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

query log and requestaction

2007-09-15 Thread Claudia
Hi there One of my controllers has an action that is only called via requestaction from within an element. The idea behind is to cache this element as described in http://bakery.cakephp.org/articles/view/optimizing-your-cakephp-elements-and-views-with-caching Generally this approach works fine,

Re: new With Associations in a HABTM

2007-09-15 Thread Chris Hartjes
On 9/15/07, Mech7 [EMAIL PROTECTED] wrote: But this only displays how to find the extra tags with it, but is there also an explanation to select on the other table, so for example specify which tags there should be in a post ? What do you mean by which tags there should be in a post. If

Re: query log and requestaction

2007-09-15 Thread francky06l
Very strange because I use the same approach. Are you sure your query is not in the log because the element is already cached ? If the element is cached, then your query is not executed and ...therefore no log. Hope this helps Franck On Sep 15, 6:53 pm, Claudia [EMAIL PROTECTED] wrote: Hi

Whats the convention for a private functions?

2007-09-15 Thread millZ
Hello, what is the convention for a private function, which has not to not work as url? example TableController extens AppController { function getSomeInternalData(){ }// eh } so a hyperlink like this has not to result in an error like 'missing view':

Re: Whats the convention for a private functions?

2007-09-15 Thread rtconner
start the function name with an underscore to make it private. _getSomeInternalData() On Sep 15, 12:36 pm, millZ [EMAIL PROTECTED] wrote: Hello, what is the convention for a private function, which has not to not work as url? example TableController extens AppController { function

Re: query log and requestaction

2007-09-15 Thread Claudia
Thanks for your quick reply. Yes, I am sure that no caching takes place. I don't use any cache parameter at the moment and I have also checked the cache directory - no files in there. But I just remembered that I fiddled around with the sqllog so it does not mess the html of up my pages - maybe

How to Turn Off the CakePHP(TM): etc. at the bottom of every page?

2007-09-15 Thread CakeONaut
Hi! I use Django at work but am impressed with I think will be a much faster development cycle possible with CakePHP. Anyhow, I have just started delving into CakePHP. Right now I get CakePHP(TM):Rapid Development Framework at the bottom of every page I create. Is this something I must

Thanks!

2007-09-15 Thread CakeONaut
To Chris Hartjes and to John David Anderson a very big THANKS for your fast responses!! This forum really is a brilliant resource, and this is another huge reason to cook web sites using Cake. I will definitely put something somewhere on the site that points to CakePHP as the framework.

Re: How to use findById from a different model in a model

2007-09-15 Thread Charlie van de Kerkhof
Yep! That did the trick. Thanks Chris! Some basic OO I think. I get spoiled by Cake! ;) That's for sure... On Sep 15, 10:12 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 9/15/07, Charlie van de Kerkhof [EMAIL PROTECTED] wrote: // In model Ticker: $artists = $this-Artist-findById(12); is

Re: How to use findById from a different model in a model

2007-09-15 Thread Chris Hartjes
On 9/15/07, Charlie van de Kerkhof [EMAIL PROTECTED] wrote: // In model Ticker: $artists = $this-Artist-findById(12); is not working because the model Artist is not known (?) in model Ticker. Even with the loadModel('Artist') is is not working. Anyone any idea? thnx in advance You can't

Re: Pages not rendering

2007-09-15 Thread Matt
Okay, I have now ruled this down to one function $this-Session- write('User', test) I have tried using the database, php and cake session types but all of them give the same result. As soon as I call the write function everything page is displayed as blank. Am I missing something with the

Re: new With Associations in a HABTM

2007-09-15 Thread Mech7
Well from what i have read it is possible to search across HABTM so you can have tag.name = 'php' as a parameter to search posts within the post controller. On Sep 15, 7:09 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 9/15/07, Mech7 [EMAIL PROTECTED] wrote: But this only displays how to

Re: Grab parent ARO from ACL

2007-09-15 Thread pigeon
so, anyone, please ? do i have to familiarize myself with the method cake uses to store the ACL tree in sql to get the parent of any given ARO node? :-( (...Thanks for the suggestion Gwoo but the database structure (cake 1.1) has no parent_id field in the aros table) thanks andrew On Sep 12,

Re: new With Associations in a HABTM

2007-09-15 Thread Chris Hartjes
On 9/15/07, Mech7 [EMAIL PROTECTED] wrote: Well from what i have read it is possible to search across HABTM so you can have tag.name = 'php' as a parameter to search posts within the post controller. Well, have you tried it? :) I'm not 100% if that has been implemented, but I'm 100%

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread Olivier Percebois-Garve
then the best for you is to use an email client such as Thunderbird and use threaded view Mech7 wrote: I have to say that i prefer a decent forum over this group, this is all so unorganized very hard to track your messages. --~--~-~--~~~---~--~~ You

Re: Pages not rendering

2007-09-15 Thread Adam Royle
Hi Matt, This usually indicates that there is a script error and cakephp's error handling under mode DEBUG = 0 prevents the page from displaying. Set DEBUG in app/config/core.php to be higher than 0 (eg 2), and you will see any errors that are occurring. Adam - Original Message -

paths and rewriting them

2007-09-15 Thread CakeONaut
Sorry, please delete / ignore my last message about rewriting paths without mod_rewrite. I just discovered routes in the manual. Cheers! - W --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

paths and how to deal with no apache mod-rewrite

2007-09-15 Thread CakeONaut
Hi! My host uses apache but does not have mod_rewrite available right now. I'm wondering if I could be pointed to any information on how to a) have my application use regular urls b) have my urls made prettier (without using mod_rewrite) Are these possible? Thanks heaps! - W

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread Danijel Kurinčič
but why not use a proper forum? On 9/16/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: then the best for you is to use an email client such as Thunderbird and use threaded view Mech7 wrote: I have to say that i prefer a decent forum over this group, this is all so unorganized very

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread Larry E. Masters aka PhpNut
This is a proper forum for this group and has been since the beginning. The topic has been beat to death about having a forum and I still have not be convinced by anyone that a forum would be any better than this google group, so my answer will be as it has in all the other threads discussing

Re: Speeding up requestAction

2007-09-15 Thread DanielSun
some thoughts: - I think session doesn't get reinstantiated everytime if you set $security setting to lower. - if you are using more than three (two?) requestAction calls It gets significantly slower, since the whole controller (or even more) gets loaded once more. If you are doing requestActions

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread Danijel Kurinčič
Google groups is not a web forum, but is a mailing list (with some poor features that resemble a webforum) I can provide some pros of a forum to this gGroup: - people are more familiar with forums - forums provide many more useful features gGroups don't (and can't, since they are mailing lists) -

Re: Pages not rendering

2007-09-15 Thread Matt
Thanks Adam, I orignally had the debug level at 2 as I was doing development. Then I turned it to 0 because I thought the debug might be causing the page to time out. After that I changed it to 3 to see if it would work then but still no luck. The page shows up with an HTML header and footer

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread Dr. Tarique Sani
On 9/16/07, Danijel Kurinčič [EMAIL PROTECTED] wrote: Google groups is not a web forum, but is a mailing list (with some poor features that resemble a webforum) Give it up - the change is not happening (and I feel rightly so - I prefer mailing list over forums) Of course I shall put my best

Re: How to use findById from a different model in a model

2007-09-15 Thread Dr. Tarique Sani
On 9/16/07, Chris Hartjes [EMAIL PROTECTED] wrote: On 9/15/07, Charlie van de Kerkhof [EMAIL PROTECTED] wrote: // In model Ticker: $artists = $this-Artist-findById(12); is not working because the model Artist is not known (?) in model Ticker. Even with the loadModel('Artist') is is

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread Danijel Kurinčič
but I want to have things tidy in my e-mail account and cakephp group has 36161 messages! *56 a day!* Not enivronmentally friendly to send them around in vain :) now I remember, that the interface I have used to be beta version... but I don't see the switch back option any more... maybe it is

Is this error related to PHP version?

2007-09-15 Thread CakeONaut
Hi! I was using : if ($this-User-save($this-params['form')) and getting back Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/hgi/public_html/tst/wwwroot/cake/app/controllers/users_controller.php on line 10 My host is using a pre-5.0 version of PHP. Is that my problem? I'm

Re: Is this error related to PHP version?

2007-09-15 Thread Larry E. Masters aka PhpNut
If the code you pasted is the exact code you are using you are missing the ''. Code should be: if ($this-User-save($this-params['form')) -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 9/15/07, CakeONaut

Re: Why does this shitty Ggroups need 10 mins to post?

2007-09-15 Thread haj
I don't cal myself a heavy user of google group but I haven't encountered any difficulty so far... I'm using ONLY web interface, BTW. This is much faster than yahoo group. I think the biggest benefit of using google group is that it is part of google, so searching can take advantage of google's