hi all,
can any one just me out to solve the following problem..
i have done an application named xyz. inside that i have named the
correspoding controller name and actions. for example
http://localhost/xyz/admin/login for administrator login. now the
problem is that i have change the
My main tip: Stop trying to force your own model names and fieldnames
and use cakes conventions, makes life a whole lot easier!
Why are you joining Meal/meals when you're not pulling any fields from
it, or have you missed out some fields?
If you were conforming to Cake's conventions you would
For values that are to be saved to the database it is good practice to
name your form fields as Model.field_name, makes life a whole lot
easier in the long run, and you would access this in the controller as
$this-data['Model']['field_name'];
As for extra fields which are not to be saved to the
hi,
i would like to include wordpress into my cakephp application but i
dont want it to be on a seperate url like /blog.
reasons for that are that the users looses his session inside the
site, looses the usermenu (i know i could do that by ajax..)
isnt there a way to just include the blog files?
Thanks for that, always felt I should generate a ticket, but have
never done so before and seen so many tickets be rejected for not
being structured correctly etc that I kept putting it off.
Would have deflated me even more to go to the trouble of doing so with
test cases etc to just be told
.htaccess rewrite rules negate the need for webroot to be included in
any path to files in the CakePHP app.
Bare in mind that these same rules also divert /app/controller/action
through an index file in your /app/webroot folder with variables that
allow Cake to then fetch and process the right
@Ed
which is quick and easier to make changes to?
a) a mixture of mainly html tags and a scattering of php vars
with occasional conditionals?
b) using cake's html helper to make the same page
my editor color codes HTML in my cake views.
it turned out to be quite the project to code the entire
so if webroot doesn't need to be included... how do I make it so the css
is actually working? As far as I can tell, the reference in the page
isn't working. I haven't worked with .htaccess files at all; aside from
the basic security access.
Psyber Netik
psyber.ne...@gmail.com
smime.p7s
I try this :
$this-ModelA-saveAll($this-
data,array('fieldList'=array('ModelA.field_name','ModelB.field_name')));
But it doesn't work (I use cakephp 1.2)
On 21 Apr, 15:45, Jeremy Burns jeremybu...@me.com wrote:
Prefix all of your fields with the model name (it's good practice everywhere
On Apr 23, 10:24 am, Sam Sherlock sam.sherl...@gmail.com wrote:
@Ed
Would you write your static pages - with cake? from your description -
you would (?).
For contrast/discussion this is the style I write (or more accurately
bake):
Hey guys,
I'm having some difficulties with my authentication code. I'm wondering if
anyone can point me in the right direction.
I have 3 routes set. admin / adminjudge / judge.
admin + adminjudge are hardcoded logins as they will never change and use
the User model to authenticate.
judge uses
Hi friends i am new to cake php. sorry for asking simple queries also
how to write order and unordered list cakephp .
i my coding they are mentioned like this. I don`tknow how to write in cake
php ?
can any one plz help me. thats is more help for me.
*My Store Groups*
- *Admin Store
On Apr 22, 6:42 pm, Lucca Mordente luccamorde...@gmail.com wrote:
To use 'validate'=false as you are, disables the validation!
Sorry, I should have mentioned that disabling validation was just
something I was trying to see if that was the problem. The data is not
saved either way.
So, this
How to attach model association belongsTo on the fly? I ama developing
plugin so I need that, to attach somewhere in my component.
Help please
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you
i am afraid you are wrong about that, john
(if i understand you right)
my method checks if a set of given data already exists in the db - and
if so, return a duplicate content error (if you add the appropriate
text message)
and instead of only one pair as the core function this can check on
On Apr 23, 5:56 am, Bryan Paddock bryanpadd...@gmail.com wrote:
Hey guys,
I'm having some difficulties with my authentication code. I'm wondering if
anyone can point me in the right direction.
I have 3 routes set. admin / adminjudge / judge.
admin + adminjudge are hardcoded logins as they
On Apr 22, 11:47 pm, Ed Propsner crotchf...@gmail.com wrote:
Okay, dumb question ...
Can someone explain the difference between :
[code] $this-Html-something [/code]
and
[code] $html-something [/code]
OOP is a bit of a new road for me.
$html-something works fine most everywhere
On Apr 22, 7:02 pm, paws_galuten jason.galu...@gmail.com wrote:
It is very difficult to understand, but I'm finally getting ACL and
Auth working in my app. I have a User model and a Group model (pretty
much copied from the Cookbook). I have figured out a few things but
there are still things
Check if any error occurs on database level.
In debug output, see if there is a 'rollback'. If so, make sure all
queries that should be executed on saveAll are there. If they are, try
to execute the transaction directly on database and make sure that it
works fine.
I had an experience with an
On Apr 21, 4:12 pm, Chris Turner ctismyusern...@gmail.com wrote:
Hello -
I'm new to cake, and am attempting to prototype an application for
evaluation,
using postgres as the backend.
I'm trying to create a business products catalog using the 'Tree'
behaviour, and
currently the
On Apr 23, 7:03 am, Lucca Mordente luccamorde...@gmail.com wrote:
Check if any error occurs on database level.
In debug output, see if there is a 'rollback'. If so, make sure all
queries that should be executed on saveAll are there. If they are, try
to execute the transaction directly on
On Apr 23, 7:30 am, cricket zijn.digi...@gmail.com wrote:
On Apr 23, 7:03 am, Lucca Mordente luccamorde...@gmail.com wrote:
Check if any error occurs on database level.
In debug output, see if there is a 'rollback'. If so, make sure all
queries that should be executed on saveAll are there.
Solved. The holdup was this line in Model::saveAll()
if (Set::numeric(array_keys($data))) {
So I needed to be saving like:
$this-ElectionVote-saveAll($this-data['ElectionVote'])
And, indeed, the Cookbook's example is:
$this-Article-saveAll($data['Article']);
It all makes perfect sense to do
I again stand corrected :)
You are right!
My main concern was that the database already can provide this check
for duplicate records, so why code it!
Anyway, if Swanny is happy, then who am I to complain :D
Enjoy,
John
On Apr 23, 1:49 pm, euromark dereurom...@googlemail.com wrote:
i am
I m new with cake. i m usung jquery and ajax both with cake . when i
include prototype.js in project then jquery not works . Any solution
for that.
thanks.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this
i want to display dynamic content in tooltip taken from database how
to access database field details for each image.and how to display
tooltip using jquery.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this
Hey guys, in the 1.2.7 release, the file cake/VERSION.txt still says
1.2.6.
Regards
Leonel Quinteros
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
Hi all,
Want to chack weather is it ok to make the changes to
app_controller in cake folder. Does it affect in case of upgrade , is
it consider as a good practice or bad? Is there any other alternative
to this?
shardul
Check out the new CakePHP Questions site http://cakeqs.org and help
i integrated a facebook connect(from google search) with my cakephp
site(which i am developing from scratch)...
my issue in detail
once the facebook connect is clicked a pop-up window opens...i login
with my facebook credentialsi get logged into my website, i.e.
correct login after
Hello all.
I have a problem with displaying error messages after form validation.
Model user.php:
var $validate = array(
'fname' = array(
'rule' = array('custom','/^[A-Za-z\ ]{2,30}$/'),
'message' = 'Supply real first name',
'allowEmpty' = false,
),
'lname' =
On Apr 23, 4:56 am, shardul mohite.shar...@gmail.com wrote:
Hi all,
Want to chack weather is it ok to make the changes to
app_controller in cake folder. Does it affect in case of upgrade , is
it consider as a good practice or bad? Is there any other alternative
to this?
Copy the file to
On Apr 23, 2:00 am, MANOJ DHAMAL manoj.dham...@gmail.com wrote:
I m new with cake. i m usung jquery and ajax both with cake . when i
include prototype.js in project then jquery not works . Any solution
for that.
Don't use prototype?
OK, see here:
On Apr 23, 2:09 am, priya dhakane priya.dhak...@gmail.com wrote:
i want to display dynamic content in tooltip taken from database how
to access database field details for each image.and how to display
tooltip using jquery.
You might need to provide more information. What does the database
On Apr 23, 8:41 am, Leonel Quinteros leonel.quinte...@gmail.com
wrote:
Hey guys, in the 1.2.7 release, the file cake/VERSION.txt still says
1.2.6.
This seems to happen often. One would think it would be automated.
Anyway, I have no idea if it's important.
Check out the new CakePHP Questions
Hi All,
I ma first time working on project in cakephp . I m using ajax and jquery
both in project. When i include prototype.js for ajax it affects to jquery,
jquery not works . Any solution for this?
Thanks.
Check out the new CakePHP Questions site http://cakeqs.org and help
give jQuery.noConflict(); in jquey file and then try
it will works
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group,
@AD7six
If the page was truly static then no, I suppose there would be no need to
write an entire page with Cake, what would be the point?
The use of all Cake tags was entirely experimental (curiosity) and I find
nothing at all wrong with echo 'tag'; echo '/tag';
I don't really consider that
You should also consider who else will be looking at your view files.
I'm guessing that advocates of the HTML helper-only approach don't
need to hand their view files to other people who will be writing/
changing/styling the HTML. At my company, I do the bulk of the PHP
work, write basic HTML
Yeah, you don't have to write SQL as you can use the regular $this-
Model-findAll() methods. Reference:
http://book.cakephp.org/view/73/Retrieving-Your-Data
But, I found for myself that writing sql syntax is sometimes easier.
Now, it looks like you want to have models. You need the views too,
and
In a given action, how can I manually render text? I'm thinking of an
analog to render :text in Rails.
Thomas
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google
From http://book.cakephp.org/view/206/Inserting-Well-Formatted-elements
This: ?php echo $html-css('forms'); ?
Gives you this: link rel=stylesheet type=text/css href=/css/
forms.css /
The file is here: /app/webroot/css/forms.css where /app/ is /nh/ in
your case.
You can try messing with defined
I'll admit that with a layout defined almost solely by divs and using the
html helper
the lack of indents had me a tiny bit lost in the code but it didn't take
long to get used to.
There obviously is no right or wrong answer ... it all comes down to
personal preference,
however as in your case if
If you googled it and didn't find it, perhaps it's not there. The good
news is that you can write the component/helper yourself. CakePHP
rests on top of PHP, that means anything you can do in PHP is doable
in cakePHP. So, what you need to do is either to include the WorldPay
into your application
Third time of pinging - no-one fancy a crack at this please?
Jeremy Burns
jeremybu...@me.com
On 23 Apr 2010, at 05:52, Jeremy Burns wrote:
Any takers please? Do I need to add an option to my createElement statement?
What am I doing wrong?
Jeremy Burns
jeremybu...@me.com
On 22 Apr
I really don't know if it would make a difference but I use [code]
$html-css(array('forms')); [/code]
Then again I'm using more than one style sheet.
- Ed
On Fri, Apr 23, 2010 at 10:54 AM, piousbox pious...@gmail.com wrote:
From
Hi!
I have a CakePHP application that serves a website and serves as a
datasource for an AJAX application.
Due to the large amount of ajax requests, I had a lot of database
connections so I decided to cache everything using memcache.
This all works fine, but now I have database connections that
Great, that helps a lot. I still don't understand why when I do cake
acl view aco I get just group.id etc and in most examples online
people get more detailed info. Should I be using an alias instead of a
group model? What's the difference?
Basically, I just want to have 3 types of users and
Instead of calling $xml-createElement try doing
$node = $xml-createNode(...);
$xml-append($node);
inside of your for loop.
On Thu, 2010-04-22 at 07:21 -0700, Jeremy Burns wrote:
I am trying to produce an XML file ($results is an array of data):
code
App::import('Xml');
$xml =
Hi everybody!
I'm trying to build a user control panel for administrators, to add
users, modify, give permissions, etc.
My problem is that when I try to save a new user to the user tables,
it seems that cake is login the new user.
Is there any way to avoid that cakePHP, when I save a new
In the scaffold create and edit views, I am presented with datetime
inputs for both Created at and Updated at. Is this an indication
that I have done something wrong? I thought that the values for these
fields were handled internally.
Here is the bare-bones table:
create table templates (
id
Hello,
I have some data that must be stored in a tree structure. Here is the
SQL used to create that data's table:
drop table if exists fields;
create table fields (
id int(11) unsigned not null auto_increment,
created_at datetime not null,
updated_at datetime not null,
template_id
Hello Paul,
yes THIS REALLY HELPS.
Now I start to _understand_ how to use the find() like I used to do
sql :) thanks a lot.
To comment your suggestion about habtm on meals:
Each request means a customer will arrive having ordered a firstMeal
on arrivalDay meal1
Each request means a customer will
On 23 Apr., 09:08, WebbedIT p...@webbedit.co.uk wrote:
My main tip: Stop trying to force your own model names and fieldnames
and use cakes conventions, makes life a whole lot easier!
Why are you joining Meal/meals when you're not pulling any fields from
it, or have you missed out some
they are
if you call them created and modified
see the cookbook for details
On 23 Apr., 22:09, Thomas Allen thomasmal...@gmail.com wrote:
In the scaffold create and edit views, I am presented with datetime
inputs for both Created at and Updated at. Is this an indication
that I have done
Hi,
I have a login form and want serialize login and password data before
sending it with ajax call. Is exist a tool or function or a way with
mootools ?
I don't want use https, and when I check the http request (httpfox), I
see my password in clear text on querystring.
help me to secure that
hmpf I am sorry I need more help...
I did false-back (mean I did my wrong naming in again as I use it
current, will have to clean up all later...)
it crashes if I try to run the find()
Warning (512): SQL Error: 1054: Unknown column
'BookingPosition.AnreiseDatum' in 'field list'
I am shure
damn :(
the find() crashes telling unnown fields
Warning (512): SQL Error: 1054: Unknown column
'BookingPosition.AnreiseDatum' in 'field list' [CORE\cake\libs\model
\datasources\dbo_source.php, line 615]
Any idea?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
I wrestled with ACL for a while, and finally decided that might be too
much for what I'm doing. I only really need a few types of users and
in that case it is simple enough just to have a field in the users
table that specifies the type (or is a foreign key to the groups
table, for example).
This
I am using the AuthSome component (Auth alternative) from Debuggable,
together with this:
http://josediazgonzalez.com/2010/01/11/you-want-access-well-you-no-can-has-cakephp-access-component/
Works a treat. :)
On Apr 24, 12:31 am, paws_galuten jason.galu...@gmail.com wrote:
I wrestled with ACL
That option exist because that's what you'd use in a Helper, not in
the view (ctp) files.
It's a lot clearer and faster to just write div isn't it?
Use $this-Html-div() in your helper, instead of echo 'div' (which
is horrible) IMO. :)
Each to his own, I guess, but I prefer to write static layout
Mootools and many other javascript frameworks have a function called
serialize which packages up a form for transport. And the very nature of
https is designed exactly for the reason you described. There really aren't
any work arounds for encryption that are secure since https has a 3rd party
to
On Apr 23, 11:52 am, paws_galuten jason.galu...@gmail.com wrote:
Great, that helps a lot. I still don't understand why when I do cake
acl view aco I get just group.id etc and in most examples online
people get more detailed info. Should I be using an alias instead of a
group model? What's the
On Apr 23, 4:25 pm, Thomas Allen thomasmal...@gmail.com wrote:
Hello,
I have some data that must be stored in a tree structure. Here is the
SQL used to create that data's table:
drop table if exists fields;
create table fields (
id int(11) unsigned not null auto_increment,
created_at
On Apr 23, 10:50 am, Thomas Allen thomasmal...@gmail.com wrote:
In a given action, how can I manually render text? I'm thinking of an
analog to render :text in Rails.
In what sense? Do you mean that you want to output plaintext headers
also? Or, just toss some text back to the browser?
On Apr 23, 3:47 pm, mau mauro.torr...@gmail.com wrote:
Hi everybody!
I'm trying to build a user control panel for administrators, to add
users, modify, give permissions, etc.
My problem is that when I try to save a new user to the user tables,
it seems that cake is login the new user.
Ya.. totally, let's see some code. It sounds like you're using some out of
the box code and never took out $this-Auth-login($this-data);
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of cricket
Sent: Friday, April 23, 2010 6:16 PM
To:
I lived in Chicago. It is a very nice city. IF you are to do it in
summer - Chicago is the way to go [other than summer, it is very cold
there]. However, if you are planning to have it in a different season
I'd say - Houston. Not only because I live here now, but because the
weather is nice and
I am using ACL on a huge project. It does really help. I have all kind
of users and access types - access based on user groups, based on
actions, based on the company they belong to (user rights are defined
on the company user belongs to - user can only manage certain records
in the DB per
Sometimes you just have to do it. I am using it and don't see any
problem. Of course, be aware you put there really necessary stuff,
something that is necessary to be executed by all Controllers.
Alternative way is to put custom functions into bootstrap.php, it is
later being included with every
Hi folks,
I am new to cakePHP and after two days reading I got quite far with my
current application.
Nevertheless I am stuck now.
I created an Element called 'viewer.ctp' in the elements directory.
This Element is used by my layout 'page.ctp' by using this command:
?php echo
Hello,
I have a users table with a role field. When a user logs in the cAuth
component stores that users info inside of:
$session-read('Auth.User.role')
Then inside of my view I can do something like this:
?php if ($session-read('Auth.User.role') == 'administrator'): ?
pYou are an
(I somehow hit tab+enter and submitted my post before I was finished,
I'm sorry for the double post).
Hello,
I have a users table with a role field. When a user logs in the Auth
component stores that users info inside of:
$session-read('Auth.User.role')
Then inside of my view I can do
I think you may be talking about my plugin:
http://www.webtechnick.com/wtn/blogs/view/229/CakePHP_Facebook_Plugin_Auth_Facebook_and_more
I saw your comment regarding this issue, and am not sure how to
advise. Unfortunately it works as advertised on my demo app
http://facebook.webtechnick.com as
hello,
i am new in cakephp. I want tooltip on image. but my css file not get
apply so no tooltip image get display but only text. plz suggest me
solution for that.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this
Wouldn't messing with the defined constants in /nh/webroot/index.php
only adjust it for that page? It looks like theres a lot of scaffolded
includes; in which one of them doesn't have the right path or
variable. I don't which line is bad because I don't know which file is
calling or creating the
75 matches
Mail list logo