Hi,
what's the name of your session cookie?
I had a similar problem with a session cookie name "foo.bar".
When I renamed it to "foo_bar" everything worked fine.
alex_c schrieb:
> Hi all,
>
> I've been pouring over the docs and this group, but I can't really
> figure it out.
>
> In my UsersCont
Hi all,
I've been pouring over the docs and this group, but I can't really
figure it out.
In my UsersController, I've included
var $components = array('Auth');
function beforeFilter()
{
$this->Auth->allow('register', 'show'
Another wild guess (I'm pretty new to CakePHP):
Do you have beforeFilters in your controllers, and if so, are they
calling parent::beforeFilter()?
On Sep 26, 9:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi Martin,
> Thanks for that, didn't work though :(
>
> On Sep 26, 1:39 pm, "[EM
The book is really coming along nicely and always my first stop
nowadays, when I need to check on something and definitely makes it
easier for new cakePHP developers as well now.
Plus it's nice to see its ongoing additions and revisions of its
content.
Another great resource, which often seems to
CakePHP is easy to learn compared to other frameworks. But without good
documentation, any framework seems hard.
Good documentation was the only missing to CakePHP.
Now, the community finally has all the resources to learn CakePHP fast and
easy.
The work of AD7six and all contributors was impressi
Hi lemp,
This page might help.
http://www.formation-cakephp.com/41/multilingue-18n-l10n
It helped me to create internationalised pages.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to th
Hi all,
I have just started getting into internationalization for CakePHP and
I was wondering if there is a way to structure the po files inside
locale so that it is more visually easier to find and edit for other
people who aren't programmers.
Currently I am working with someone who isn't a pro
I don't know what exactly you want to achieve , but it is best that
you read over the manuals on
how to make paginations work.
http://book.cakephp.org/view/164/Pagination
On Sep 27, 2:04 am, "Eric C. Weaver" <[EMAIL PROTECTED]> wrote:
> In one model's (controller's) index action, I'd like to fe
> Problem solving used to be 1.the group, 2, the api, 3, google
> Recently I find myself more and more going 1. the book, 2. the group,
> 3. google 4. api
You forgot about the friendly IRC channel ;)
But seriously the book has become a fantastic resource. Never again
people should complain about
Here here!
I think the book is a fantastic resource.
- Original Message -
From: <[EMAIL PROTECTED]>
To: "CakePHP"
Sent: Friday, September 26, 2008 9:31 AM
Subject: Praise the good book!
>
> No, not that one.
>
> I just thought that AD7six and anyone helping him out on the new
> manua
In one model's (controller's) index action, I'd like to fetch an
additional column to tell whether the timestamp field is recent.
What I'd like to be able to do (and tried unsuccessfully) would be
something like
$this->paginate['fields'] = array('Model.*', "(ts > current_timestamp
- interval '4 h
Hi, i haven't checked this code, but as far as i remember
function beforeFilter() {
if (!isset($this->params[Configure::read('Routing.admin')])) {
$this->Auth->allowedActions = array('*');
}
On Sat, Sep 27, 2008 at 1:58 AM, ORCC <[EMAIL PROTECTED]> wrote:
>
> I'm
Hey there Gabe,
I think I would try to drop in a form for whatever model I was trying to
create in the view I wanted to create it in. Then handle the data in that
view's controller. You should be able to hand off $this->data to any model
you want and have it save properly... as long as you fol
For 1) I'm not sure if we should be doing that either but I know I'm doing
it for the same reason you are... :-)
- Original Message -
From: "BeanDog" <[EMAIL PROTECTED]>
To: "CakePHP"
Sent: Thursday, September 25, 2008 7:33 PM
Subject: Auth component - enforcing password strength and p
Nacho, if you're asking if you can perform any arbitrary query via the
query() method, the answer is yes.
Alex, I found it tricky to get my head around the seemingly complex
array structure in Cake at first, but it all makes sense.
- You need related model titles as keys to the array to ensure t
I'm using Auth component to manage an admin panel. I use admin route
for all function in admin panel. In order to allow all other actions
without login, I add them in beforeFilter method. For instance:
function beforeFilter() {
parent::beforeFilter(); //Controller general initialization
Sounds like what you are looking for is elements.
Please refer to the manual on how to use them.
On Sep 26, 3:26 am, deepesh <[EMAIL PROTECTED]> wrote:
> Hi I am a newbie in Cake.
>
> I wan to know if we can load more than one view in a single view .
>
> To be elaborate more lets take an example
So.. can you "query" an unrelated model from any model with the query
model?
On Sep 26, 11:01 am, alex_c <[EMAIL PROTECTED]> wrote:
> Thanks, that is extremely helpful, and makes a lot of sense!
>
> >Querying "pictures AS
> > Picture" will take you one step towards what is returned from Cake's
>
In my app, I have some database tables with language specific fields.
For example: name_fr, name_en
I want to set the displayField property of my model to use the proper
field according to the language selected by the user.
Is there a way to set this property globally (in the model) without
hav
> I uploaded my cake, vendors & app folders directly to my online host
> server but i keep getting this error message
>
> "Fatal error: Class 'Configure' not found in /home/content/c/h/u/
> chuksofili1/html/smartsms.com/config/core.php on line 43"
did you upload the .htaccess files?
jon
--
jo
Hi all. The issue I'm having may be with routers, or it could be with
my lack of knowledge.
I'm using 1.2
I have two controllers: Vips and Exhibitors
Exhibitors has action admin(), Vips has crud actions.
Using elements and passing arguments to the function, visiting root/
exhibitors/admin/vips
You use it the way you have it and just change the section in the add
function to redirect . . .
-> $this->redirect(array('action'=>'view'));
Every function should have a related view file unless you state
otherwise with a layout call.
if your action is "add" then you have to have an add functi
Or just...
echo $html->link("Admin", array("controller" => "users", "action"
=>"accnt", "admin" => true));
Cheers,
mbavio
On Sep 26, 12:19 pm, "Gabriel Kolbe" <[EMAIL PROTECTED]> wrote:
> S'ok, found the answer..
>
> echo $html->link('Admin Area', '/admin/users/accnt');
>
> On Fri, Sep 26, 2008
Hari,
I would like to use validation with 1.2. I need something like
alpanumeric, but it seems it does not accept non latin characters. I
need it for a hungarian site, so I use utf-8. I searched the net, but
did not find any useful information how to use validation with
multibyte characters.
Any
anybody help?
On Sep 25, 2:33 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi there,
>
> Is there any way to achieve the following function (using SMTP) ?
>
> 1. There are two people A and B I want to send email.
> 2. When A receive the email, the email looks like "From [Me], To
> A "
This issue was resolved after use another SMTP server
On Sep 26, 6:44 am, nachopitt <[EMAIL PROTECTED]> wrote:
> I dont know a workaround for this problem. It is a server side issue.
>
> On Sep 25, 10:36 pm, Musa <[EMAIL PROTECTED]> wrote:
>
> > is there any way not to add gmail account address??
Thanks, that is extremely helpful, and makes a lot of sense!
>Querying "pictures AS
> Picture" will take you one step towards what is returned from Cake's
> find-methods
That helps a lot. I guess I had assumed that since I was using $this-
>Picture->query, Cake was aware that the model should b
S'ok, found the answer..
echo $html->link('Admin Area', '/admin/users/accnt');
On Fri, Sep 26, 2008 at 4:14 PM, gabriel <[EMAIL PROTECTED]> wrote:
>
> Hi, I have to functions in the user_controller.
> One is admin_accnt, the other is accnt.
> How do I link to the admin_accnt ?
> My link
> ech
Hi, I have to functions in the user_controller.
One is admin_accnt, the other is accnt.
How do I link to the admin_accnt ?
My link
echo $html->link("Admin", array("controller" => "users", "action" =>
"admin_accnt"));
IF I just do
echo $html->link("Admin", array("controller" => "users", "action" =
This gives me an "unexpected T_VARIABLE" error on the line with $this-
>Auth->autoRedirect = FALSE;
I think the algorithm might be right, but the syntax is wrong.
On Sep 17, 12:20 pm, "Okto Silaban" <[EMAIL PROTECTED]> wrote:
> I'm not really sure, but I think :
> $this->Auth->loginRedirect
>
>
Hi, does anyone know how I can add (like a favourite to a db table)
without going to the add view?
I have a link
testsite/user_favourites/add/2
IF I click on it it, it takes me to the add view (which has a model
and controller)
I DON'T want to go to the add view, but the 'view' view which shows
Hi,
Is it possible to add a collation clause in a order clause of
paginate() ?
I've tried those different solutions, but no success:
// tags_controller.php
public function admin_index() {
$this->Tag->recursive = 0;
$this->paginate = array('order' => 'name COLLATE 'utf8_unicode_ci'
ASC');
$t
http://downforeveryoneorjustme.com/cakephp.org just you
--
(the old fart) the advice is free, the lack of crankiness will cost you
- its a fine line between a real question and an idiot
http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pa
or store the id in the session?
On Sep 26, 12:17 pm, Daniel Süpke <[EMAIL PROTECTED]> wrote:
> Thank you very much, I'll have a look at that!
>
> Best Regards,
> Daniel Süpke
>
> [EMAIL PROTECTED] wrote:
>
> > I haven't done exactly that but I think you could set all urls and
> > links using the
The Model is quite a bit different in CakePHP compared to Rails.
Since all data is returned as an array structure (and not objects) it
is "dead" data and not "live" objects. It has to be laid out for you
in advance.
query vs. find
query is pretty much a wrapper for straight SQL queries. Since you
Thanks, i will ask the server admin to restart it and hopefully it
will work. I'll post after the restart is done.
On Sep 26, 5:00 pm, RichardAtHome <[EMAIL PROTECTED]> wrote:
> Just come across this when I renamed my web root folder.
>
> I think this is to do with me using APC and isn't a CakePH
For me the difference between Configure::write() and define() comes
down to mutability. If you need to change a value at run time then
use Configure::write(). If in fact your value is a constant and will
never change during script execution, then use define. It is
semantically more correct, fas
or... redirect to another page (a thank you page perhaps presuming
this is a contact form) after you have sent the mail.
On Sep 26, 8:42 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Looking at some of the web-mail apps I use many seem to handle this
> using a combination of very clear vi
Just come across this when I renamed my web root folder.
I think this is to do with me using APC and isn't a CakePHP issue (now
that you have deleted the cache).
Restart Apache. This will clear the APC cache.
On Sep 26, 2:17 pm, Eemerge <[EMAIL PROTECTED]> wrote:
> just cleared them, same thing
I dont know a workaround for this problem. It is a server side issue.
On Sep 25, 10:36 pm, Musa <[EMAIL PROTECTED]> wrote:
> is there any way not to add gmail account address???
>
> Musa
>
> On Fri, Sep 26, 2008 at 9:22 AM, nachopitt <[EMAIL PROTECTED]> wrote:
>
> > Thats correct. Gmail replaces
I uploaded my cake, vendors & app folders directly to my online host
server but i keep getting this error message
"Fatal error: Class 'Configure' not found in /home/content/c/h/u/
chuksofili1/html/smartsms.com/config/core.php on line 43"
What do i do?
--~--~-~--~~~--
Hi I am a newbie in Cake.
I wan to know if we can load more than one view in a single view .
To be elaborate more lets take an example of Code Igniter
in a view we can call
$this->load->view('view2'); // in a certain portion say in a row
$this->load->view('view3');/// in other row the the tabl
Hi Friends,
I am a fresher to Cake PHP. Now I am doing a shopping cart site
using cakephp.
I have an order table, an order details table and a product table. In
order details table I am storing the order.id and, product.id. When I
am listing the orders, I am getting the order table data and or
Thanks, I'll check into that.
On Sep 25, 11:54 am, teknoid <[EMAIL PROTECTED]> wrote:
> CakePHP does not build JOINs for hasMany
>
> You can use containable behavior to pass conditions to related models.
>
> p.s. There is a trick to force cake to build JOINs, but you should
> investigate contain
is there any way not to add gmail account address???
Musa
On Fri, Sep 26, 2008 at 9:22 AM, nachopitt <[EMAIL PROTECTED]> wrote:
>
> Thats correct. Gmail replaces the From field with the account address
> the SMTP mail server is using for authentication.
>
> On Sep 25, 4:23 pm, "[EMAIL PROTECTED]
Can we add a separate query in the array to not be in?
'not' => array('Model.field' => array( $this->Model-
>find('all', ..)))
will multiple querys work and still associate with the current record
in the find?
example: if i want to display all users who like the color blue, and
therefore are n
I checked out containable behavior more, and it seems effective for
some tasks, but I'm trying to reduce the records I receive, not the
information within those records. I want to limit, not find, otherwise
omit records that are found in a query based on a hasMany
relationship.
for example, in th
I've figured out a pretty clean way to make a user registration form
that validates a password confirmation and password strength, without
extending the Auth component or any other trickery.
I wanted some feedback. First, should I be using value=>'' on the
password and password2 form elements?
Hi all,
I am new to CakePHP. I've used both PHP (with no frameworks) and Ruby
on Rails in the past, and decided that learning a PHP framework might
make PHP projects a lot more pleasant. I chose CakePHP because I'm
familiar with Rails - so far it's great, but I do have to wrap my head
around th
Hi Martin,
Thanks for that, didn't work though :(
On Sep 26, 1:39 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Bit of a wild guess:
> $this->Auth->allow(); // will allow the current request.
> It is the only idea I get from seeing your beforeFilter.
> I have never tried allow('*') and sin
No, not that one.
I just thought that AD7six and anyone helping him out on the new
manual (book.cakephp.org) deserves a wam standing ovation for his/
their work. The same goes for anyone contributing to the content of
the book.
Thank you all!
Not only is the content of the book really starting
Hi,
I'm experimenting with the cipher behavior:
http://bakery.cakephp.org/articles/view/cipher-behavior
Unfortunately I keep getting the following error and can't seem to
figure out how to debug the script myself:
Warning: Call-time pass-by-reference has been deprecated; If you would
like to pa
Hi Guys,
I have one problem pls help.
i have 3 tables users,roles,users_roles and thier models are
(User,Role,UsersRole)
a user has and belongs to many roles for that i have done intersecting
the other models in user model(user.php) in this way.
var $hasAndBelongsToMany = array(
'Role'
Hi Kanten,
You are running this on an version of PHP where you are no longer
supposed to define pass_by_reference in functions like before. LIke
the error said you can allow it in php.ini or fix the behaviour. From
a quick glance I'd say you could safely remove them since decrypt() is
defined to a
just cleared them, same thing. still not working. I read somewhere i
should define the CAKE_INCLUDE_PATH (or something like this)
manually... to what should it point? what path?
On Sep 26, 2:02 pm, grigri <[EMAIL PROTECTED]> wrote:
> Have you tried emptying the cache files? If the directory names
On Fri, Sep 26, 2008 at 3:21 PM, . <[EMAIL PROTECTED]> wrote:
> how would i delete 2 (or more) rows in one statement knowing the id of the
> rows i want to delete?
>
> let's say i want to delete id 1 and 2:
>
> $this->Model->deleteAll('id'=>array(1,2))
Should work... try it out and let us know
Thanks for your reply.
In practical example where you want to define number of hours you want
your gallery pictures to be on voting what would you use?
By the way is it okay to use define(); in bootstrap?
Thanks
On Sep 26, 12:09 pm, grigri <[EMAIL PROTECTED]> wrote:
> Benefits of using Configu
Hello,
I would like some help with the following error:
Warning: require(cake/bootstrap.php) [function.require]: failed to
open stream: No such file or directory in /home/mainfram/public_html/
shoplog/app/webroot/index.php on line 79
Fatal error: require() [function.require]: Failed opening req
If you really want a single folder and can live with the exposed view-
files, then a simple symlink should get you there. That is, if you
deploy on a server where you are allowed to create symlinks.
On Sep 26, 11:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On 26 Sep., 10:21, "Dr. Ta
Bit of a wild guess:
$this->Auth->allow(); // will allow the current request.
It is the only idea I get from seeing your beforeFilter.
I have never tried allow('*') and since Auth can be a little picky
about settings you never know, right?
On Sep 26, 12:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECT
just cleared them, same thing. still not working. I read somewhere i
should define the CAKE_INCLUDE_PATH (or something like this)
manually... to what should it point? what path?
On Sep 26, 2:02 pm, grigri <[EMAIL PROTECTED]> wrote:
> Have you tried emptying the cache files? If the directory names
Thank you very much, I'll have a look at that!
Best Regards,
Daniel Süpke
[EMAIL PROTECTED] wrote:
>
> I haven't done exactly that but I think you could set all urls and
> links using the array notation. The array could then also be pre-
> populated with the parameter you want to keep in each r
Hi all,
suppose I have two tables employees and accreditations and a join
table employees_accreditations.
employees_accreditations table consists of the following fields.
1.accreditation_id
2. employee_id
3.certification_number
4.issue_date
5. expiry_date
while adding following things happen:
Have you tried emptying the cache files? If the directory names have
changed since cake's cache was built then this is what would happen.
On Sep 26, 11:27 am, Eemerge <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I would like some help with the following error:
>
> Warning: require(cake/bootstrap.php)
Benefits of using Configure:
* No collisions with other php scripts.
* Can be changed at runtime
* Easy to organize, list, group and persist related settings
Benefits of using php constants:
* Less verbose
* More efficient
On Sep 26, 10:53 am, luigi7up <[EMAIL PROTECTED]> wrote:
> Hello everyo
Hi all,
I've setup the Auth component in the beforeFilter() method of
app_controller.php. Even though I've set it to allow all, it redirects
to the login page for every URL. When I echo and die, it seems to be
redirecting in the Auth component startup() function, before it even
gets to the beforeF
El 26/09/2008, a las 11:53, luigi7up escribió:
> As I understood old method define(); is much better because it uses
> php native way to define constants and latter on to use that constant
> you just call it like this: _CONSTANT_NAME.
Configure is not intended for define constants. It's a fle
$list = array(1,2,4,643,6,43);
foreach($list as $item) {
$this->Model->del($item);
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
T
Hello everyone...
I'm little confused with defining constants in Cake.
I have a gallery of pictures that are on voting for _NUMBER_OF_HOURS
constant. In my old application that was written in pure PHP and not
Cake I had constants.php file where, all constants were defined like
this:
define('name
Looking at some of the web-mail apps I use many seem to handle this
using a combination of very clear visual indicators, disabling of
submit-buttons and sending with ajax.
Ajax also help prevent back-button accidents which is nice.
On Sep 26, 7:45 am, rocket <[EMAIL PROTECTED]> wrote:
> mktime..
how would i delete 2 (or more) rows in one statement knowing the id of the
rows i want to delete?
let's say i want to delete id 1 and 2:
$this->Model->deleteAll('id'=>array(1,2))
?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On 26 Sep., 10:21, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> Ah! I guess you missed the point that any theme in CakePHP has two components
>
> The first is the themed views found under /views/themed/themename and
> the second component is webroot items for the said theme like css, js
> and i
Are you hosting locally or with a web host?
as some hosting providers turn transaction support off, so that can
cram on more users per server.
On 25 Sep, 18:53, trustfundbaby <[EMAIL PROTECTED]> wrote:
> just took a look and the tables were already in innodb
>
> On Sep 23, 10:05 am, teknoid <[EM
Not down here
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of .
Sent: 26. september 2008 10:41
To: Cake PHP
Subject: site down?
is it just me or is the cakephp.org (as well as dreamhost.com and other sites)
down right now
--~--~-~--~~~
is it just me or is the cakephp.org (as well as dreamhost.com and other
sites) down right now
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups
On Fri, Sep 26, 2008 at 1:34 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Do you have an example? I can hardly imagine this, as the view/theme
> directories are not in the webserver document root and therefore
> cannot directly deliver the image.
Ah! I guess you missed the point that any th
On Sep 26, 8:50 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 26, 2008 at 3:39 AM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
> > With the current theme-sctructure in Cake, I have a problem on how to
> > deal "files". CSS and JS could be handled somehow, I guess, but what
>
I haven't done exactly that but I think you could set all urls and
links using the array notation. The array could then also be pre-
populated with the parameter you want to keep in each request. (Pre-
populated in some central place like AppController::beforeFilter
before any links are generated
Here's a shameless plug of mine:
http://dsi.vozibrale.com/articles/view/simple-db-based-configuration-for-cakephp-apps
The idea can be extended further. You can see how this works in my CMS
project (same site). In fact, it's improved a bit in the project, the
settings query is cached. I suppose
79 matches
Mail list logo