Hi everyone,
All help is greatly appreciated.
I am having trouble with my form validation, basically the notEmpty
rule is working perfectly with my username field, but not the password
field. Here is my validation array
var $validate = array(
'username' => array(
'usern
Hi everyone.
What are your CakePHP design (architectural) tips?
--~--~-~--~~~---~--~~
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
To unsubscribe from this
thanks. i have no access to Apache's httpd.conf
there is any way to write the AllowOverride All in the .htaccess or
something else?
thanks
Rohman
On Oct 24, 4:44 pm, "Dr. Loboto" wrote:
> mod_rewrite is not working. Check that it's loaded and you have
> AllowOverride All for your cake install d
I use git not svn but if you set up cake on your path then your app & cake
core are in different locations
then you can checkout (can't recall correct terminology - whatever updates
your copy of cake managed by svn)
and your worries are over
- S
2009/10/24 JeremyL
>
> Can anyone point me to
…is there another solution than this?
function beforeFind($query) {
$this->hasAndBelongsToMany['User']['conditions']['User.expire_account
>'] = date('Y-m-d', time());
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I have two objects, user and seekingprofile, that both habtm
ethnicities. in my app, I save the seeking profile, then go to a new
page, save the user, then attempt to update the seekingprofile to
associate it with the newly created user. the saves work fine, but
the ethnicities I've saved with t
Can anyone point me to a good solid SVN deployment howto for CakePHP
and a live app? Something along the lines of how simple WordpPress
explains it (http://codex.wordpress.org/Installing/
Updating_WordPress_with_Subversion) but of course Cake has some
additional complications since cake is only a
Hey, how can I use a PHP function in a HABTM rule in a model without
getting an escape mistakes?
var $hasAndBelongsToMany = array(
'User' => array(
…
'conditions' => array(
// 'User.expire_account > ' . date("Y-m-d", time()) .
'',
How to save data of two models different in thye same time?
Example: I have a model called "Episode" and another "Link" and
$hasAndBelongsToMany = array('Link');
I want save data for two in the same time. I'm making:
echo $form->input('Episode.title');
echo $form-
I will rephrase a bit.
As I said I have table Playlists and table Songs (this one has it's
own associations with Artists, Albums tables, etc.) that obviously got
HABTM
association (all tables are named properly, according to Cake
conventions).
Now, how do I retrieve all songs, with all the arti
Hi
> Please can you point me again in the right direction?
I have host name switch in 3 places:
* webroot/index.php - to optionally change the location of the cake
libs, http://pastie.org/667873
* config/bootstrap.php - to override core settings such as debug
level, caching on/off etc, http://p
Yes I tried but CakePHP signaled wrong query.. In the end I managed to
move Person datas in the User table so that I removed a level of
relations and was able to order by User.surname.
I think it's a more reasonable DB model.
Thanks for your attention!
On 23 Ott, 19:11, jacmoe wrote:
> Did you
I added the following into my AppModel:
function __construct($id = false, $table = null, $ds = null)
{
if($_SERVER['HTTP_HOST'] == 'xxx' || $_SERVER['HTTP_HOST'] ==
'www.xxx'){
$this->useDbConfig='production';
}
Next time I need something I am going to try baked simple
http://github.com/morrislaptop/baked_simple
On Oct 24, 9:34 am, jacmoe wrote:
> A framework allows you to create applications with ease.
> A CMS is an application - so I really don't see the redundancy. :)
> In fact, since a CMS tends to
Let's say I've got table Playlists and table Songs (this one has it's
own associations with Artists, Albums, etc.) that obvously got HABTM
association (all tables are named properly, according to Cake
conventions).
Now the question (probably it's very dumb, sorry :) I got HABTM
association betwee
> Of course, have behavior that can work with multiple models is better.
which is how cakephp behaviours usually work. Settings are stored with
the model->alias, seems odd that Meio isn't coded like this, is there
a functional reason?
j
--
jon bennett - www.jben.net - blog.jben.net
--~--~
'? BETWEEN Sequence.sequence_ini AND Sequence.sequence_end' => array
(1000)
On Oct 24, 5:43 am, Luciano Hoffmann
wrote:
> how can I compare if a value is between two values in the database ?
>
> Ex:
> In the database I have a table sequences with the fields sequence_ini
> and sequence_end
>
> I
OK - I guess that's why when I used ObserveField, it was ok? I mean I
had used ObserveField individually for the dropdowns before and it
continued working (the views that were loaded in by Ajax repopulated
the select box parameters). Is there any way to keep ObserveForm
working if I am to replace
Can be wrong response. For example, cake debug info in it.
On Oct 24, 11:01 am, hahmadi82 wrote:
> Hi, so I noticed that if I change the type from "json" to "JSON" it prints
> the alert. However, if I try to print data.result in the alert, the alert
> prints "undefined". If I print data, the ale
mod_rewrite is not working. Check that it's loaded and you have
AllowOverride All for your cake install dir.
On Oct 24, 12:00 pm, 浪漫様 wrote:
> dear all,
> i had been using cakephp for long time already and never had that
> problem.
> i have to create a site for a client and they give me a hostin
Thanks for help!!!
I will try it!!
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to
cake-ph
Dear @Zahidur,
to allow any kind of requestAction from within your AppController do
this in the beforeFilter() callback
if (array_key_exists('requested',$this->params)) {
$this->Auth->allow($this->params['action']);
}
this is a quick solution for now. and it works for me with no error.
A framework allows you to create applications with ease.
A CMS is an application - so I really don't see the redundancy. :)
In fact, since a CMS tends to be a larger application, it is one of
the things for which a framework really would make a difference. The
larger the application, the bigger th
Hi all,
I have managed to get RSS feeds working using the tutorial in the book
and a few hints and tips from related tutorials. What I am now trying
to get working are filters for the feeds along the lines of:
http://www.localcause.org.uk/causes.rss?region=7,60&category=39
Using a feed validat
24 matches
Mail list logo