Re: Getting Blank Page after refreshing

2006-07-11 Thread [EMAIL PROTECTED]
I run my app on my own server, it is not a shared environment. I run other cakephp applications on this server and there work as expected (without this blank pages). I have a custom session component handling my sessions looks like this: http://cakephp.org/pastes/show/53f8e74c4c39bb41862deb725ffc0

Re: $ajaxOptions (updateElement, afterUpdateElement) for autocomplete

2006-07-11 Thread nate
This has been completely reworked in the 1.2 branch. The fixes are being back-ported to the next bugfix release of 1.1. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

postgres has a problem with finderQuery in hasMany model

2006-07-11 Thread [EMAIL PROTECTED]
I was going to post this as a bug, but decided I should try here first. Using Postgres, there is a problem with putting a query into finderQuery. A similar query works correctly in the same context when using MySQL It is a legal query, and the query attached to finderQuery actually runs properly.

Re: using one component inside another

2006-07-11 Thread Langdon Stevenson
Thanks gwoo, I will check that out. I believe that I did have 'Session' set in both components, but will double check. Regards, Langdon gwoo wrote: > did you put var $components = array('Session'); inside of your other > component. > Check out rdSimpleAuth I do this to gain access to the se

Re: How do I create a login element

2006-07-11 Thread John Zimmerman [gmail]
Sorry.  That should have been /app/views/elements/login.thtmlOn 7/11/06, John Zimmerman [gmail] <[EMAIL PROTECTED] > wrote:I just created a form in /app/elements/login.thtml with a username box and a password box with a "login" button. I conditionally check to see if the user is logged in within my

Re: How do I create a login element

