Hi Al,
Just a wild guess, I haven't tested it:
Cakephp puts form elements in a div which is a block element. So you have to
define a class which you add to the array of your $form-input, which defines
them as a inline element.
echo $form-input('name',array('type'='checkbox', 'class' =
Hi gayatri,
If your work on a Linux ( or other iX) environment be carful with capital
letters.
Have you set the debug level in core.php to 2? Are any more errors shown? And
if this doesn't help: Send us the code or part of it.
Anja
-Ursprüngliche Nachricht-
Von:
Hi Adam,
This basically says that your array $question doesn't contain any 'Answer'.
Oh my that is nearly philosophical Let's look for the answers :c)
In your case start with
pr($question);
and see what you have in your array. If there is no ['Answer'] you have at
least the
Here some examples I use in pagination:
1st example:
$param['Bild.name LIKE'] = '%'.trim($this-data['Bild']['name']).'%';
$this-paginate = array(
'limit' = 10,
'order' = array ('Bild.name' = 'asc'),
'contain'= array(
Hi Andruu,
I had a problem like that once ans solved it by saving the 0 as String '0'.
Weird, but it worked. I guess the 0 was interpretetd as boolean false.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von andruu
Hi Bios,
What I do is in my app_cotroller.php:
$this-set('usergroup',$this-Auth-user('group_id'));
$this-set('user_id',$this-Auth-user('id'));
$this-set('username',$this-Auth-user('name'));
In the element, which I use as part of my navigation I
Hi Terion,
I also had to start out on IIS and it didn't work. Then my boss luckily
insisted on a Linux webcluster, I got a LAMPP installation and I am happy now.
Sorry I cannot help you.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com]
Hi Crazy,
When your database is on the same hardware like your webserver I guess it
shouldn't be a big differece. But when it is on a different hardware I can
imagine that dividing the load between database and filesystem might help. But
those are only guesses. Maybe somebody ales has real
Hello everybody,
I get kicked out of some actions in some controllers. I have alread
placed
function beforeFilter()
{
parent::beforeFilter();
$this-Auth-authError = sprintf(__('You are not
authorized to access that location %s .',true),$this-name);
}
Which gives
Hi Daniel,
As far as I know this works only when I am IN the action. But I wonder if I
will get there, when Auth kicks me out before.
I will try now gearoshs idea and put it in the before filter of each action.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com
Hi everybody,
After 2 weeks thinking about it and sleeping over it and setting up
aros_acos 4 times: Please maybe somebody has a good hint what I did
wrong.
Situation: CakePHP 1.2 application with Auth and ACL
Some permissions work fine e.g. I allow certain groups full access to a
certain
-...@googlegroups.com] Im Auftrag
von AD7six
Gesendet: Montag, 15. Dezember 2008 12:03
An: CakePHP
Betreff: Re: Debugging Auth: getting the name of teh action I get kicked
On Dec 15, 11:58 am, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Hi Daniel,
As far as I know this works only when
Hi,
That looks promising, I will try that out.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von gearvOsh
Gesendet: Freitag, 12. Dezember 2008 23:06
An: CakePHP
Betreff: Re: Debugging Auth: getting the name of teh action I
Hotelmasters-index
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von Liebermann, Anja Carolin
Gesendet: Montag, 15. Dezember 2008 11:57
An: cake-php@googlegroups.com
Betreff: AW: Debugging Auth: getting the name of teh action I
Hi GeneSys,
Have you indexed your foreign keys in your database properly? For our project
that was a real performance boost!
Do you use requestAction a lot? I removed it nearly everywhere by now and have
fat models instead.
Anja
-Ursprüngliche Nachricht-
Von:
Hi Sebastian,
You have to format the date for your view. If this is really woth the effort. I
had a similar problem in a non cake Project.
I played around with
$dateold = date(d.m.Y,strtotime($datefoo));
And
$datefoo= date(Y-m-d, strtotime(-$n day));
Hope that helps. Be careful what format
.
On Dec 16, 8:36 am, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Hi GeneSys,
Have you indexed your foreign keys in your database properly? For our project
that was a real performance boost!
Do you use requestAction a lot? I removed it nearly everywhere by now and
have fat
permissions on users controller if you use Auth and ACL?
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von Liebermann, Anja Carolin
Gesendet: Dienstag, 16. Dezember 2008 15:15
An: cake-php@googlegroups.com
Betreff: AW: Auth: Why has
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von Liebermann, Anja Carolin
Gesendet: Montag, 15. Dezember 2008 16:44
An: cake-php@googlegroups.com
Betreff: Auth: Why has my user no access to this action?
Hi everybody,
After 2
Hi
I haven't tested it,but I thought if you don't define
$this-Auth-loginRedirect
You get rediected to the link you came from. But maybe that doesn't work with
external links.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im
no access to this action?
On Tue, Dec 16, 2008 at 8:34 AM, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Another strange thing: my user has no rights to logout.
Question: What are the proper permissions for the user controller? Do I have
to set the permissions for login
Hi,
Just to be curious:
Has anybody ever mapped successfully permissions via
$this-Auth-mapActions to CRUD with Auth and ACL?
Teh idea seems to be wonderful, but in reality id didn't work out for
me.
Anja
--~--~-~--~~~---~--~~
You received this message because
Hi Novice,
As far as I have understood the redirect you leave it empty / undefined
to achieve, what you want.
Anja
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im
Auftrag von Novice Programmer
Gesendet: Montag, 5. Januar 2009 12:30
An:
Hi Marcus,
I guess the proper setup for the whole thing would be to have the
CakePHP-Website and the other one in parallel folders and not the independent
one in a subfolder of the Cake-Website
/
|
__cakesite
|
__other website
Anja
-Ursprüngliche Nachricht-
Von:
Hi Vikas,
As far as I understand it the session timeout is set for everybody in the
core.php.
But I don't understand at the moment what the logout time is for. Your session
gets updated with every reload and without a reload of the paage, the users
gets kicked anyway. Or is it a feature to
Dear all,
I have a function in a controller:
function getHotelmaster($id)
{
$params = array(
'conditions' = array('Hotelmaster.id' = $id),
//array of conditions
'recursive' = -1 //int
);
Since your models reflect the db structure your chances are not good when you
want to get help. I see no harm in seeing this database, you can still prohibit
that he can see other dbs on your dbserver.
Or populate the db with testdata as long as he helps you.
Greetings
Anja
is string $type ('all', 'count'
etc) or the conditions array. It is not, however, an array containing the
conditions array. Just change that to
$hotelmaster = $this-Hotelmaster-find('first', $params);
and it should work.
Chrs,
Dav
On 5 Sep 2008, at 19:21, Liebermann, Anja Carolin wrote
Hello,
I still have some problems with the parameters for find
I have two different sets of parameters but I have the impression the
result doesn't react on them, but simply gives me a list with nearly all
of my datasets:
Version 1:
$params = array(
'conditions' =
:
See:http://groups.google.com/group/cake-php/msg/7d17a42d764ccce4?hl=en
Your problem is not in your conditions, it's right here:
$this-set('textmasters', $this-paginate());
Yes, this in fact does give you *everything*.
On 9 Sep 2008, at 17:04, Liebermann, Anja Carolin wrote:
Hello,
I
:
See:http://groups.google.com/group/cake-php/msg/7d17a42d764ccce4?hl=en
Your problem is not in your conditions, it's right here:
$this-set('textmasters', $this-paginate());
Yes, this in fact does give you *everything*.
On 9 Sep 2008, at 17:04, Liebermann, Anja Carolin wrote:
Hello,
I
I would like a Death-by-chocolate cake. Brownies are also strongly appreciated!
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von
Donkeybob
Gesendet: Dienstag, 9. September 2008 19:25
An: CakePHP
Betreff: Re: Bakery Plan
can we
Hi,
I think you are faring quite well at the moment.
If you want to see your website under a real domain name you have to set up a
DNS server, or get your page registered with one. However so long as you are
just developing with it, don't bother with it. It will work as soon as your
files
I guess different tables is as bad a different databases. Why don't you have
your 10 tables and have the city correlation via an city_id field? That is what
I would do.
Greetings Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von
Wow that is really faster!
Thank you very much for your efforts. I just downloaded the new version and
donated a little financial Thank you.
Go on!
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Nate
Gesendet: Donnerstag, 2.
add it to the $uses property of your first model to access it:
var $uses = array(AssociedModel1,AssociedModel2,OtherModel);
++
Clément
On Mon, Oct 6, 2008 at 12:15 PM, Liebermann, Anja Carolin [EMAIL PROTECTED]
wrote:
Hello,
I have a method in a model and want to read values from another
Hello,
I have a method in a model and want to read values from another model in
a method.
Model: Hotel
function getanothermodelsvaules($othermodelid){
//some code
$othermodel =
$this-requestAction($this-othermodels/getMyValues/'.$othermodelid);
//some more code
}
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} =
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
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
Hi all,
Now that I have placed a function in my model rather than in my
controller to avoid requestAction I have a new problem:
The function gets data from my session.
In the controller the following works:
$user = $this-Session-read('User');
When I place this code in
and your should be done.
On Thu, Oct 9, 2008 at 12:09 PM, Liebermann, Anja Carolin [EMAIL PROTECTED]
wrote:
Hello Siegfried,
Now I try it this way:
In my controller hotels_controller.php I have set:
var $uses = array('Hotel','Hotelinfo');
And replaced
$this-data =
$this-Hotelinfo
model funtion.
Siegfried
On Thu, Oct 9, 2008 at 8:17 AM, Liebermann, Anja Carolin [EMAIL PROTECTED]
wrote:
Hello,
I have read the article by Mark Story:
http://mark-story.com/posts/view/reducing-requestaction-use-in-your-ca
kephp-sites-with-fat-models
So now I want to use that. In some
, Liebermann, Anja Carolin
[EMAIL PROTECTED] wrote:
Hi all,
Now that I have placed a function in my model rather than in my
controller to avoid requestAction I have a new problem:
The function gets data from my session.
In the controller
Hit me, but I don't see the real difference / improvement between
http://pastebin.com/m354d1d17
and
http://pastebin.com/f31071d88
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von
SamuraiDio
Gesendet: Donnerstag, 9. Oktober 2008
Hi Per,
If you haven't found out yet: This happens in Cake 1.2 when the attributes of
$form-select are null instead of array().
See this article:
http://cakebaker.42dh.com/2008/10/02/migration-from-cakephp-12-rc2-to-rc3/
I hope that helps!
Anja
-Ursprüngliche Nachricht-
Von:
Hi jst4fun,
I don't know one, but haven't investigated. I was just happy when mine worked
in the standard mode ;-)
However for me this sounds as either writing your own controller action or
using JavaScript.
Good luck!
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com
Sorry I don't understand your question, can you please describe it again a bit
differently?
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von nikunj
kansara
Gesendet: Montag, 13. Oktober 2008 09:27
An: cake-php@googlegroups.com
Hello Max,
When I migrated some months ago luckily my project wasn't online yet. The
biggest changes for me were in the forms in the syntax of form helper and html
helper. Some worked with find and replace. Other I did manually. In the
controllers I tried to avoid old functions from the
Hello,
At home I upgraded my PC to ubuntu 9.10 and I try to get cake running
again (development version).
Mod_rewrite is loaded and works for the rest of the webserver. With cake
I either get a html page with some text and not working links or I set
allowOverride to All as suggested in a lot of
:25
An: CakePHP
Betreff: Re: Mod_rewrite with Ubuntu 9.10
I'm having the exact same problem, I just posted about it last night on here.
If you figure anything out, please update!
On Feb 24, 5:01 am, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Hello,
At home I upgraded my PC
Hi Arak,
I am not sure if I understand your problem correctly, but maybe the containable
behaviour can help?
http://book.cakephp.org/view/474/Containable
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von Arak Tai'Roth
Hi all,
I have a strange warning (it seems to work though) which I don't
understand:
Warning (512): Model Vertrag is not associated with model Vertrag
[CORE\cake\libs\model\behaviors\containable.php, line 340]
This is caused by the line in vertrags_controller.php
$this-data =
Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von Liebermann, Anja Carolin
Gesendet: Montag, 16. Februar 2009 10:54
An: cake-php@googlegroups.com
Betreff: Containment: strange warning
Hi all,
I have a strange warning (it seems to work though) which I
I so completely agree with you! I often sit frowning in front of the API and a
teeny weeny example or comment would be very helpful.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von haj
Gesendet: Montag, 16. Februar 2009
Hi Amarradi,
This is how I do it:
As you can see i don't give any parameter at all, so the user cannot meddle
with it.
function edit() {
/*
* with this function the user can change his / her own password
*/
if
That is how I do it in a very complex find condition:
$param = array();
$param['Hotelmaster.deleted'] = '0';
if($this-data['Hotelmaster']['name'])$param['Hotelmaster.name LIKE'] =
'%'.trim($this-data['Hotelmaster']['name']).'%';
Sorry i don't understand your problem. Why you don't leave out the field in the
conditions? How do you build your conditions?
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von marco.rizze...@gmail.com
Gesendet: Freitag, 20.
Hi Hasentopf,
Do you think of drag and drop or sorting by clicking on the table header?
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von hasentopf
Gesendet: Dienstag, 24. Februar 2009 11:36
An: CakePHP
Betreff: Manual
I'm using Eclipse with PDT (Europa)
--~--~-~--~~~---~--~~
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
I guess you could do it via the validation rules in the model.
Anja
-Ursprüngliche Nachricht-
Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von horatio
Gesendet: Sonntag, 1. März 2009 21:29
An: cake-php@googlegroups.com
Betreff: Re: customizing error
Hi
I also have this situation: User who created an item and those who are
officially responsible for the item. Both coming from the same user table.
What I did is ( no genius solution, but it works):
E.g. when adding an item:
$responsible = $this-Vertrag-User-find('list');
In the database I
Hello everybody,
my company will forbid access to the internet within the next days, even
for the IT department. To be able to develop with CakePHP in the future
I would like to know if there is an offline documentation for CakePHP
1.2 ( manual and/or API). Any hints to counter this madness are
without a
connection *ever*.
btw, how is the IT dept. supposed to install updates, etc? Or even know about
them?
On Tue, Mar 31, 2009 at 10:24 AM, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Hello everybody,
my company will forbid access to the internet within the next days
for CakePHP?
You may want to save this link to your harddisk
http://book.cakephp.org/complete/3
Best Regards,
Dinh Ba Thanh, Jason
bath...@gmail.com
On Mar 31, 2009, at 10:24 PM, Liebermann, Anja Carolin wrote:
Hello everybody,
my company will forbid access to the internet within the next
Hello everybody,
In my installation I have different locations for cake, the app and the
webroot. Now I want to write my own shell in /app/vendors/shells
following
http://book.cakephp.org/view/110/Creating-Shells-Tasks
So that I can start something via a cronjob without having to log in.
What I
configuration based on the hostname.
On Apr 1, 9:39 am, Liebermann, Anja Carolin
anja.lieberm...@alltours.de wrote:
Hello everybody,
In my installation I have different locations for cake, the app and
the webroot. Now I want to write my own shell in /app/vendors/shells
followinghttp
Hi,
I am just running into the same problem. Have you found a solution yet?
I want to send an email via a shell script and have trouble passing teh body to
the Email component when using the mail functions from the example shell script
my. I will now try your solution.
Anja
: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag
von Liebermann, Anja Carolin
Gesendet: Freitag, 3. April 2009 12:16
An: cake-php@googlegroups.com
Betreff: AW: Sending emails in console scripts
Hi,
I am just running into the same problem. Have you found a solution yet?
I
101 - 169 of 169 matches
Mail list logo