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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--~--~---
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
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
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
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
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
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
thanks for the reply nate,
the view (index.thtml for my Posts Controller):
--
Bienvenidos
El Sistema de Cooperación entre las Fuerzas
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
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
--~--~-~--~~~
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
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,
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
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
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
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
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.
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
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
--~--~--
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
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:
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:
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
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
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
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
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
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
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'));
--~--~-~--~~~---~--~
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
//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
--~--~-~--~~~---~--~-
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
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
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
55 matches
Mail list logo