2006-07-11 Thread John Zimmerman [gmail]
I just created a form in /app/elements/login.thtml with a username box and a password box with a "login" button.I conditionally check to see if the user is logged in within my element to display the current name of the logged in user with a logout button. if($this->controller->Session->check('Logge

Re: How do I create a login element

2006-07-11 Thread John David Anderson (_psychic_)
On Jul 11, 2006, at 6:44 PM, codecowboy wrote: > > Hi, > > I have followed the instuctions in chapter 21 of the manual to > create a > user authentication system. I have that system completely working. > > I want to create a login element that functions the same way. This > way, I can place

How do I create a login element

2006-07-11 Thread codecowboy
Hi, I have followed the instuctions in chapter 21 of the manual to create a user authentication system. I have that system completely working. I want to create a login element that functions the same way. This way, I can place the login element in the left column of my layout. The problem tha

Setting a variable throughout cake when user logs in

2006-07-11 Thread Luke
I have this function in my app_controller that looks like: function Authorize(){ // If the session info hasn't been set... if ($this->Session->check('User')){ $this->set('authorized', true); } else{ // Force the u

Default exception handler

2006-07-11 Thread Gonçalo Marrafa
Hi. I'm using PHP 5 most of my error handling is done through exceptions. If i have some uncaught exception PHP's default exception handler is ugly and not at all similiar to my site's design. I can define a default exception handler with set_exception_handler() and although i can make some custo

Re: How do Models work in Cake

2006-07-11 Thread John David Anderson
On Jul 11, 2006, at 3:51 PM, [EMAIL PROTECTED] wrote: > > I am not sure I am doing justice to the method since I have not > used it > (yet) myself, but it makes sense. Apparently its a well known method > in other language circles (java) but has not been generaly picked > up by > php peopl

Re: How do Models work in Cake

2006-07-11 Thread Olivier Percebois-Garve
To me "Hierarchical Model View Controler pattern." makes sense. I understand (some) database logic (so objects, ORM etc...) but when I think of a website I think with page-logic (so hierarchy, tree, etc). That's the reason why I made Chameleon, and I guess Ocean had similar motivations for Ocea

Re: $ajaxOptions (updateElement, afterUpdateElement) for autocomplete

2006-07-11 Thread henthoca
That changeset didn't appear to mention the autoComplete control, which was originally asked about. I've noticed I had this same problem as well, not being able to easily pass extra options to the Ajax.Autocompleter constructor, like minChar. Any options passed to autoComplete() need be specifie

Re: How do Models work in Cake

2006-07-11 Thread [EMAIL PROTECTED]
John David Anderson (_psychic_) wrote: > On Jul 10, 2006, at 4:44 PM, [EMAIL PROTECTED] wrote: > > > > > I doing research for a new framework for my project, I came across the > > concept of the Hierarchical Model View Controler pattern. I've only > > found one php framework that claims to suppo

Re: Scaffolding - in conjunction with display / password protected?

2006-07-11 Thread AD7six
Hi Stalemate, _caveat_ code is pseudo code, and it's just my thoughts ;) Routes allow you to specify how the url is interpreted, it isn't a workflow mechanism and won't help much in the "after this do that" type logic. Re beforeScaffold http://api.cakephp.org/controller_8php-source.html#l00852

Re: Including information while not inside the cake file structure

2006-07-11 Thread Luke
Wow... seems like there would be something more simple than that!! Thank you, none-the-less. That will get the job done. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: Anyone a runner here? (and a beta tester...)

2006-07-11 Thread tom
Also, calculation of pace, distance, and duration are now actually correct! --~--~-~--~~~---~--~~ 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 unsubsc

Re: Subdomains as Controllers

2006-07-11 Thread Mika
You might also want to look at this thread about wildcard dns' http://groups.google.com/group/cake-php/browse_thread/thread/8fef8e12c622365f/# --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To pos

Re: strange othAuth problem

2006-07-11 Thread yeastinflexion
i also tested this with the $othAuthRestrictions applied to app_controller or individual controllers... same effect. does nobody else have this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: ajax update woes

2006-07-11 Thread joe
sweet, thanks nate! i was confused about requestAction, it seemed like the way to go but i kept calling it in the controller and that wasn't working for me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP

Re: Subdomains as Controllers

2006-07-11 Thread Quad4
Thank you for you advices, i'll try it tomorrow. --~--~-~--~~~---~--~~ 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

Re: Subdomains as Controllers

2006-07-11 Thread RosSoft
Quad4: in routes.php you can touch directly the $from_url variable. if all the subdomain requests can see the cakephp installation dir, the in routes.php you can modify that variable to /controllerX/what_ever_you want. In $_SERVER and/or env() you have all the information that you need --~--~---

Re: Subdomains as Controllers

2006-07-11 Thread Quad4
Darian Anthony Patrick писал(а): > This looks like a job for Apache's mod_rewrite to me. There is a good > tutorial at http://httpd.apache.org in the documentation section for your > (target) version of Apache. This info, combined with the > app/webroot/.htaccess that ships with CakePHP, shoul

Re: ajax update woes

2006-07-11 Thread nate
I updated your pastes. Copy the code out of them and try again. --~--~-~--~~~---~--~~ 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 t

Re: file_get_contents()

2006-07-11 Thread John Zimmerman [gmail]
I have found the issue with command line being different as well in some environments.That is usually due to the webserver either being on a different host than your shell server or your webserver is using PHP through CGI. Both of my situations are being executed by the webserver and output is in t

Re: file_get_contents()

2006-07-11 Thread Samuel DeVore
I have found that in some cases my php from the command line is completely different from php as interpreted in the browser.Sam DOn 7/11/06, nate <[EMAIL PROTECTED]> wrote:Yeah, that's really odd.  The only thing that comes to mind is an errant ini_set, but it doesn't look like Cake is setting any

Re: file_get_contents()

2006-07-11 Thread nate
Yeah, that's really odd. The only thing that comes to mind is an errant ini_set, but it doesn't look like Cake is setting anything that would do that. All I could suggest is to try doing the read from different parts within the framework, i.e. app/webroot/index.php, bootstrap.php, etc. See if y

Re: ajax update woes

2006-07-11 Thread joe
thanks for the reply nate, here's the view (index.thtml for Posts controller): http://cakephp.org/pastes/show/a59c55e61fe75a1643c5bbbe78ec737b here's updateOnce: http://cakephp.org/pastes/show/5dc978b21cd751844e49eb04f516ddc5 here's miniMonth in the Events Controller: http://cakephp.org/pastes

Re: ajax update woes

2006-07-11 Thread joe
thanks for the reply nate, the view (index.thtml for my Posts Controller): -- Bienvenidos El Sistema de Cooperación entre las Fuerzas

Re: file_get_contents()

2006-07-11 Thread John Zimmerman [gmail]
The library that uses the file_get_contents() function on the external URL is not my code, but I can modify the library to use curl I guess and notify the author.I guess what is stumping me here is why it works correctly with a plain linear PHP script, but not in Cake.  Cake causes the server confi

Re: ajax update woes

2006-07-11 Thread nate
Okay, the code you posted above tells me next to nothing. What does the rest of the view look like? What does updateOnce do? Where is miniMonth and what is it being populated with? Is there any relevant controller code? http://cakephp.org/pastes/add --~--~-~--~~~

Re: file_get_contents()

2006-07-11 Thread nate
Using any file functions (file_get_contents, fopen, etc.) against an external URL is considered unsafe in general. Your best bet is to use curl instead. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: ODBC connecting to VFP 6.0 dbf

2006-07-11 Thread nate
http://groups.google.com/group/cake-php/browse_thread/thread/f553decad6aa9fa9 Please refer to the status of the ODBC driver. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: Anyone a runner here? (and a beta tester...)

2006-07-11 Thread tom
I added a day of 'slack' so that shouldn't happen again (although I haven't been able to replicate it exactly) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to c

Re: Subdomains as Controllers

2006-07-11 Thread Darian Anthony Patrick
This looks like a job for Apache's mod_rewrite to me. There is a good tutorial at http://httpd.apache.org in the documentation section for your (target) version of Apache. This info, combined with the app/webroot/.htaccess that ships with CakePHP, should get you going. Good luck, Darian -- Da

Re: Subdomains as Controllers

2006-07-11 Thread joe
would that have something to do with the routes? http://manual.cakephp.org/chapter/4 --~--~-~--~~~---~--~~ 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

Subdomains as Controllers

2006-07-11 Thread Quad4
Hi. I have next "standard" app structure: http://domain.com/controller1/action/ http://domain.com/controller2/action/ http://domain.com/controller3/action/ How I can do next trick with Cake? http://controller1.domain.com/action/ http://controller2.com/action/ http://controller3.com/ Thanx a lot

ajax update woes

2006-07-11 Thread joe
greetings, i have a question. i have a calendar controller that and part of that controller is a "miniMonth" that displays the calenadar as an ajax powered month view placed on my main page. i have created a small javascript function that i use to populate the "calendarDiv" when the page loads.

Re: Scaffolding - in conjunction with display / password protected?

2006-07-11 Thread Stalemate
I can't find docs on beforeScaffold I have included a $scaffold variable in my controller along with my custom routines. I'm debating creating a new model that is the exact same database to handle the scaffolding... however I don't think i'll be actually learning anything if I take that approac

Update notifications

2006-07-11 Thread Geoff
Hi! I was wondering if there is a mailing list for update notifications? i.e. get an email every time there is a new release of cake. I've subscribed to a few of the blogs and I'm guessing it will be announced there but I'd prefer something a little more distinct... Thanks, Geoff --~--~--

RE: requestAction/renderElement

2006-07-11 Thread Kit Marik
Thanks gwoo and AD7six, with information from both of you I managed to figure it out. Much appreciated! --~--~-~--~~~---~--~~ 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

Inserting new records with hasAndBelongsToMany

2006-07-11 Thread StinkyTofu
We are currently building an application using Flash and CakePHP. We have an online form built using Flash, which submits its contents to the system via a CakePHP script. The database consists of the following design: pages: id book_id title template_id template_url page_no images:

Inserting new records with hasAndBelongsToMany

2006-07-11 Thread StinkyTofu
We are currently building an application using Flash and CakePHP. We have an online form built using Flash, which submits its contents to the system via a CakePHP script. The database consists of the following design: pages: id book_id title template_id template_url page_no images:

Re: Calling model functions from View

2006-07-11 Thread KN
Thanx AD.. --~--~-~--~~~---~--~~ 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 o

Re: Calling model functions from View

2006-07-11 Thread AD7six
Hi KN, I would say: Always send the info TO the view :). It's only one possible solution, but you could create a component to get any data you are wanting, include the component in your app controller. in the layout render your TotalSales element and in this way all of your pages would have the

Re: ODBC connecting to VFP 6.0 dbf

2006-07-11 Thread Michael Wai
can anyone help me in this issue? --~--~-~--~~~---~--~~ 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

Calling model functions from View

2006-07-11 Thread KN
Hi, This question is about implementing MVC in Cake. In every example I found that there exists separate view for each and every controller (model). In my site, I have created one element and embed this to the layout. In that element I want to display some calculated values (Eg:- From sales mode

Re: Anyone a runner here? (and a beta tester...)

2006-07-11 Thread Gustavo Carreno
On 7/11/06, tom <[EMAIL PROTECTED]> wrote: > Hmm... perhaps something with the timezone (runs made in the future are > automatically called "Plans." I'll probably change this behavior) The calendar widget is getting the client's time or the server time? You should ask for the user's time-zone in

Re: Separating Models into folders

2006-07-11 Thread StinkyTofu
Perfect! Exactly what we needed. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send emai

Re: Question about CakePHP controller.... I don't get it

2006-07-11 Thread gwoo
Maybe you want to use some elements with requestAction? Also, check the default route which can be used to point to any controller you want. $Route->connect('/', array('controller'=>'myhomepagecontroller', 'action'=>'myhomepageaction')); --~--~-~--~~~---~--~

Re: using one component inside another

2006-07-11 Thread gwoo
did you put var $components = array('Session'); inside of your other component. Check out rdSimpleAuth I do this to gain access to the session object. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" grou

Re: requestAction/renderElement

2006-07-11 Thread gwoo
//in the controller function recentposts() { return $this->Post->findAll(); } //in the element $data = $this->requestAction('/posts/recentposts'); rdBloggery provides some simple examples of this usage. http://cakeforge.org/projects/rdos --~--~-~--~~~---~--~-

Re: using one component inside another

2006-07-11 Thread Langdon Stevenson
Hi Heiner I think that I may have worked it out. I have made up a test component from scratch and everything worked fine. The problem was that the method was being called from a helper using __(). So the code was executing in the wrong context, therefore the Session component wasn't availab

Re: requestAction/renderElement

2006-07-11 Thread AD7six
Ooops typo, should be: renderElement('recent_posts',$params) ?> But the typo doesn't appear in the wiki tutorial ;) Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

Re: requestAction/renderElement

2006-07-11 Thread AD7six
Hi Kit, Try this in your view file, noting the extra param ;) renderElement('recentposts', $data) ?> Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send em