PHP is primarily a web centric language. Once the browser is closed,
there really isn't a way to clear the cookies of a visitor, as there
is no further way to interact with the web site, and thus the server
that runs the PHP code.
If you are thinking more along clearing your OWN cookies after yo
When I have seen others with similar session expiry issues when
serving media files, they've solved the problem with setting security
to low. Although it's not necessarily a proper solution, perhaps it
might lead to a better solution. Have you been able to track down the
reason why there are mul
My 2nd paragraph (after I re-read it) seemed a bit terse. :)
On Sep 3, 10:32 am, brian wrote:
> (why do you feel like a jerk?)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
Hmm, well now I feel like a jerk. Aanyways, for a helpful CakePHP
CLI tool to run through all of your files for whitespace issues, you
might want to take a look at this little snippet (gem) of code that
David Persson has shared with us all. It iterates over the entire
cake app directory stru
ing board (when I get time to
work on it!)!
Thanks again. ;)
On Sep 2, 11:41 am, "Brendon Kozlowski (Realm)"
wrote:
> Thanks, Rick. I was trying to determine if there was an easier way to
> add it, but after talking with some of the developers in their IRC
> chat, I couldn'
When images and/or CSS do not show, it's almost always typically an
issue with mod_rewrite not being enabled either on your server, your
account, or your particular directory that holds the CakePHP app.
If you're unable to understand how to get it working, that's what your
shared hosting support
Thanks, Rick. I was trying to determine if there was an easier way to
add it, but after talking with some of the developers in their IRC
chat, I couldn't think of any as the call to the autoload is
required. I was trying to think of a way to package it all up, such
as in a plugin or something si
I use the following code:
$this->User->saveField('lastlogin', date('Y-m-d H:i:s'));
"lastlogin" is a field in my users table, so adjust your name/table
accordingly.
Also, if your server is not in the same timezone as you are, but you'd
like it to be, you'll probably want to add the following sni
Just as a test, can you set $this->Auth->allow('*') instead of
'display' and see what happens?
On Aug 25, 8:14 am, DavidH wrote:
> Hi All
>
> I'm still trying to put together a login system of admin and normal
> users. It's pretty much working OK; but for some reason I can't fathom
> when a user
owsers
> at once to open yours site again - now alone. Etc, etc.
>
> On Aug 24, 8:56 pm, "Brendon Kozlowski (Realm)"
>
>
>
> wrote:
> > Would a JavaScript/AJAX onunload event (or similar for navigation away
> > from current domain) called to a user/logout a
ake, and
> establish that the server was a feasible culprit.
>
> Thanks *hugely*,
> Chris
>
>
>
> Brendon Kozlowski (Realm) wrote:
> > I've been thinking about this over the weekend, and...to be honest, if
> > it's a server issue (you're testing with
It is an ironic time when developers ask for a way to SLOW the
response time. If the user interaction interface you have chosen is
not the most appropriate, perhaps a different route would be more
desirable, such as flashing the background color once the action
completes, or flashing a "completed
Would a JavaScript/AJAX onunload event (or similar for navigation away
from current domain) called to a user/logout achieve the same result?
On Aug 24, 7:29 am, Junaed Halim wrote:
> Thank you all for your advices. I am gonna apply them in my project.
>
>
>
> On Mon, Aug 24, 2009 at 6:15 PM, Dr.
access to PHP settings - just
> CPanel on a shared hosting platform.
>
> Am I right in suspecting Apache or PHP? If so any ideas where I can
> look? I can't find anything likely by googling filters for either.
> Does Cake automatically use certain PHP filters on all POST an
Have you tried clearing your app/tmp/cache folders to remove that as
being the cause of the issue?
On Aug 20, 4:19 am, "buzachis.a...@gmail.com"
wrote:
> Hey everyone.
>
> I have 2 models: User (hasOne) Character (belongsTo) User.
>
> Everything works great on my laptop. When I move it to a serv
If you were to search these google groups prior to posting, you
*probably* would have found the answer. Scaffolding is typically a
means for quick non-production deployment so that there is something
to show your boss/stakeholders with regard to skeleton-level
interaction and navigation. Once a
See your other question:
http://groups.google.com/group/cake-php/browse_thread/thread/6decf0c24f7a6805?hl=en
Please don't ask the same question multiple times.
On Aug 20, 12:20 am, jeremy wrote:
> hai guys,
>
> i am looking for tutorials on using cakephp with jquery
> to implement
Here is an example -
http://www.ajaxlines.com/ajax/stuff/article/cakephp_form_validation_with_ajax_using_jquery.php
Note: I have not personally tested this code, it is only something to
hopefully get you started in the right direction.
On Aug 20, 12:23 am, jeremy wrote:
> am able to do the cli
If for some reason the $this variable isn't populated or doesn't exist
(which as Martin said, you are in trouble if this is the case),
print_r won't do anything. Try setting debug to 1 (or 2)...does the
app show anything without print_r($this)?
On Aug 19, 12:38 pm, Martin Westin wrote:
> That s
You wouldn't set an auto-login, you simply would not deny access to
whatever action(s) you wish them to have access to.
On Aug 19, 12:48 am, "Marojahan M.T. Sigiro"
wrote:
> with Auth.. what should i do to create auto login mechanism for certain user
> (e.g. guest)
>
> anybody has an idea? since
Why not simply use Google Calendar in your site itself?
http://simplepie.org/wiki/plugins/start
http://bakery.cakephp.org/articles/view/icalendar-event-generator
* http://britg.com/2008/07/07/using-the-zend-framework-in-cakephp/
<--- probably the most useful
http://www.hotscripts.com/listing/inte
I like archF6's suggestion, it's easy to test, and if it doesn't solve
it, continue from there. It might work, it might not. I don't think
a 500 server error would automatically redirect (but instead stop
execution). Regardless, it's about a 20 second test. With Dreamhost
I can enable/disable
The Session Helper and Component are wrapper classes that allow you to
access values stored in PHP's $_SESSION superglobal. You can access
anything in it from the Helper and Component just as easily as the
superglobal as well.
On Aug 16, 6:26 am, Fabs wrote:
> Ahh, I see cakePHP doesn't seem to
If AD7six says not to upgrade a Cake 1.1 app to Cake 1.2, then I
apologize. I didn't think there'd be that many upgrade changes from
1.1 to 1.2 (my memory must be getting bad - oops).
Anyway, as far as baking from a different table, I did not mean to
create an entirely different app. You can si
Just in case there's some confusion in what you're asking, I'll just
link you to a bakery article that describes how to create admin-style
routing, as well as a link to the Cookbook on prefix routing (and how
to set it up in your controllers) by ADmad in the comments
http://bakery.cakephp.org/arti
The most common cause is that mod_rewrite is not enabled. Make sure
mod_rewrite is enabled, restart the server, and try again.
On Aug 14, 1:59 am, srini vasan wrote:
> hi,
> i have downloaded cakephp stable version.
> I have just typedhttp://localhost/cakephpin my browser.
> but css fi
This inspired me to fix my Crimson Editor's syntax highlighting.
To get Crimson Editor to use the proper PHP syntax highlighting for
CTP (or THTML files for those lagging behind), go to your Program Files
\Crimson Editor folder. Open up the "link" folder. Copy/paste the
extension.php file, rena
Wow wow wow. This question has quickly become about 8 separate
questions, none of which still seem to directly pertain to the
original. ;) Your NOTICE, WARNING, and DEPRECATED error messages are
PHP-related, due to the settings in php.ini. I thought CakePHP
usually overrides that setting, but
teknoid posted an article about his method of doing it. Either way
should work just fine; Martin's might be a little easier to manage.
http://teknoid.wordpress.com/2008/10/08/demystifying-auth-features-in-cakephp-12/
On Aug 14, 2:50 am, Martin Westin wrote:
> When do you do this validation?
> S
My first thought, is "would it be possible to upgrade to CakePHP
v1.2.4 to possibly remove any lingering effects of an older code
base?" My second thought is, "If upgrading is out of the question,
did you try 'baking' a very simple MVC based on a test table in your
DB that you can attempt to dupl
That actually has recently been added (clarified) to the cookbook
documentation.
http://book.cakephp.org/revisions/view/9876/Automagic-Form-Elements
"Besides the specific input options found below you can specify any
html attribute (for instance onfocus). For more information on
$options and $htm
There are two suggestions:
Write a patch and test case to prove there's a limitation with the
validation, and give back to the CakePHP project with your own code,
or...
Write a custom validation (http://book.cakephp.org/view/150/Custom-
Validation-Rules) to handle your email fields the way you'd
@GravyFace: It only matters in that it was not what the original
question had specifically asked for. Since they mentioned
"official" (specifically), I'd imagine they were probably searching
for a CakePHP forum from the official CakePHP website and was unable
to find one - because there is none.
Although the Google Group's archival and search functionality cannot
be rivaled, and categories may not be necessary, they are still very
helpful from a user interface/experience perspective. Simple users
don't use a search feature in forums either, but can more easily
(imho) browse current topic
I believe gwoo has created a Workbench -> Cake model script
somewhere...IIRC the code for it is in the CakeBin.
http://bin.cakephp.org/saved/45105
Found from:
http://groups.google.com/group/cake-php/browse_thread/thread/a94d882f105753dc?hide_quotes=no
On Jul 8, 8:57 pm, Mike Bates wrote:
> I us
I've actually completed most of the work in an Mcrypt Behavior. I
need to finish up a few things and get automatic decryption working
for related models. You're more than welcome to see my code if you'd
like (I intend to share it on the Bakery when I'm sure it's as close
to done as I can get it)
By "Cake Blog Tutorial", do you mean the one from the book?
http://book.cakephp.org/view/219/Blog ??
On Jul 8, 5:02 am, "Krishnan. N" wrote:
> Hi,
>
> Thanks! that worked just fine -- this is the 'cake blog tutorial'
> from cake PHP itself.
>
> Is the tags.ini.php also gone? Didn't see
http://book.cakephp.org/view/789/Modify-default-HTML-produced-by-baked-templates
:)
On Jul 6, 1:44 pm, MikeBates wrote:
> Does anyone know what I need to edit in the console code to modify the
> default code that bake renders? As good as bake is I still find that I need
> to spend a lot of time g
You'd probably want to take a look at CounterCache in the book; this
would require a modification (an additional field) to your
maincategories table, and a little bit of code, but would ultimately
be quicker than a separate query. Another suggestion would be to look
at find('count') if you don't
Think Google Maps. When you double click on an area in the map to
zoom, it needs to know the coordinates on where to zoom.
Before all this AJAX goodness, Mapquest did something similar, but
required you to reload the entire page - it used this technique.
On Jun 25, 6:42 pm, Kyle Decot wrote:
>
Might want to take a look at http://heroku.com/ to see how they
marketed and built their comparable product.
On Jun 25, 10:23 am, powtac wrote:
> Removed test.php and rerouted /pages/home.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
if($this->RequestHandler->isRss()){
$this->Auth->allow('index');
}else{
$this->Auth->allow( array( 'home', 'logout', 'contact',
'register', 'confirm', 'forgot_password' ));
}
On Jun 24, 2:38 pm, tcornett wrote:
> I currently have my beforeFilter() function in my AppController set
These links should contain all the reading material needed to solve
your problem:
http://book.cakephp.org/view/73/Retrieving-Your-Data
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html
(assuming you're using MySQL)
http://teknoid.wordpress.com/2008/09/29/dealing-with-calculated-f
That would depend on how you stored your users' country info. There
are plenty of sites out there that give data on which timezone a
country is in, there may even be some APIs. Using that data, you can
compare the users' country info to determine the proper datetime of
the user, and then either
en at least
> > one Behavior that got around that by running through its Model's
> > associations and, for those that implemented the same Behavior, did
> > its thing (whatever it was).
>
> > I've no idea how much of a performance hit that would incur, though.
>
7;s
> associations and, for those that implemented the same Behavior, did
> its thing (whatever it was).
>
> I've no idea how much of a performance hit that would incur, though.
>
> On Tue, Jun 16, 2009 at 11:09 PM, Brendon Kozlowski
>
> (Realm) wrote:
>
> > Th
That's what I was hoping too. Unfortunately that didn't seem to be the
case.
I did a users/posts/comments example site to test functionality.
User's email address was encrypted in the DB, and when viewing the
index page, it was decrypted (working for user model). Post's title
was encrypted (just
47 matches
Mail list logo