Do you use UTF-8?
German has also some special characters (öäüß) and I have no problem there, but
I started my application completely in UTF-8 ( code and database)
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL
PROTECTED]
Hello,
I have read the article by Mark Story:
http://mark-story.com/posts/view/reducing-requestaction-use-in-your-cakephp-sites-with-fat-models
So now I want to use that. In some cases it works already very fine, but I am
not sure if I can place an method in my model (which ist growing fatter d
Nate,
what I meant was that I couldn't get it working ONLY using cake's ajax
helper. I used raw prototype code. I understand cake has an ajax
helper, I have utilized it for other things, I just couldn't getting
it to work for this one.
On Oct 8, 8:53 pm, Nate <[EMAIL PROTECTED]> wrote:
> http:/
yes ofcource u can use with XAMPP on windows.
i am also working on that with out any problem.
before u start make sure u have checked the configuration of your
local server
http://book.cakephp.org/view/333/A-Note-on-mod_rewrite
hope this helps you
On Oct 9, 7:14 am, JRough <[EMAIL PROTECTED]>
Just tested with some UTF-8 Japanese and it works, so it's not a
problem in general.
I'd investigate along the same lines as this recent thread:
http://groups.google.com/group/cake-php/browse_thread/thread/0ea507c127fd2ab9
Try a simple echo "Descripción"; from anywhere.
Does that display correc
Thanks stockit,
It working for me
On Oct 9, 5:43 am, Stockit-rehanw <[EMAIL PROTECTED]> wrote:
> I'm new to cake too but read this in a book and elsewhere...
>
> try $this->City->find('list') - its made to render for select lists
>
> outputs...
>
> 1 => London
> 2 => New York
>
> readhttp://book
I want to try out Cakephp. Do you know if I can use it with XXAMP on
Windows just for testing or do I have to install it on a real server?
thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
So ... no one knows, hey? shucks.
On Oct 7, 2:58 pm, Brenton B <[EMAIL PROTECTED]> wrote:
> Why are we restricting rows in dbo_source.php on line 841?
>
> if ($type == 'hasAndBelongsToMany') {
> $uniqueIds = $
Actually it happens everywhere and I hadn't noticed it.
For example:
sort('Descripción');?>
The cell comes out empty when the page is rendered.
On Oct 8, 9:15 pm, "R. Davila" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the $validate array to setup validation and error messages in
> the mod
Hi,
I'm using the $validate array to setup validation and error messages in
the model.
Given a field called "description", the following works perfectly:
$validate = array(
'description' => array(
'rule' => array('minLength', 20),
'message' => 'Description must be at least 20 characters'))
http://book.cakephp.org/view/208/AJAX
And I quote:
"The AjaxHelper utilizes the ever-popular Prototype and
script.aculo.us libraries for Ajax operations and client side
effects."
On Oct 8, 7:40 pm, Chez17 <[EMAIL PROTECTED]> wrote:
> In case anyone wants to know. I did get this to work but I had
I'm new to cake too but read this in a book and elsewhere...
try $this->City->find('list') - its made to render for select lists
outputs...
1 => London
2 => New York
read http://book.cakephp.org/view/449/find for more
On Oct 8, 10:45 pm, Bookrock <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have tw
The best way to look up php functions is by using the search engine on
the php site at http://us.php.net/
it's a very well written manual.
This is what comes up when you look up nl2br()
http://us.php.net/manual/en/function.nl2br.php
Also, this is the main resource that I learned php with:
http:
In case anyone wants to know. I did get this to work but I had to use
the prototype library and javascript. I couldn't get it working within
cakes own features.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP
Yes you can, but you'll have to tell Apache that it should care about
~/cakeSites as well.
You'll have to create a new Directory or VirtualHost directive in a
config file in /etc/apache2/users.
Is there a particular reason you want to go through this trouble? :-)
On 9 Oct 2008, at 03:43, dot
Hi Bernhard, Joel,
Thanks for the tips. A possible solution for my problem has been
dawning on me...
Let me explain my scenario:
Users of the system engage in what I'll call 'transactions' with each
other. A user can have different roles in the transaction, like e.g.
Sender or Receiver. Th
teknoid wrote:
> While this works fine, and makes your app more secure... the real
> question is why are you passing fields that do not need saving to the
> controller? or why do you even have them in the form?
I'm not. I used "cake bake" to make a skeleton controller and view.
CakePHP automatica
Yes. That was one of the first things I tried because I had extra
field info on the join table.
As the dbo_source.php code shows, it's just not allowing other ids
based on the foreign/join keys.
That's the part I'm confused about ... why not?? If the row is
duplicated it shows it, and thus also r
Have you tried creating an id field in the join table and setting that field
and only that field to be the primary key?
Brenton B wrote:
>
>
> Ok, so I can kind of understand the use of `$foreignKey` as something
> to compare on, but that still doesn't explain why we're limiting to
> unique
El 08/10/2008, a las 20:43, dotty escribió:
> Now, how would i go about installing cake without mucking up my ~/
> Sites directory? Could i make a new dir called ~/cakeSites and run
> cake in there?
> Any help would be great!
You could install it under /Library/WebServer/Documents and acces
Probably a good idea to turn debug off. You're publically dumping
queries, showing your database structure somewhat.
Also, throw some visual validation error indicators on your forms,
like the sign-in form etc.
Your search screen button indicates results were found, but on
clicking it, I was taken
pls off display query.
On Thu, Oct 9, 2008 at 1:28 AM, dezpo <[EMAIL PROTECTED]> wrote:
>
> Hello bakers,
> Just wanted to show you what I have did in the past 2 months using
> cakephp. This is my new site about car fans. If you have time please
> try to test it or even join this project. Thank y
Hay all, i have PHP5 installed (w/ mysql). This works fine, i navigate
to ~/Sites and all my php get parsed correctly.
Now, how would i go about installing cake without mucking up my ~/
Sites directory? Could i make a new dir called ~/cakeSites and run
cake in there?
Any help would be great!
Th
I solved this by using requestAction()
On Oct 7, 8:30 pm, magnetism <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have a Category controller that uses the TreeHelper and the Tree
> behaviour
> I also have an element for this controller that constructs a css menu.
> These are the contents of the element:
You should set debug = 0, since I guess you are in production now ;)
On Oct 8, 3:58 pm, dezpo <[EMAIL PROTECTED]> wrote:
> Hello bakers,
> Just wanted to show you what I have did in the past 2 months using
> cakephp. This is my new site about car fans. If you have time please
> try to test it or
I feel like I'm spinning my wheels searching for something that I
woulda figured was already coded, but no such luck ... I'm looking for
something that helps with searching on any possible association setup
for a Model. So of the stuff I've come across are:
http://nik.chankov.net/2008/03/01/filte
Hello bakers,
Just wanted to show you what I have did in the past 2 months using
cakephp. This is my new site about car fans. If you have time please
try to test it or even join this project. Thank you.
www.autolive.org
--~--~-~--~~~---~--~~
You received this messa
Hi,
I have two model User and City
They have one to one relation by foreign key city_id.
In User Model
var $belongsTo = array(
'City' => array(
'className' => 'City',
)
);
In City Model
var $hasOne = array(
'User' => array(
'className' => 'User',
)
);
I want to get only
I wonder if there is some conflict in the translate behavior...
Have you tried with: $this->User->recursive = -1; $this->User-
>find('all');
On Oct 8, 11:31 am, nastya <[EMAIL PROTECTED]> wrote:
> Hello everyone
>
> I ask you for help!!!
>
> don't manage to get recursive work in the following
As Marcin says, have a good look through the book. It will really
save you time in the long run -- and save the rest of us time too.
Although we are of course always happy to help :-)
A password-type field is only created automagically if the fieldname
is: password, passwd, or psword.
http://b
Well, with a subdomain i can make admin.mysite.com or something
else so in theory it should work.
Thanks :D
On Oct 8, 4:10 pm, villas <[EMAIL PROTECTED]> wrote:
> Hi Shackadoodl,
> Did you consider using mod_rewrite or using a subdomain name.
> Although these solutions are to do with the webserv
> - secret sharing (Algorithm: Shamir, ...)
>
> read:http://en.wikipedia.org/wiki/Secret_sharing,http://en.wikipedia.org/wiki/Shamir's_Secret_Sharing
Secret sharing schemes are methods of splitting a key amongst many
persons, such that one needs all of the partial keys to be able to
decrypt
Hi all,
I've been wondering if it is possible to use sub-layouts with my
views. Let me explain what I mean by "sub-layout":
I've got a layout/default.ctp setup to display header, content and
footer for the whole website. The body part is just a big div where
all the controller/action views are r
Hello everyone
I ask you for help!!!
don't manage to get recursive work in the following conditions:
User belongs to Group and Style
User acts as 'Translate'
$this->User->find('all',array('recursive'=>-1));
ALWAYS gives this error:
SQL Error: 1051: Unknown tabl
Erm... sure, be my guest :)
I sometimes feel like I should contribute more to the manual, but the
truth is I'm so used to browsing the cake source code to get answers I
rarely use it myself!
On Oct 8, 4:11 pm, BrendonKoz <[EMAIL PROTECTED]> wrote:
> grigri - that is absolutely beautiful. I saw
Data validation in the model is one thing, yes. Depending on your
application and any security, some extra filtering may be necessary
too due to some security implications. However, even I am guilty of
not filtering things when I should so that I can "get things done". I
would strongly suggest
grigri - that is absolutely beautiful. I saw it in the API but didn't
think to follow up on it. If you don't want to add this to the
manual, may I do so with your permission?
On Oct 8, 3:54 am, grigri <[EMAIL PROTECTED]> wrote:
> What about $this->addScript() ?
>
> From the view:
>
> $this->add
Yeah, I always get paranoid about that type of thing... I know I've
read things on white hat hacker blogs warning people on just that
subject because on some forms you can type MySQL calls and get more
information than they should be allowed through that.
I will read up on PHP security and filter
I'd like to get some sort of WYSIWYG editor for some other sites that
I'll be doing in the future. Right now this one is just very basic.
No need of letting, and actually really don't WANT them doing much
more on this site at the moment. But yes, there will be a need for
such things in the futur
This is a little component I created a few years ago to do things like
this in a general way.
http://bakery.cakephp.org/articles/view/ticket-component-resetting-user-passwords
You can use it as is or change it to suit your needs.
On Oct 8, 4:40 am, Joel Perras <[EMAIL PROTECTED]> wrote:
> Store
Store the id in the session.
On Oct 8, 9:25 am, Günther Theilen <[EMAIL PROTECTED]> wrote:
> OK, I'll have another look at the security component.
> The last time I tried it, I found the same you did: it caused more
> problems than it solved.
>
> Thanks anyway.
>
> grigri:
>
> > If you use the Se
The only problem with HABTM is that cake will expect your join table
to be in the same DB as the "main" model.
The easy work-around is to make a chain of hasMany/belongsTo in this
case.
On Oct 8, 9:07 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> David:
> I can see how that would work for
> Think about when in terms of processing order $scripts_for_layout is
> calculated.
You're absolutely right about the order of processing. It seems
$scripts_for_layout is calculated from the view->__scripts[] but only
for the actual view template (the one that corresponds to controller/
action) n
Hi Shackadoodl,
Did you consider using mod_rewrite or using a subdomain name.
Although these solutions are to do with the webserver rather than
cake.
HTH
On Oct 7, 9:33 pm, Shackadoodl <[EMAIL PROTECTED]> wrote:
> Yes, i looked into that, but it still doesn't delve in how i can let
> the
> admin
Hi,
This is the scene - I have 3 databases (currently) - one is named
"_shared" and the others are named after a country symbol ex "_us",
"_uk".
The "_shared" database has tables which in turn have rows - each
connects to a different database->table->id
For instance a table "_shared.fans" would
Interesting subject...
On Oct 8, 7:26 am, "Paolo Stancato" <[EMAIL PROTECTED]> wrote:
> Maybe you're not passing those fileds but someone else.
> It's quiete easy to inject new fields in a form.
How adding process should be done correctly?
Is 'cake bake'-way incorrect? Working but incorrect?
>
Have you thought of using something like TinyMCE? It will generate
html for you as you type. Allowing you to do much more than
insert's. They are fairly easy to install with minimal work.
-Mark
On Oct 8, 3:59 am, Cody Sortore <[EMAIL PROTECTED]> wrote:
> I've got a decent handle on PHP at le
This is what i did some time ago:
File: app_controller.php (so every controller has it for free)
function beforeRender(){
//Load a controller specific CSS
if( file_exists(CSS.$this->name.'.css') ){
$this->set('controllercss_for_layout',$t
I have this case working in an app of mine, no problem whatsoever.
Cake just gets the data in two steps and combines it.
(I'd rather it does a cross-database JOIN, but it works anyway.)
Chrs,
Dav
On 8 Oct 2008, at 22:07, [EMAIL PROTECTED] wrote:
>
> David:
> I can see how that would work for ha
OK, I'll have another look at the security component.
The last time I tried it, I found the same you did: it caused more
problems than it solved.
Thanks anyway.
grigri:
> If you use the Security Component then the Form Helper will
> automatically generate and manage hash fields to make sure th
you can do it in this way.
in your controller just call the function
$this->set('values', $this->Hotelinfo->findList('Hotel'));
and in AppController write the function
function findList($modelname)
{
return $this->Hotelinfo->$modelname->find('list');
}
thats it what ever model u want to
David:
I can see how that would work for hasMany. But for hasOne, belongsTo
and (I think) HABTM Cake joins the tables to get the data in a single
query. Does Cake honor useDbConfig in these cases?
/Martin
On Oct 8, 1:08 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> Set up multiple databa
If you use the Security Component then the Form Helper will
automatically generate and manage hash fields to make sure that hidden
fields are not modified (amongst other things) (I've found it to cause
more problems than it solves, however - give it a go).
To be honest, I rarely make use of saveA
I'll answer my own rant for future reference on the subject.
I ended up doing it this way:
Got the majority of the schema migration queries from Navicat (a gui
for MySQL).
Got a more complete list of collation and charset changes by using
this little script I found and modified a bit:
http://bog
Yeah, I thought about that.
But what happens if a user changes the value of the hidden field
AdvancedEntry.id?
So I would have to check if the field has the right value. And in that
case I could just drop the hidden field.
Or am I missing something?
Regards
Guenther
grigri wrote:
> Add a hi
hm
controller:
$this->Auth->fields = array( 'username' => 'email', 'password' =>
'pass' );
view:
print $form->input('email', array('label' => __('Email', true)));
print $form->input('pass', array('type' => 'password', 'label' =>
__('Password', true)));
the second input without the type key
Set up multiple database connections in database.php.
http://book.cakephp.org/view/40/Database-Configuration
Configure your models to use the appropriate connection.
http://book.cakephp.org/view/435/useDbConfig
The associations between models work exactly the same, no extra work
needed.
On 8
I would tackle it by extending the Paginator class to include a
customNumbers() style function which would take this into account. As
far as I know this isn't available with the current paginator class,
although I could be wrong.
A quick check on
http://api.cakephp.org/class_paginator_helper.htm
Add a hidden field containing the AdvancedEntry id to the form:
echo $form->input('BasicEntry.bacon');
echo $form->input('AdvancedEntry.id');
echo $form->input('AdvancedEntry.eggs');
(The `id` of the BasicEntry is transmitted to the edit action as the
1st parameter, so you don't need to do this
The problem is with cake.basics.php function __() that uses i18n class
Unluckily I don't get any log error or debug error
The production server is SuSe
g this is driving me crazy!
Dan
On 4 Ott, 20:20, "jitka (poLK)" <[EMAIL PROTECTED]> wrote:
> Not enough info to tell you what is wrong th
In this url whose controller will receive page:2 parameter
/site/contrs/action/page:2
please if you have any suggestion, solution replay me
thanks
On 8 oct, 09:46, Elmaho <[EMAIL PROTECTED]> wrote:
> hi,
> the render of the numbers() function in the paginator helper is a list
> of span tags, ha
$modelname = 'Hotel'
${$controllername} = $this->Hotelinfo->$modelname->find('list');
Seams to work. Sometimes life is easier than expected ;-)
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von
Liebermann, Anja Carolin
Gesendet: Mitt
Sometimes the easiest way what will work. :) Thanks
--~--~-~--~~~---~--~~
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
Hello everybody,
I have a loop and want to set the linked object name dynamically:
Now :
${$controllername} = $this->Hotelinfo->Hotel->find('list');
As you can see I have already the variable dynamically named. Now i want
to replace 'Hotel' by a varibale.
Something like:
${$controllername} = $
I'll play around with that, thanks.
A new undocumented goodie every day... ;-)
On 8 Oct 2008, at 16:54, grigri wrote:
>
> What about $this->addScript() ?
>
> From the view:
>
> $this->addScript("");
>
> Adds it internally to the $scripts_for_layout variable; it's called
> from HtmlHelper::css()
hi,
the render of the numbers() function in the paginator helper is a list
of span tags, have you any idea to change this one into a select tag.
i can't figure it ??
thank you readers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi,
let's say there are two models:
BasicEntry hasOne AdvancedEntry
AdvancedEntry belongsTo BasicEntry
In the advanced_entries table in the DB there is a field called
"basic_entry_id"
In views/basic_entries_edit.ctp there is something like this:
$form->input('BasicEntry.foo');
$form->input('
Why not setting a variable 'specific_js_for_layout' with $this-
>set('specific_js_for_layout',#WHAT YOU WANT#);
inside the beforeFilter or beforeRender?
On Oct 8, 9:54 am, grigri <[EMAIL PROTECTED]> wrote:
> What about $this->addScript() ?
>
> From the view:
>
> $this->addScript("");
>
> Adds it
give me a break - do some searching.
AT LEAST look at auth page in cookbook : book.cakephp.org .
--
Marcin Domanski
http://kabturek.info
On Wed, Oct 8, 2008 at 9:56 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Is it possible to use auth component if my username's filed name is
> email
Hi
I have read many posts about "How make associations between models on
different database"
but I have not yet understood how can I do this.
Can someone explain how I can do this for all type of associations (in
particular for HABTM)?
Many thanks
--~--~-~--~~~---~--~--
What about $this->addScript() ?
>From the view:
$this->addScript("");
Adds it internally to the $scripts_for_layout variable; it's called
from HtmlHelper::css() and whatnot.
hth
grigri
On Oct 8, 3:19 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> I'm using the HeadHelper to do exactly w
I've got a decent handle on PHP at least enough to get by. I'm not
trying to create some social networking site or anything, just a very
simple site that has some user comments and what not on it.
I'll admit I've never gone through and actually "learned" PHP most of
what I've done was starting w
Is it possible to use auth component if my username's filed name is
email and password filed's name is pass?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-p
http://images.google.com/images?q=facepalm
;-)
On 8 Oct 2008, at 16:00, Ryan McKillen wrote:
> Martin, thanks for the continued help.
>
> David, wow. That was it. Think I subconsciously omitted them since
> it's not
> going to run through the web server. Thank you.
>
>
>
> On Wed, Oct 8, 2008
OK. It turned out to be like this: App::import('Core', 'Behavior') does
in fact import classes ModelBehavior and BehaviorCollection. But on
subsequent calls App::import() still checks if the 'Behavior' class is
defined.
So I suppose what really should be made is: rename behavior.php to
model_
Martin, thanks for the continued help.
David, wow. That was it. Think I subconsciously omitted them since it's not
going to run through the web server. Thank you.
On Wed, Oct 8, 2008 at 2:54 AM, David C. Zentgraf <[EMAIL PROTECTED]> wrote:
>
> Just to make sure:
> Your code is inside tags, is
76 matches
Mail list logo