Hi,
I've baked models, controllers, and views for 2 tables that have a
hasAndBelongsToMany relationship to each other.
The models are Item and Category, and the categories_items table
exists with id, category_id, and item_id columns.
However if I add or edit an item, for example, the multi-select
Hello,
I am building a site using cake and smarty. There seems to be a
problem with my CSS though. All of the individual pages dont seem to
be getting the CSS I wrote applied to them. In Safari and Google
Chrome the site looks good and comes out the way I want.. But in
firefox nothing seems to be
no. i'm just manipulating the the url as a string and replacing it with the
users selected city. Here's my code.I know the code is bad. but i'm thinking
of a way to overcome it.
$id = $this->params['url']['city'];
$this->Category->Post->City->id = $id;
$this->data = $this
Hi,
There are a number of posts kicking around with this error when trying
to use scripaculous libraries. The docs say that you just need to
include prototype and scriptaculous
1. echo $javascript->link('prototype');
2. echo $javascript->link('scriptaculous');
but this gives an error when
Is an action or some kind of "general utility" method?. In this case,
I prefer to write a Component or even add it to the AppContoller.
El 17/07/2009, a las 21:00, Amit escribió:
>
> Hi, quick question.
>
> How do I access methods of one controller into another controller??
> (other than using
Hey!
I just set up a part of an existing cake app to another site (the
client
wanted to be able to use it on another site). Unfortunately, cake
seems
to run pretty slow.
Cake is installed in an sub dir (www.domain.com/cakeapp/).
---
After copying the database data to the other's server database
Hi all,
I'm new in cake, and I've been experiencing some problems with composed
plural in cakephp 1.2 (the last stable release)
e.g.:
DataComemorativa
should be
DatasComemorativas..
Datas Comemorativas in Portuguese means Special Dates (or something like
that).
The matter is: I can't make cakeP
I am working on a user profile type view/controller action. On the
pages, there will be an Activity Feed area, which displays facebook-
style recent user activities. Each activity can be commented on. The
commenting is all handled via AJAX, and I've got add/edit/delete stuff
working nicely. The ne
Hi, quick question.
How do I access methods of one controller into another controller??
(other than using requestAction).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, sen
How are you creating the links? With HtrmlHelper?
On Fri, Jul 17, 2009 at 1:10 PM, Isaac Raja wrote:
> any ideas?
>
> On Fri, Jul 17, 2009 at 6:26 AM, Isaac Raja wrote:
>>
>> Hi all,
>>
>> I'm developing a web application, in which the when the user adds a
>> filter, it is appended to the url,
Club hasMany users sounds a bit less illogical.. but yeah, user belongsTo
club
2009/7/16 Piotr Kilczuk
>
> Hello,
>
> > Now I have a problem with the hasOne association.
> > Users have a favorite club (favclub) which is a foreign key to the
> > Clubs (contains id and name) table. How do I code t
Aargh...name conventions, still not used to it. Thanks for the heads up,
knew it had to be something obvoius. It always is ;))
Now it works like a charm.
--
Zoran Kovac
091/ 588 6175
V.Gorica
On Fri, Jul 17, 2009 at 9:53 AM, Carlos Lavin wrote:
> Tables are supposed to be plural (users,groups
Merely a wrapper for find... more documentation about it on:
http://api.cakephp.org/class/model
2009/7/16 fedekun
>
> Thanks! Hmm is there a way to do that on read instead of find?
> I have... $this->Post->read(null, $id);
> I cant find documentationfor read method though..i just find about
> "f
Hi Dhileepen,
I don't think you'll need to build your own query to validate.
function validateLogin($data)
{
$user = $this->find(array('username' => $data['username'],
'password' => $data['password']), array('id', 'username'));
if(empty($user) == false)
return $us
I personally validate data before save and output it on pages through h
() function. That's all. No modification of user data. With such
approach I do not see use for Sanitize::clean() at all.
On Jul 17, 6:34 pm, Bs wrote:
> Hi,
>
> I'm using Sanitize::clean to sanitize my user data on a registr
Thanks for the link.
On Fri, Jul 17, 2009 at 9:27 PM, Nate Abele wrote:
>
> It's hardly secret. ;-)
>
> http://github.com/predominant/CakeFest-Berlin-2009-Workshop/
>
> On Jul 17, 11:10 am, Isaac Raja wrote:
> > Hi,
> >
> > Anybody know where can i find the source of the application that nate
>
any ideas?
On Fri, Jul 17, 2009 at 6:26 AM, Isaac Raja wrote:
> Hi all,
>
> I'm developing a web application, in which the when the user adds a
> filter, it is appended to the url, for example
>
>
>
> http://www.classifieds.my/categories/list_post/category_name/price:245/title:something/keywor
Hi mark, thank you.
Isaac
>
--~--~-~--~~~---~--~~
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-php+u
Or you could do it with javascript... sending a server request(+ the
framework's overhead) just to empty your fields is plain lazy programming
2009/7/17 John Andersen
>
> For the solution to do the clearing in the controller!
>
> Change the buttons to:
>
> echo $form->submit('Clear', array('name
Tables are supposed to be plural (users,groups,medicinal_devices) and the
foreign keys singular(user_id,group_id...)
Change it and give it another shot =)
2009/7/17 Zoran Kovac
> Here are some of the table fields. it's the table USER, GROUPS and
> MEDICIANL DEVICE.
> In short relatons are: ser s
I normally do the Routing last, I start with the application first,
routes are often related to SEO so that is not a primary concern.
However, if you know you are going to require very specialized routes,
taking those needs into consideration at the beginning is not bad.
I prefer the list_post ap
err. That was stupid. I just re-opened the ctp and noticed this little
jem. I forgot that I copied it from the stock home.ctp and wasn't quite
sure what it was for so I left it in.. (didn't realize that was checking
for debug)
whoops.
if (Configure::read() == 0):
$this->cakeError('error404');
So should I name that page differently ("main.ctp/index.ctp") then tell the
default router to go there instead? I basically just want a front splash
page with the application's title and a few links to controllers.
On Fri, Jul 17, 2009 at 12:09 PM, Gwoo wrote:
>
> Look in pages/home.ctp. The de
Look in pages/home.ctp. The debug check was added because too many
applications forgot to remove home.ctp.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php
It's hardly secret. ;-)
http://github.com/predominant/CakeFest-Berlin-2009-Workshop/
On Jul 17, 11:10 am, Isaac Raja wrote:
> Hi,
>
> Anybody know where can i find the source of the application that nate
> created at the CakeFest this year? I searched for it and couldn't find it
> anywhere. I h
Thanks for the info. Anyways the project was cancelled. Now I can calmly put
to use all of your advice.
On Fri, Jul 17, 2009 at 10:05 AM, Carlos Lavin wrote:
> Or just pr($_REQUEST)... cakephp's pre wrapper
> http://book.cakephp.org/view/707/pr
>
> 2009/7/17 womble
>
>
>> I think you may find th
Also if I go to /pages/home it works when debug > 0, but not otherwise.
Still nothing in the app/tmp/logs directory and the apache logs are the same
with a 404. (I swear, home.ctp is there. :)
==
Not Found
Error: The requested address '/pages/home' was not found on thi
Great. It works. Thank you
On Jul 17, 4:03 pm, "rich...@home" wrote:
> Should be:
>
> var $validate = array(
> "module_data" => array(
> "module_dataRule1" => array(
> "rule" => "notEmpty",
>
Here's routes.php if that helps any.
I think this is basically the default.
Router::connect('/', array('controller' => 'pages', 'action' => 'display',
'home'));
/**
* ...and connect the rest of 'Pages' controller's urls.
*/
Router::connect('/pages/*', array('controller' => 'pages', 'action' =>
thanks Piotr Kilczuk let me chk with that..
On Fri, Jul 17, 2009 at 8:43 PM, Piotr Kilczuk wrote:
>
> Hello,
>
> > Can i get a tutorial for making the a search functionality.
> > I have 3 types of users, each type have different table. I need to search
> > the users with first name , lastnmae , p
Hm. Nothing in there from today. Just previous errors that I've fixed by
now.
On Fri, Jul 17, 2009 at 11:15 AM, Piotr Kilczuk wrote:
>
> Hello,
>
> Nothing interesting in app/tmp/logs?
>
>
> Regards,
> Piotr
>
>
--~--~-~--~~~---~--~~
You received this message b
Hi,
Anybody know where can i find the source of the application that nate
created at the CakeFest this year? I searched for it and couldn't find it
anywhere. I heard that the application was similiar to twitter.
Thanks
Isaac
--~--~-~--~~~---~--~~
You received thi
Hello,
Nothing interesting in app/tmp/logs?
Regards,
Piotr
--~--~-~--~~~---~--~~
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 g
Hello,
> Can i get a tutorial for making the a search functionality.
> I have 3 types of users, each type have different table. I need to search
> the users with first name , lastnmae , phone number, compnay. Can anybody
> provide me the tutorial or structure.
> Iam very new in cake php.
You don
No, I don't believe so. I haven't changed it from the default.
On Fri, Jul 17, 2009 at 11:03 AM, GravyFace wrote:
>
> Is the Security component enabled in your app_controller?
>
> On Fri, Jul 17, 2009 at 10:47 AM, idx wrote:
> >
> > Gives a 404. Although with debug=1 it's 200. Absolutely noth
Is the Security component enabled in your app_controller?
On Fri, Jul 17, 2009 at 10:47 AM, idx wrote:
>
> Gives a 404. Although with debug=1 it's 200. Absolutely nothing else
> changed except for the core config.
>
> (this is running via the XAMPP package on a windows2003 server - not
> sure i
Or just pr($_REQUEST)... cakephp's pre wrapper
http://book.cakephp.org/view/707/pr
2009/7/17 womble
>
> I think you may find that FB sends the fb_sig varibales in $_GET. Just
> to test it, in your controller method:
> echo '';
> print_r($_REQUEST); // or print_r($_GET);
> echo '';
> exit;
>
>
>
I am using the ajax upload from Valums http://valums.com/ajax-upload/ and
have it uploading my images fine.
Problem I have left to solve is I have a drop down to select an Album to
save the image to. Does anyone have experience with this plug in that may
halp point me in the right direction on h
Er, my point (buried in that long, long first post :) ) is that I
thought that Cake should SHOULD NOT be inflecting filenames in the
vendors directory. I thought that 'vendors' was for PHP code that we
got from some other, non-Cake source. Since we can't enforce a naming
scheme on other project
Gives a 404. Although with debug=1 it's 200. Absolutely nothing else
changed except for the core config.
(this is running via the XAMPP package on a windows2003 server - not
sure if that makes any difference)
debug=0
10.1.7.25 - - [17/Jul/2009:09:46:03 -0500] "GET / HTTP/1.1" 404 1003
10.1.7.2
Hi Friends,
Can i get a tutorial for making the a search functionality.
I have 3 types of users, each type have different table. I need to search
the users with first name , lastnmae , phone number, compnay. Can anybody
provide me the tutorial or structure.
Iam very new in cake php.
--~--~---
What does your webserver log say?
On Fri, Jul 17, 2009 at 9:42 AM, idx wrote:
>
> Hello,
>
> I've had my cake config set to debug 3 when developing and now that
> everything seems to be working I want to change to zero and test it
> out. All of the controllers and such seem fine, but now when I
Hello,
For one of my models, I have this (among other) validation
requirements:
'fee' => array(
'gt_0' => array(
'rule' => array('comparison', '>=', 0),
'message' => 'Please enter a valid fee (eg. $100.00)'
),
'number' => array(
Should be:
var $validate = array(
"module_data" => array(
"module_dataRule1" => array(
"rule" => "notEmpty",
"message" => "empty",
"required" => true
Hello,
I've had my cake config set to debug 3 when developing and now that
everything seems to be working I want to change to zero and test it
out. All of the controllers and such seem fine, but now when I go to
the cake root, I receive the following error.
No
The database table names ought to be plural, viz: MEDICINAL_DEVICES,
USERS etc. Cake is intelligent enough to handle plurals such as
COMPANIES (COMPANY).
In the model definitions, the model will be the capitalised singular
version of the tablename, e.g. User
Foreign keys are singular, e.g. user_
Some time ago I use the bread crumb functionality of HtmlHelper
without a great deal of difficulty.
Now, a year or so on, I'm at it again. This time I'm developing in a
full release (previously it was RC2 or RC3) and it doesn't seem to
work. I don't have access to my previous code for reference.
Hello,
> hello friends i have ask this question already but no one reply i need
> urgent response for that i want to integrate wordpress blog in cakephp
> but i want to place outside the app folder so can anybody tell me how
> to do that.I try to place that in webroot folder but when i access
> t
hello friends i have ask this question already but no one reply i need
urgent response for that i want to integrate wordpress blog in cakephp
but i want to place outside the app folder so can anybody tell me how
to do that.I try to place that in webroot folder but when i access
this blog it is dis
More details about the tables:
columns
--
id
name
columns_panels
--
id
column_id
panel_id
width <-- This is the additional join table data, that get lost
when I edit any columns fields.
panels
--
id
name
The problem is that when I update column using scaffold (e
Hi,
I'm using Sanitize::clean to sanitize my user data on a registration
page after this tutorial:
http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/
Like mentioned in an much older thread, the sanitizer replaces the
hyphens in email addresses for some reason:
htt
Hi,
its much simpler, follow the steps on the cookbook.
http://book.cakephp.org/complete/172/Authentication
greets
Andreas
Dhileepen Chakravarthy schrieb:
> Thanks for your reply. I am new for cakePHP. I find i did a mistake in
>
> function validateLogin($data)
> {
> $user = $this
Thanks for your reply. I am new for cakePHP. I find i did a mistake in
function validateLogin($data)
{
$user = $this->find(array('username' => $data['username'],
'password' => $data['password']), array('id', 'username'));
if(empty($user) == false)
return $user['User
I thinks you dont have use the variable that should be in controller like
$uses and $name which willl help to pick the table and controllers
hops it will work
On Fri, Jul 17, 2009 at 4:54 PM, Dhileepen Chakravarthy <
dhileepen.cake...@gmail.com> wrote:
> Hi Everybody,
>
> *I. mysql db*
> users ta
Hi Everybody,
*I. mysql db*
users table with id username and password field.
*II. index.ctp*
Login
create('Post', array('action' => 'login'))?>
input('username');?>
input('password');?>
submit('Login');?>
button('Reset', array('type'=>'reset',
'action'=>'clearLogin'
Thank you very much , i was searching on the api for this a while. and you
got it.
Isaac
On Fri, Jul 17, 2009 at 1:15 PM, brian wrote:
>
> Yes, try Router::parse($url)
>
> http://api.cakephp.org/class/router#method-Routerparse
>
> On Thu, Jul 16, 2009 at 11:24 PM, Isaac Raja wrote:
> > Hi,
> >
Here are some of the table fields. it's the table USER, GROUPS and MEDICIANL
DEVICE.
In short relatons are: ser should be in one group and have many MedDevice,
group should have one user, medicinal
device should have only one user.
CREATE TABLE IF NOT EXISTS `baza2`.`USER` (
`id` INT NOT NULL
I am setting data a then validate them.
$this->Module->set($this->data);
if($this->Module->validates()) print "YES";
else print "NO";
But I have one more problem. I get 2 errors with just validate rule
below.
Warning (2):
Thank you! That worked. Resulting code can found below for anyone
interested.
Nagendra
div('AjaxQuickSaveChapterID'); ?>
$QuickSaveChapterID"; ?>
divEnd('AjaxQuickSaveChapterID'); ?>
div('AjaxQuickSaveResult'); ?>
$QuickSaveResult"; ?>
CopyAjaxChapterQuickSaveOutputToForm(); ' ?>
divEnd('AjaxQu
It doesn't help.
On Jul 17, 9:58 am, joshua wrote:
> Mine:
>
>
>
> > 'email' => array(
>
> 'noEmpty' => array(
>
> 'rule' => 'email',
>
> 'allowEmpty' => false,
>
> 'message' => 'Email can\'t be null'
>
> ),
>
> ),
>
>
>
> On Fri, Jul 17, 2009 at 3:55 PM, gjofum wrote:
>
> > I add notEmpty and
Well if for some reason cake cant inflect the filename/path correctly
to determine the path, you would need to use the file option.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this grou
Are you setting the data before you validate it, or are you juts
calling save()?
$this->Model->set($this->data);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to c
Mine:
>
> 'email' => array(
'noEmpty' => array(
'rule' => 'email',
'allowEmpty' => false,
'message' => 'Email can\'t be null'
),
),
On Fri, Jul 17, 2009 at 3:55 PM, gjofum wrote:
>
> I add notEmpty and it still doesn't work.
>
>var $validate = array(
>"module_data"
I add notEmpty and it still doesn't work.
var $validate = array(
"module_data" => array(
"module_dataRule1" => array(
"rule" => "notEmpty",
"message" => "empty"
Yes, try Router::parse($url)
http://api.cakephp.org/class/router#method-Routerparse
On Thu, Jul 16, 2009 at 11:24 PM, Isaac Raja wrote:
> Hi,
>
> Every functions in helpers like $html->link $html->url converts the
> array url parameters in to an url (like array('controller' =>
> 'posts','act
If you want to do some JavaScript after divs populating with data,
simplest way is just add this code into AJAX result.
On Jul 17, 11:33 am, qualityvalue wrote:
> I am having a tough time getting Ajax callbacks to work. I am calling
> a controller action which updates couple of divs. I can see t
I think you may find that FB sends the fb_sig varibales in $_GET. Just
to test it, in your controller method:
echo '';
print_r($_REQUEST); // or print_r($_GET);
echo '';
exit;
On Jul 16, 9:57 am, mario vallejo wrote:
> Hello and thank you for your time and attention. I am building a
> Facebook
67 matches
Mail list logo