Thanks to the team for all their hard work.
One question I have is what is the easiest way to upgrade to the
latest version. Can I just copy my whole app folder across? Or do I
need to just copy the user files I have created?
Cheers,
Chris
--~--~-~--~~~---~--~~
>
> By "custom" I ment "habit". It is late and custom sounds too much like
> "costumbre" (habit in Spanish)
I think those two words end up having pretty much the same meaning in
your context anyway ; ).
-- Felix
--
http://www.thinkingphp.org
http://www.fg-webdesign.de
Ma
By "custom" I ment "habit". It is late and custom sounds too much like
"costumbre" (habit in Spanish)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your kn
Check to see if on pagination.php there's a new line at the end of ?>
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http:
See this problem continues in cake php i think it's a bug.
after deleting my /tmp/cache/models/
it worked fine even with debug level 0
May be it was caching it.
On Jan 4, 2:11 pm, clemos <[EMAIL PROTECTED]> wrote:
> hi
>
> what URL did return you an error ?
> is your whole app returning errors
Hai,
I'am new to cake php.The statement $this->redirect('users/add'); is
causing a warning to me
"Warning: Cannot modify header information - headers already sent by
(output started at C:\cakephp\app\controllers\components
\pagination.php:1) in C:\cakephp\cake\libs\controller\controller.php
on li
On 2/5/07, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote:
> Also new in 1.2 is the (re-)addition of the CakePHP test suite into the core
> distribution.
Yaay!!! Tests!!
Congratulations on the new arrival ;)
Tarique
--
=
PHP
Is it just me or releasing CakePHP versions on a US holiday is becoming a
custom? ;) When is the next holiday BTW? hehehe...
To Larry, Nate, Gwoo and the rest of the CakePHP team: thanks for all your
hard efforts. I'll check this new version out tomorrow as it is 3.30 am down
here and I occasiona
Hi TT
There was a recent thread in the list on this exact topic, caused by me
going through this same learning process.
Search the group for "caching" and you are sure to find it.
There are solutions to your problem. They may not give you all of the
performance that you want, or may not be a
Hey all! I'm trying out CakePHP for the first time and wanted to try
out scaffold like in Ruby.
I setup the database:
var $default = array('driver' => 'mysql',
'connect' =>
'mysql_connect',
Here in the US, the national holiday of Super Sunday has brought more than
just the Super Bowl. We have two super releases, in CakePHP 1.1.13.4450 and
CakePHP 1.2.0.4451alpha. CakePHP 1.1.13.4450 is a bug fix release for the
latest stable version, while CakePHP 1.2.0.4451alpha moves us closer to a
Sorry about that etiquette thing, it should be: "the rest of the bakers and
myself" :)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE
If the web page you're caching is particular to a logged in user, is there
really a need to cache it?
Take eBay.com: 80% of their web content that is published (according to
their statistics) is handled by cached content. However, those are
semi-static pages, which are not dependent of the logged
Or you could just build a cron job (there's a blog post on how to run
CakePHP controllers from the command line) that checks any DB session
records that are older than X, where X is the session lifetime.
-MI
---
Remember, s
If your web application users would need this functionality there's no need
to throw it out. It is a ten minute coding thing, at the most. Where do you
specifically have problems coding it? Maybe myself and the rest of the
bakers at this group can give you a hand before you decide to drop it out.
On Feb 4, 8:20 pm, "TT" <[EMAIL PROTECTED]> wrote:
> One of the nice features of Cake, is that it offers View-caching. At
> least, that's what I thought, untill I really wanted to use it. It
> turns out your controllers are completely bypassed when you use Cake's
> builtin cache. This has the ef
Do i have to delete session data manually from the cake_session
table ?
i.e. if a user has not logged out properly, the session data will
remain.
Does is depend on the debug level ?
I was just wondering about many existing entries in this table...
Jyrgen
--~--~-~--~~~-
I use SWFUpload.
But you have to hack the core though.
In app/config/bootstrap.php add this:
if (isset($_GET[CAKE_SESSION_COOKIE]))
{
session_name(CAKE_SESSION_COOKIE);
session_id($_GET[CAKE_SESSION_COOKIE]);
}
Now in cake/libs/session.php find this line:
if ($this->_userAgent == $this->r
One of the nice features of Cake, is that it offers View-caching. At
least, that's what I thought, untill I really wanted to use it. It
turns out your controllers are completely bypassed when you use Cake's
builtin cache. This has the effect you cannot use any helpers etc that
are set from your co
I'm using 1.1 unfortunately. Don't want to use unfinished 1.2 for now.
Thank you for the link of Cookie component. Things become much more
sophisticated, maybe I should drop this idea.
On 5 Фев., 01:24, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> Session's lifetime is that of a normal brows
Thank you, I know the logic of this process. Just wanted to know a
Cake's method for this. Turns out that there is not one.
On 5 Фев., 00:44, Kaste <[EMAIL PROTECTED]> wrote:
> > how to make persistent login with Cake's session component? Or should
> > I manually create some cookies for this?
>
>
Hi Lukemack
I have used Othauth successfully, and also dauth with ACL. Both work
fine.
Othauth may be easier to implement in a system like you describe out of
the two options above.
dauth and ACL gives you complete power and flexibility.
Just take your pick. Both are good solutions. I hav
You will want Team HABTM Player (and vice versa) and Player HABTM
Yersey (and vice versa).
The only problem you have at the moment is that the "teams_players"
table should be "players_teams", as the join table should be the two
model names in alphabetical order.
--~--~-~--~~
The only possible problem I can see with your original post is that
you use a backslash in your string. I'm not sure if \C is a reserved
character, but you should always use DS instead of hard coding a
directory separator.
vendor( 'pipesGraphLib' .DS. 'CPlotXYLine' )
--~--~-~--~~--
We develop on Windows XP, with WAMP, and have only needed to change
the mod_rewrite rules to use Apache aliases. When using virtual hosts
to point to our development folders (instead of aliases), no changes
are required.
--~--~-~--~~~---~--~~
You received this me
If the session hasn't been set it is invalid. You can see this on the
cake/libs/controller/components/session.php constructor. If you don't have
AUTO_SESSION defined the session will be inactive (until you build it):
function __construct($base = null) {
if (!defined('AUTO_SESSION') || AUT
thanks..
however, if the session has not yet been set, will $this->Session-
>invalid() return true?
Actually I have 1.1.10 on production. will upgrading to 1.1.12 break
anything?
Anyway, i have plan for upgrading. Just to do it so carefully.
On Feb 5, 4:46 am, "Mariano Iglesias" <[EMAIL PROTECT
morning all,
is there any way to define which fields are returned for associated
models apart from the original definition or using unbindModel and
bindModel?
for example, I have a findAll on products that is returning all manner
of associated models. some of which have substantial data returned
I'm no sure if cake's findAll function accepts arrays in the fields variable:
Try this, using the format Grant Cox suggested:
$this->Gallery->findAll("id = {$id}","Gallery.name,
Gallery.description, Image.filename");
At least in the API , they say 'fields' var must be a string :>
Spark
O
$this->Session->invalid() returns true when the session is not valid, thus
when it has expired. So yes, it is the same.
PS: I see you are using CakePHP 1.1.10. Always try to keep up to the latest
version of your cake trunk (in this case CakePHP 1.1.12)
-MI
--
Greetings
Just want to know if I can check for expired session, something like
$this->Session->expired().
Or is it the same with $this->Session->valid()
Cake version: 1.1.10.3825
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi pkoch52,
welcome to the CakePHP user group. CakePHP is a framework written in PHP
and not a special PHP flavor. This means this group is meant as a place
for support for the framework and not the programming PHP itself which
seems to be what you are looking for.
If you are interested in lea
One of my environments is an Apache2, PHP 5.2 on Windows XP and I haven't to
do a single modification to CakePHP's htaccess files.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smar
i am new to php and just joined your group. i try to run example from
php manual:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1
Unable to relay for [EMAIL PROTECTED] in F:\wamp\www\send_mail.php on
line 9
what is this mean and how to run the script? any help?
thanks
--~--
Here is what I have to do in order to get CakePHP working in my XP/
Apache2 environment.
1) Modify the webroot/.htaccess file to look like this (I added the
line after the first RewriteCond
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [QSA
As you clearly stated, xgettext will look for gettext() function calls while
CakePHP uses __() as the function call.
You can use the option --keyword to change which function calls should
xgettext will look:
$ xgettext --keyword=gettext,__:1 --language=PHP -n *.ctp
In there we're enabling the n
Richard,
Before 1.2.x.x is released stable I will have a CLI script that will
generate the .pot files for an application. I have it working with all the
possible translations functions now but need to refactor it a little more
before I am ready to merge it into the core.
It will work very much li
That did the trick, thanks. I wasn't sure if I should just make
folders willy-nilly.
On Feb 4, 6:19 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 2/4/07, brainPhat <[EMAIL PROTECTED]> wrote:
>
>
>
> > Relatively new to Cake, so I don't know what the problem is. Can
> > anyone tell me w
Hi Mariano
I have done some reading on gettext since your post and wondered if
creating the pot files is possible using 'xgettext' command? since the
strings that need translating in the cake views are not wrapped using
PHP's gettext() function.
I found this useful for anyone else that is resear
Sorry to step in, but how is that response rude? Let's remember that we are
using emails, which means it is very hard to interpret what the other party
is "feeling." So let's always give the benefit of the doubt ;)
-MI
---
> how to make persistent login with Cake's session component? Or should
> I manually create some cookies for this?
"persistent logins" are those "remember me" check-boxes on some forums?
if so, not the session is permanent or persistent, but the user will be
automatically logged-in using the "
> I mean they are updated in
> sequence. But actually they are updated not IN SEQUENCE, but
> SIMULTANEOUSLY. What should I do to get them displayed on the screen
> in sequence? Let's consider that both contents1.php and contents2.php
TWO ajax-request will give you two responses (asynchronous) fr
just trying to be helpful. i'll assume from your rude response that
you won;t be needing any more help.
On 4 Feb, 13:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Afaik cake's sessions are always for a limited amount of time.
> So you will need to write your own system. Using cookies migh
>> btw, what would be 100%/1.0em in the body/root?
>
> The browser default, unless the user overrode that by setting it
> bigger. I found this for reference http://www.maxdesign.com.au/
> presentation/relative.
>
i was maybe falsely presuming that there is only need for
"font-size+-"-buttons _w
CakePHP 1.2 uses gettext for i18n, which places the contents on text files,
as you can read here:
http://ar.php.net/gettext
So if you need your text elements to be on a database (thus allowing your
application to easily modify them) you'll need to implement i18n DB support
by yourself, or better
Session's lifetime is that of a normal browser session, thus can't be used
for persistent logins. You'll need to set up cookies for that.
On CakePHP 1.2 you have a cookie component available. There's a good post
about it here:
http://cakebaker.42dh.com/2007/01/20/lets-eat-cake-and-cookies/
If y
"Cake is freaking out"
That's one for the books ;)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-Mensaje original-
De
hi lukemack,
i read the code, acl.php first, and noticed that it doesn't work as
written in the tutorial,
checked if it's fixed or not in the trunk and was sure it's fixed. i
tried the code and it worked for me. so i wrote here.
i am happy to hear that it works there too ;-)
-Yoshihiro
2007
index.thtml
link('Click', '/sparks/update', array('update' =>
array('first', 'second'))); ?>
div first
div second
update.thtml
div('first'); ?>
divEnd('first'); ?>
div('second'); ?>
divEnd('second'); ?>
Hello! The preceding snippet is an example of multi update, and
works greatly, but in a w
Hi All,
I am using AutocompleteComponent writen from gwoo.
it look like that this component is started every time when the Ajax
Request is called, instead to be active only when AutoComplete request
is called.
This conflicts with other ajax responces, like observeField function
and instead of g
Also, as far as calling a controller from a component, whoever told
you that it was okay to do $this->controller from inside a component
was lying. $controller is not a property of your component object,
nor has it ever been. As of the latest release of Cake 1.2,
components now have two callback
Okay, allow me to clarify a few things: first of all, components are
*never*, under any circumstances, loaded before a the controller,
that's just not how it works. Second of all, ConnectionManager is a
statically-accessible class, not a component, so adding it to your
$components array will do n
Afaik cake's sessions are always for a limited amount of time.
So you will need to write your own system. Using cookies might be the
less bad method,
but i don't recommend persistent sessions at all. (because of the
security issues)
(cake has a cookie component btw)
--~--~-~--~~--
cake's pages controller is meant for static pages.
for dynamic pages, i would create a new controller, along with a
model. Although you could override the pagescontroller to extend it's
functionality offcourse.
And i think the using elements for menus is a good idea, i do it too.
Although you mu
It does sound like this is going to have some draw backs;
- double work load
- lack the automagic that makes cake so sweet
- its to installations of cake to upgrade
- and once completed is either going to require
- administrative procedures of copying files
- a great deal of b
Hmm.. so what? I had read the manual. I don't need database for
storing session.
On 4 Фев., 20:07, "lukemack" <[EMAIL PROTECTED]> wrote:
> >From the manual:
> define('CAKE_SESSION_SAVE', 'php');
>
> In order to use the database session storage, you'll need to create a
> table in your database. T
There is nothing interesting (I think) in logs, in access log I see
89.78.15.40 - - [03/Feb/2007:16:35:23 -0500] "POST /clients/index HTTP/
1.1" 403 273 "http://www.sms.smsmaster.biz/"; "Mozilla/5.0 (Windows; U;
Windows NT 5.1; pl; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
this is my ajax requ
On 2/4/07, brainPhat <[EMAIL PROTECTED]> wrote:
>
> Relatively new to Cake, so I don't know what the problem is. Can
> anyone tell me why I'm getting the following two messages at the top
> of every page in my lame example apps? Let me know if you need more
> info.
You need this folder to be pr
In CakePHP 1.2 the function gettext is implement. You can write in
cake/local/LCMESSAGE/DEU/ in the core.po datei your msgid and
msgstring. Call msgfmt core.po >core.mo. Change in your view the
source (your msgid) like __('msgid') thats all.
http://www.gnu.org/software/gettext/
its realy simple
Ka
Hi,
I'm going to be writing an app which will have a large number of end
users (all with the same permissions on a subset of functionality) and
a small set of CMS users in different groups (say Superusers,
Publishers, Editors) who will have access to the back-end.
I've been looking at cake ACL b
>From the manual:
Cake Session Storage Options
Cake comes preset to save session data in three ways: as temporary
files inside of your Cake installation, using the default PHP
mechanism, or serialized in a database. By default, Cake uses PHP's
default settings. To override this in order to use
Hi,
I would like to create a multi-lingual website with editable content
through a CMS. Will this be possible with release of 1.2?
The stuff I have read places all the text into files opposed to
database tables.
Thanks in advance, Richard
--~--~-~--~~~---~--~~
Relatively new to Cake, so I don't know what the problem is. Can
anyone tell me why I'm getting the following two messages at the top
of every page in my lame example apps? Let me know if you need more
info.
Warning: file_put_contents(C:\apache\Apache2\htdocs\cake\app\tmp\cache
\models\default_
Thanks Mikee
I did some more tinkering and ended up doing something like you
suggested. Cheers for the tip!
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
Thanks Yoshihiro - I'll give that a try.
On 3 Feb, 20:26, "yosha_01" <[EMAIL PROTECTED]> wrote:
> hi, lukemack
>
> I have experienced exactly the same problem on the same tutorial. Try
> replacing a function view() in acl.php with the latest version in
> trunk.
>
> https://trac.cakephp.org/browse
seems to work - thanks for the tip. where did you find out about this?
On 3 Feb, 20:26, "yosha_01" <[EMAIL PROTECTED]> wrote:
> hi, lukemack
>
> I have experienced exactly the same problem on the same tutorial. Try
> replacing a function view() in acl.php with the latest version in
> trunk.
>
> h
hi all,
i have found the small hack for, CakePHP 1.2 ctp file code coloring in
Dreamweaver 8.
step 1: Open the file from "Program Files/Macromedia/Dreamweaver 8/
Configuration/DocumentTypes/DocumentTypes.xml".
setp 2: Find the line [approximatly line # 75],
Hello,
how to make persistent login with Cake's session component? Or should
I manually create some cookies for this?
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gr
68 matches
Mail list logo