Re: afterFind : possible to get query type?

2011-08-22 Thread acl68
I am using Cake 1.2. .

I put $this-findQueryType as debug output at the begin of the the afterFind 
method and it showed me only null  before I did anything in the method.

Anja

Am Montag, 22. August 2011, um 16:59:09 schrieb Teddy Zeenny:
 As Thomas said, $this-findQueryType should definitely work in the
 afterFind().
 
 Which version of cakephp are you using ?
 Can you show us the afterFind code ?
 
 On Mon, Aug 22, 2011 at 5:55 PM, Anja Liebermann 
 
 anja.lieberm...@platinnetz.de wrote:
  But I need the value IN the afterFind method. Not before or after.
  
  Well I do the checks now in the index and view methods of the controller.
  
  Anja
  
  Am 22.08.2011 16:39, schrieb Thomas Ploch:
   The findQueryType is reset before afterFind() is executed. So assigning
   
  the value to a class var in beforeFind() and reading it in afterFind()
  should work.
  
  :-)
  
  Am 22.08.2011 16:33, schrieb Anja Liebermann:
  did that. It is always NULL :(
  
  Anja
  
  Am 22.08.2011 16:25, schrieb Thomas Ploch:
  Look at Model::findQueryType :-)
  
  Am 22.08.2011 15:56, schrieb Anja Liebermann:
  Hello,
  
  is there a possibility to know which query type ( first, all, count
  etc...) was used, when I call afterFind()?
  
  Depending on the query Type I would like to make different checks.
  
  If it is not possible, then I have to do it in the controller in
  several actions.
  
  
  As always: Thanks in advance for any hints!
  
  Anja
  
  --
  Our newest site for the community: CakePHP Video Tutorials
  http://tv.cakephp.org Check out the new CakePHP Questions site
  http://ask.cakephp.org and help others with their CakePHP related
  questions.
  
  
  To unsubscribe from this group, send email to
  cake-php+unsubscribe@**googlegroups.comcake-php%2Bunsubscribe@googlegrou
  ps.comFor more options, visit this group at
  http://groups.google.com/**group/cake-phphttp://groups.google.com/group
  /cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cake 1.2: Containable problem with model alias

2011-05-14 Thread acl68
Hello everybody,

I try to use a containable search in a CakePHP legacy project using Cake
1.2. I have often uses containable, but never togeterh with aliases. So
no idea if that might be the poblem ore something else.

The model relations are as follows:

Group__
 hasMany Members alias Users
 belongsTo
 |__ GroupOwner alias User
 |__ LastPost alias ForumPost
|___belongsTo
|__ PostAuthor alias User

As you can see we use model aliases.

I have the following containment array:
$containment = array(
 'GroupOwner' =array(
  'fields'=array('GroupOwner.nickname',
  'GroupOwner.id')
 ),
 'LastPost' =array(
   'fields'=array(
'LastPost.user_id', 
  
   'LastPost.created'),
 'PostAuthor' =array(
   'fields' =array(
   'PostAuthor.id',
   'PostAuthor.firstname',
   'PostAuthor.nickname',
   'PostAuthor.lastname')
   )
 )
);

The strange behaviour is that I get all model data on the second level
e.g. all my GroupMembers which I don't want, but not my PostAuthor which
I want.

If I add a field condition to my find e.g.:
$groups = $this-Group-find('all', array('contain' =$containment,
'fields' =array('GroupOwner.id'), 'limit' =2));

my result looks like following:
GroupOwner (Array, 5 elements)
id (String, 2 characters ) 14
nickname (String, 11 characters ) Helfenstein
avatar (Array, 4 elements)
is_online (Integer) 0
name (String, 12 characters ) Helfenstein
LastPost (Array, 3 elements)
user_id (String, 6 characters ) 878781
created (String, 10 characters ) 1237332851
id (String, 10 characters ) 1009713631
GroupCategory (Array, 0 elements)
Member (Array, 0 elements)
Tags (Array, 0 elements)

so Members are still there, though luckily empty, but still no PostAuthor. My 
complete Information from the Group model is missing, too

*sigh*

Has anybody an idea what might be the problem?

Of course var $actsAs = array('Containable'); is set in the app_model.php

I find this a very strange behaviour (no pun intended).

Thanks in advance for any help!

Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Server trouble

2011-04-25 Thread acl68
Hi Labe,

if you have the default cake configuration you might not have to adapt anything 
with the .htaccess file. But some ftp clients don't transfer the hidden files. 
So check if they are on your server.

Anja


Am Montag, 25. April 2011, um 05:20:16 schrieb Labe Einhorn:
 Thanks for responding, i'm not going to be able to do some of these
 tests till a little later in the week, but as for what I have seen so
 far, I have tried setting a path both absolute on the server and
 relative to the web directory, I have set the debug to 2 but saw no
 log generated. One thing that is unusual is it works flawlessly when I
 tried it in xamp on my windows box so it may be server related.
 The .htaccess I have no idea what I need to change in it to what. I
 did at one point try to make a small html file under the root of the
 site, cake seemed to take over and display it's own page rather than
 the one I wanted it to show. I'll try a txt file next time, it is a
 subdomain which may be the issue, but I didn't see any configuration
 issues (though that being said i'm not really a web server admin so I
 may not be seeing what the issue is. NSLOOKUP responds correctly but
 pings on the server are blocked so there wouldn't be a response to
 pings. I looked at the error logs a few days ago and saw nothing I saw
 as unusual. At one point it was showing db connect errors (had to
 update the login for it) as soon as the login info for the db was
 correct, that is when it started going to the other site. I will check
 the rest of the questions out when I get back.
 
 On Apr 24, 7:22 pm, cricket zijn.digi...@gmail.com wrote:
  On Sun, Apr 24, 2011 at 3:51 PM, Labe Einhorn fifog...@gmail.com wrote:
   Hi,
   Not sure if i'm in the right place for this but I was hoping someone
   could point me to where I need to look. I have a webhost with a
   standard linux distribution and i'm trying to use some code a
   developer made for me. Problem is their code (based on cakephp) is not
   functioning correctly and I don't know why. What is happening is I go
   to the site in question and it goes to a completely different site on
   the host. None of the logs are showing anything that I can determine
   as an issue, the host is helping me but their not programmers, where
   the programers will not work with me citing all information is going
   to be one way, from us to you and I don't know where to look to get
   this issue resolved, any idea where I should look for a solution?
   Labe
  
  Can you visit any URL at all under the domain or is this occurring
  with just some paths?
  
  Create a file at app/webroot/foo.txt, contents: foo. If it happens
  when you browse tohttp://the.domain/foo.txtthen the problem is with
  either the webserver or DNS and Apache is loading the default site
  (eg. first loaded virtual host) instead.
  
  Is the site a subdomain?
  Can you ping the domain? From a shell (on your computer), try
  nslookup the.domain
  If you're on Windows, try
  this:http://www.windowsnetworking.com/articles_tutorials/Quickly-Test-DN
  S-...
  
  Has the virtual host config been created/enabled?
  Has Apache been reloaded/restarted?
  Have you checked Apache's error and access logs?
  
  If you DO see foo.txt ...
  
  What version of Cake are you running?
  If not all paths are affected, which ones are?
  set debug to 2

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Pagination hasMAny

2011-04-24 Thread acl68
Ho Domink,

maybe this link can help you:

http://stackoverflow.com/questions/1694047/cakephp-pagination-with-conditions-
on-has-many

On the first glance it looks like somebody has the same problem.

Anja


Am Samstag, 23. April 2011, um 23:47:26 schrieb Dominik Gajewski:
 Hi.
 I have problem with pagination. Everything is working till i don't
 want sort byt admission date. I think is only need to add one line of
 code in $var paginate. Or maybe that is problem becasue UserData
 hasMany MainBook and i want select only this one which is empty in
 field MainBook.extract_date
 
 Could you help me?
 
 I have tables in database
 
 user_datas
 
 id
 user_id
 name
 sName
 surname
 birthDate
 sex
 nationality
 pesel
 
 main_books
 
 id
 year
 baby_id
 user_data_id
 admission_date
 admission_mode
 extract_date
 extract_mode
 doctor_id
 
 Model MainBook
 ===
 class MainBook extends AppModel{
   var $name = 'MainBook';
 
   var $belongsTo = array(
   'UserData' = array(
   'className' = 'UserData',
   'foreignKey' = 'user_data_id'
   )
   );
 }
 
 Model UserData
 ===
 class UserData extends AppModel{
   var $name = 'UserData';
   var $hasMany = array(
   'MainBook' = array(
   'className' = 'MainBook',
   'foreignKey' = 'user_data_id'
   ),
   );
 }
 
 MainBooksController
 ===
 class MainBooksController extends AppController{
 
   var $name = 'MainBooks';
 
   var $paginate = array(
 'limit' = 20,
 'order' = array(
   'UserData.surname' = 'asc',
 ),
 'conditions' = array(
   'User.status' = '1'
 ),
 );
 
 
   function show_current(){
   /**
   Menu i kontrola sesji
*/
   $s = $this-sesionCheck(2);
   $m = $this-menu($s);
   $this-set('menu', $m);
 
   $data = $this-paginate('UserData');
   $this-set('data', $data);
 
 
   }
 }
 
 My view show_current.ctp
 table
   tr
   th?php echo $this-Paginator-sort('Name', 'UserData.name'); 
?/th
   th?php echo $this-Paginator-sort('Surname', 
'UserData.surname');
 ?/th th?php echo $this-Paginator-sort('PESEL', 'UserData.pesel');
 ?/th th?php echo $this-Paginator-sort('Admission Date',
 'MainBook.admission_date'); ?/th?
   /tr
  ?php foreach($data as $val): ?
   tr
   td?php echo $val['UserData']['name']; ? /td
   td?php echo $val['UserData']['surname']; ? /td
   td?php echo $val['UserData']['pesel']; ? /td
   td?php echo $val['MainBook'][0]['admission_date']; ? /td
   /tr
   ?php endforeach; ?
 /table

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Validation for a complex form

2011-04-24 Thread acl68
Hi Milos,


can you post the validation rules for this checkboxes and radio buttons? 


Anja


Am Sonntag, 24. April 2011, um 10:41:55 schrieb Miloš Vučinić:
 Hi,
 
 I have a form which has many select boxes as well as many radio
 groups. The problem I'm having is that when I validate the data in the
 model, I receive general error If some data is not entered, but it is
 not shown under the radio button group or near a select box item.
 
 If I place a regular input text field , the validation message is show
 correctly.
 
 Can anyone help me with this ? Did anyone experience similar
 problems ?
 
 All the best,
 Milos Vucinic

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: You favorite IDE/ Dev Setup?

2011-04-24 Thread acl68
kubuntu 10.4
Eclipse PDT
Apache/MySql

Anja


Am Mittwoch, 30. März 2011, um 21:49:47 schrieb Chris:
 How do you develop for CakePHP? OS, Editor, control system, etc.?
 Ubuntu 10.10
 Geany
 GIT
 Apache/MySql
 Bunch of Shell scripts

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Server trouble

2011-04-24 Thread acl68
Hi Labe,

set in the file /config/core.php the debug value to at least 1 better 3, so you 
might get some output.

Are you sure the path to your cake folder is set correctly? It might be that 
you have to use an absolute path here.

Please check if you copied all .htaccess files when moving them to the live 
host.


These are the three hints which come to my mind. Hope that helps!

Anja


Am Sonntag, 24. April 2011, um 21:51:38 schrieb Labe Einhorn:
 Hi,
 Not sure if i'm in the right place for this but I was hoping someone
 could point me to where I need to look. I have a webhost with a
 standard linux distribution and i'm trying to use some code a
 developer made for me. Problem is their code (based on cakephp) is not
 functioning correctly and I don't know why. What is happening is I go
 to the site in question and it goes to a completely different site on
 the host. None of the logs are showing anything that I can determine
 as an issue, the host is helping me but their not programmers, where
 the programers will not work with me citing all information is going
 to be one way, from us to you and I don't know where to look to get
 this issue resolved, any idea where I should look for a solution?
 Labe

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


URL-based language switching for i18n and l10n

2011-04-23 Thread acl68
Hello,

I try to setup a multilanguge site with CakePHP and followed this tutorial. 

http://nuts-and-bolts-of-cakephp.com/2008/11/28/cakephp-url-based-language-
switching-for-i18n-and-l10n-internationalization-and-localization/

I use Cake 1.3 and it doesn't work. I guess it might crash with other features 
of my application, but I have no idea where to look.

What happens is: 
http://localhost/cigar/eng/addresses/suche
gives me the identical German output as 
http://localhost/cigar/ger/addresses/suche
( I used for testing German and English language. Both po files exist and sit 
in the usual directories.)


The debug output of my session cookie looks like this: 
Array
(
[Config] = Array
(
[userAgent] = ef7661414bbc83a00b99603c50cbc224
[time] = 1303605745
[timeout] = 10
[language] = ger
)

)

ger is what I defined in the core.php. 
So far so good, but I cannot switch the language to English by clicking on the 
link the tutorial mentiones. Also the cookie value stays the same, even after 
deleting the cookie and relloading 
http://localhost/cigar/eng/addresses/suche

Even when I set 
Configure::write('Config.language', 'eng'); 
and delete the cookie and reload everything still stays German.


Any idea what might have gone wrong? 


Thanks in advance for any help

Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


State of teh art way to SEo urls

2011-04-07 Thread acl68
Hello,

I am looking for a way to have SEO urls.


At the moment my urls look like this:
http://www.zigarrenlounge.eu/addresses/view/99

I would like to have something like this
http://www.zigarrenlounge.eu/addresses/view/restaurnt-elisenbrunnen
so instead of the id I would have the display name (maybe id enhanced to have 
something unique).

I searched the web and found several solutions between 2006 and 2009. What is 
the state of the art method to achieve this in the year of 2011 using Cake 
1.3? 
Any suggestions anybody?


Thanks in advance for any help

Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: use alternative view folder?

2011-03-01 Thread acl68
Why do you need this version2? 

I think it isn't possible what you ask, but if you explain a bit more 
detailed, what you want to achieve, there might be another solution.

Who should see version2 in which case?

Anja


Am Dienstag, 1. März 2011, um 10:01:35 schrieb K3:
 Hi,
 
 if i add another subfolder in /app/view where i want to put
 alternative view structure of the site, so for example for articles
 folder i have following structure:
 
 /app/
  /view/
 /_version2/
/articles/
  /articles/
 
 and i have 2 files
 /app/view/articles/index.ctp and /app/view/_version2/articles/
 index.ctp
 
 In general i want to render view from alternative folder if that view
 exists. something like:
 
 if (/app/view/_version2/xx/y.ctp exists) {
render(/app/view/_version2/xx/y.ctp);
 } else {
render(/app/view/xx/y.ctp);
 }
 
 is this possible?
 i wanted to add such control in beforeRender, but seems there i can't
 control which view to render, only to post variables to the view. Any
 thoughts?
 
 Thanks in advance

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Lost in Testing: Fixtures / testAction

2011-02-26 Thread acl68
Hi Ryan,

thank you for your research that helps me at least with the redirect.


What I still don't understand is how the data at 
/tests/fixtures/somemodel_fixture.php relates to the $this-Somemodel-data 
Array im Marks tutorial. When do I use which? Do I use both? 

Thanks for any hints!

Anja


Am Samstag, 26. Februar 2011, um 00:19:31 schrieb Ryan Schmidt:
 On Feb 25, 2011, at 07:06, acl68 wrote:
  Also: does anybody know what happened to the link in 4.7.6.3 Pitfalls
  http://book.cakephp.org/#!/view/1213/Pitfalls in the cookbook? The Link
  to the mentioned tickets doesn't work. So I am not sure how to proceed,
  because nearly all my methods use redierts after the did what they
  should do.
 
 Your link did not work for me, but I used the search field and typed in
 pitfalls and it got me to
 
 http://book.cakephp.org/view/1213/Pitfalls
 
 which did work. All it says is:
 
 If you use testAction to test a method in a controller that does a
 redirect, your test will terminate immediately, not yielding any results.
 
 See https://trac.cakephp.org/ticket/4154 for a possible fix.
 
 
 And I see trac.cakephp.org no longer works. I know the team has moved from
 Trac to Lighthouse for issue tracking, and as I understand it, has not
 necessarily copied all old issues from Trac to Lighthouse.
 
 Here is a cached version of that ticket:
 
 http://webcache.googleusercontent.com/search?q=cache:hK6fIPD0bqgJ:https://t
 rac.cakephp.org/ticket/4154

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Admin Route or Admin Password

2011-02-26 Thread acl68
Hi Marcus,

you have no password automatically set. Cake is a framework an not an WCMS. 
You can code a user authenitication and autheticated users can be allowed to 
use the admin methods, but when you start you have no values, no passwords, no 
login.

Have a look here:
http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/
This is based on cake 1.2 but should work for 1.3, too.

Hope that helps!

Anja


Am Samstag, 26. Februar 2011, um 19:54:38 schrieb amarradi:
 Hello together,
 
 when i add the admin routing to my Application, where did i set the
 Password for Admin. Or an other Question. Whats the standard-Password
 for Admin?
 
 Many greetings
 Marcus Radisch

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Admin Route or Admin Password

2011-02-26 Thread acl68
Hi Marcus,


I tried a lot, too , until it finally worked, it is not really simple. Which 
kind of password hashing do you use? 
Try to  debug output the password from the db and the hashed password you give 
at the login form.


Anja


Am Samstag, 26. Februar 2011, um 20:21:16 schrieb amarradi:
 Thanks a lot,
 
 I tryed this video tutorial
 http://tv.cakephp.org/video/jasonwydro/2011/01/29/cakephp_1_3_auth_authenti
 cation_component_tutorial_-_administrator_login This System runs also under
 1.3.7. But the login doesn't work
 
 On 26 Feb., 20:08, acl68 c...@anjaliebermann.de wrote:
  Hi Marcus,
  
  you have no password automatically set. Cake is a framework an not an
  WCMS. You can code a user authenitication and autheticated users can be
  allowed to use the admin methods, but when you start you have no values,
  no passwords, no login.
  
  Have a look
  here:http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/
  This is based on cake 1.2 but should work for 1.3, too.
  
  Hope that helps!
  
  Anja
  
  Am Samstag, 26. Februar 2011, um 19:54:38 schrieb amarradi:
   Hello together,
   
   when i add the admin routing to my Application, where did i set the
   Password for Admin. Or an other Question. Whats the standard-Password
   for Admin?
   
   Many greetings
   Marcus Radisch

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Lost in Testing: Fixtures / testAction

2011-02-25 Thread acl68
Hi everybody,

I am using Cake 1.3. and am just doing my first steps with testing ever. 

I had a look at 
http://book.cakephp.org/#!/view/1210/Testing-controllers
and worked through Marks Tutorial 
http://mark-story.com/posts/view/testing-cakephp-controllers-the-hard-way

Since I am completely new to testing and quite stumbling around I am not sure 
how these two relate to each other. Are those different concepts in testing 
controllers? 

Also: does anybody know what happened to the link in 4.7.6.3 Pitfalls 
http://book.cakephp.org/#!/view/1213/Pitfalls in the cookbook? The Link to the 
mentioned tickets doesn't work. So I am not sure how to proceed, because 
nearly all my methods use redierts after the did what they should do.


Thanks in advance for any help!

Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Search function

2011-02-25 Thread acl68
Hi Sandwich,

I did something simliar like you want to do with the checkboxes with a drop-
down list. I didn't use the searchable-behaviour-for-cakephp but used AJAX 
instead.

On top of my search from ctp I includ a JavaScript file:
script type=text/javascript src=/ww/js/foodselect.js/script

In my search form I have my dropdown:
echo $this-Form-input('category_id', array('onChange' = 
'getFoodByCategory()', 'empty' = '---'));

foodselect.js:

function getFoodByCategory() {
var category_id = document.getElementById('UserpointCategoryId').value;
// alert(category_id);

// alert('/ww/foods/getFoodByCategory/' + category_id);
$.post('/ww/foods/getFoodByCategory/' + category_id, function(data) {
document.getElementById('UserpointFoodIdDiv').innerHTML 
= data;
});

}

in my foods controller I have the function:

function getFoodByCategory($category_id = null) {
$this-layout='ajax';
$this-Food-recursive = 0;
$this-Food-order = array('Food.name asc');
$param = array( 'conditions' = array('Food.category_id' = 
$category_id)); $foodall = $this-Food-find('all',$param);
foreach ($foodall as $food){
$li[$food['Food']['id']] = $food['Food']['name'].' ('.
$food['Food']['points'].' Punkte)';
}

$this-set('foods',$li);
}

This together fills my another dropdown with my food selection, but you can 
also have a div filles with an index table, depending what you want.

the output is formatted in the file /views/foods/get_food_by_category.ctp
In my case it creates the dropdown:
?php
//debug($foods);

echo 'select name=data[Userpoint][food_id] id=UserpointFoodId';

foreach($foods as $key = $value){
echo utf8_decode ( 'option value='.$key.''.$value.'/option');
}
echo '/select';
?


In Javascript a dropdown is easier to handle than checkboxes, as you might 
know, but they should also work.

Hoep that example helps

Anja





Am Donnerstag, 24. Februar 2011, um 20:13:03 schrieb MeatSandwich:
 Hi all,
 
 I'm new to cakephp and only know a bit of php so I'm on a steep
 learning curve since although I've made websites using php and mysql
 before they were all a bit simple. I'm not looking for code here but
 some pointers for me so I know what to learn.
 
 The app I'm making will end up with lots of members and I'd like to
 make a search function so people can find other people easily. I've
 discovered searchable-behaviour-for-cakephp and hopefully that'll
 provide most of what I want but as another way to search rather than a
 text box, I'd also like to have the letters of the alphabet so a user
 can click and go straight to that letter.
 
 As well as that, members will say in their profiles what their
 favourite animals are, ie cats/dogs/horses etc - they'll have 20 to
 choose from. I'd like my search function to have checkboxes
 representing each animal and someone who was searching could check the
 dogs box and only people who like dogs will be listed, they could then
 also check cats box and the members who like dogs and cats will be
 shown. If possible I'd like the list to update automatically as each
 box is clicked.
 
 I have everything else set up and only need help with this search
 part. Assuming searchable-behaviour-for-cakephp does me for my text
 search box, I reckon the alphabet thing will be something like making
 a link for each letter and somehow making that link run a query,
 hopefully that will work.
 
 But the checkbox thing that updates automatically I'm not sure about.
 Is it ajax I need? Are there any particular methods I should be using?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Please help me decide - cakePHP for my project

2011-02-15 Thread acl68
Hi Panupat,

with some of your questions I can help you, siee below.


Am Dienstag, 15. Februar 2011, um 07:51:09 schrieb Panupat:

 
 - Authenticate against Windows Active Directory.
 
 When log in, I will use php-ldap to do simple bind. Upon success, user
 ldap search to get memberOf attribute and do a little comparison to
 determine the user's group. That's pretty much all the active
 directory stuff I need. Everything else will be stored in MySQL.
 
 Here's my first concern. Some of the frameworks I tried forced me to
 have a password column for the user in SQL tables too. Will cakePHP
 force me to do so? I want to leave the password entirely to the active
 directory, users are not even allowed to change it through the
 website.

Sorry never did that. maybe this article helps you:
http://bakery.cakephp.org/articles/psychic/2009/03/12/ldap-models-in-cakephp

 
 - Log in, log out, cookies.

No problem. Activate the inbuilt the Auth and Session component.
 
 - Upload and file operation.
 
 I need to be able to control exactly where the upload files are going,
 and what it will be named. Also, I need to exec command line to call
 other programs to do conversion/compression on those files. Will
 cakePHP be able to assist me with such task?
It is nor help or hindrance. Cake will help you saving the data in your db, 
the rest you will have to code on your own, as with any other framework i 
guess.

 
 - JSON/XML generator.
 
 My website will use small little AJAX all over the place. Is cakePHP
 good with generating bits and pieces of JSON/XML?
Never tried JSON on my own so far, but already have written a huge XML export, 
which was no problem. 

Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Moving servers

2011-02-13 Thread acl68

Thanks in advance for any help

Anja


Am Sonntag, 13. Februar 2011, um 22:03:14 schrieb Adam Harness:
 I am moving a cake built website to another server. All pages in the
 cake app directory are not found when attempting to open in the
 browser.
 
 Any insight would be helpful and greatly appreciated.

Did you also move the .htaccess files?


Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cake 1.3 Paging with HABTM

2011-02-03 Thread acl68
Hello,

I write an address organization program for my SO and myself. So I have a lot 
of adresses which belong to at least one user.

I have problem prorgamming the search, when the user is the search criteria.

Very simple: I have a HABTM connection between users and adresses. When I use 
'find' it works as it should, but I have problems when using the 'paginate' 
function. 
When I search I get the following error:
SQL Error: 1054: Unknown column 'AdressensUser.user_id' in 'where clause'
which is no wonder since cake doas not join my connection table.

What I found on the web relates to cake 1.1 or 1.2 and I would like to know if 
anybody has solved the problem in cake 1.3

My code in detail:

in the adressens_controller I have the function 'search' after putting 
together my search parameters $param they result in the follwing array:

$param
Array
(
[Adressen.vorname LIKE] = %Anja%
[or] = Array
(
[0] = Array
(
[AdressensUser.user_id] = 1
)

[1] = Array
(
[AdressensUser.user_id] = 2
)

)

)
( This should give me all adresses which belong to either of those users)


$paginator_params = array(-
'controller' = 'adressens',
'action' = $this-action,
'pass'
);

$this-paginate['Adressen'] = array(
'limit' = 10,
'order' = array ('Adressen.nachname' = 'asc'),
'url' = $paginator_params
);

//here I get the data and the error
$adressens = $this-paginate('Adressen',$param);

Should I have the serach function in the users controller instead? Is there a 
tutorial somewhere out there which is valid for 1.3?

Thanks in advance for any help and hints

Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Login Form not working for noob

2011-02-03 Thread acl68
Hi Goluhaque,

Login can be a bit complicated. Do you user the authetication component? Which 
version of cake do you use?

have you already checked out this pages?

http://tv.cakephp.org/video/jasonwydro/2011/01/29/cakephp_1_3_auth_authentication_component_tutorial_-
_administrator_login

http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/

http://bakery.cakephp.org/articles/SeanCallan/2007/04/17/simple-form-
authentication-in-1-2-x-x

Hope that helps. If not come back!


Anja


Am Donnerstag, 3. Februar 2011, um 16:45:00 schrieb goluhaque:
 Hey guys, just started using CakePHP yesterday, so I guess, you may find
 many error in this one. My problem is,
 
 
 function taa_login($password = null) { $this-Session-setFlash('You are at
 the taa-login page.'); if(isset($this-data)){ $this-post-pass =
 $password; if(empty($this-data)) { echo('You gotta enter a proper
 password, nigga.'); } else { $this-Session-setFlash('You are correct.
 Your password is '); $this-redirect(array('action' = 'index')); } } }
 
 
 This was my controller code. I have created the view, here it is
 
 !-- File: /app/views/posts/taa_login.ctp -- h1Login/h1 ?php echo
 $this-Form-create('Post', array('action' = 'taa_login')); echo $this
 -Form-input('password'); echo $this-Form-end('Login'); ?
 
 
 My problem is that I don't know how to handle the variables from that form.
 For example, the password thing, how do I handle that in my controller?
 Also, there is one another thing I can't understand, where do I check
 whether the password supplied is right or not, the model or the controller?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CSS Pagination Indicator

2011-02-03 Thread acl68
Hi hill,

which encoding do you use? I suggest  utf8 and you are done!

have a look in your default ctp: Do you use

 header(Content-Type: text/html; charset=utf-8); 

Anja


Am Donnerstag, 3. Februar 2011, um 17:31:59 schrieb hill180:
 In the CSS is have:
 th a.asc:after {
   content: ' ⇣';
 }
 When a pagination link is clicked:  it should look like this:
 
 Before
 
 NAME
 
 AFTER
 
 NAME ⇣
 
 But what I am getting is
 
 NAME ⇣
 
 I know it has something to do with the encoding, just don't know where.
 
 Thanks!
 PS
 
 (mac/MAMP/chromesafari)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cake 1.3 Paging with HABTM

2011-02-02 Thread acl68
Hello,

I write an address organization program for my SO and myself. So I have a lot 
of adresses which belong to at least one user.

Very simple: I have a HABTM connection between users and adresses. When I use 
'find' it works as it should, but I have problems when using the 'paginate' 
function. 
When I search I get the following error:
SQL Error: 1054: Unknown column 'AdressensUser.user_id' in 'where clause'
which is no wonder since cake doas not join my connection table.

What I found on the web relates to cake 1.1 or 1.2 and I would like to know if 
anybody has solved the problem in cake 1.3

My code in detail:

in the adressens_controller I have the function 'search' after putting 
together my search parameters $param they result in the follwing array:

$param
Array
(
[Adressen.vorname LIKE] = %Anja%
[or] = Array
(
[0] = Array
(
[AdressensUser.user_id] = 1
)

[1] = Array
(
[AdressensUser.user_id] = 2
)

)

)
( This should give me all adresses which belong to either of those users)


$paginator_params = array(-
'controller' = 'adressens',
'action' = $this-action,
'pass'
);

$this-paginate['Adressen'] = array(
'limit' = 10,
'order' = array ('Adressen.nachname' = 'asc'),
'url' = $paginator_params
);

//here I get the data and the error
$adressens = $this-paginate('Adressen',$param);

Should I have the serach function in the users controller instead? Is there a 
tutorial somewhere out there which is valid for 1.3?

Thanks in advance for any help and hints

Anja

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Internationlization Doesn't Seem to Work.

2011-02-02 Thread acl68
Hi Nikola,

as euromark said: the folder name should be deu not ger. Just made the same 
mistake some days ago. ;c)

Anja

Am Mittwoch, 2. Februar 2011, um 00:52:55 schrieb Salines:
 Do you have other files in the app/locale/ger/LC_MESSAGES/ ??
 
 On 1 velj, 01:21, andrewperk andrewp...@gmail.com wrote:
  Hello, I'm trying to get my application to use a different language
  using cake's i18n. I believe I have my application set up properly.
  
  core.php
  Configure::write('Config.language', 'ger');
  
  Posts Controller Flash message:
  $this-Session-setFlash(__('You must be registered before you can ask
  a question.', true), 'error');
  
  app/locale/ger/LC_MESSAGES/default.po   (created using i18n console
  then poedit)
  The translation should be:
  Sie müssen registriert sein, bevor Sie eine Frage kann fragen.
  
  But my application is not using the translated version from my .po
  file. Its still using the english version.
  
  Am I missing something here? Thanks for any help.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread acl68
Hi Salines,

be sure to set up you application so to get the full benefit from caching. Use 
fat models and cache elements where possible.

http://gluei.com/blog/view/cakephp-best-practices-fat-models-and-skinny-
controllers
http://book.cakephp.org/view/1083/Caching-Elements

Anja

Am Mittwoch, 2. Februar 2011, um 00:45:07 schrieb Salines:
 Hi,
 
 My next project requires the following:
 
 Social networking
 l10n / i18n
 60 or more tables in the database
 many tables have multiple associations
 user has many associations
 track user activity
 user has a daily statistics (hits user page, ..)
 RBAC / ACL, user privileges: Guest, registered, premium, translator,
 moderator, admin, ..
 pay per sms, credit card payment gateway
 SLUG
 etc
 
 We want to build a system for potential 100,000 users of our services
 in the first year.
 Content on the site will attract a large number of hits.
 
 For future growth:
 db prepared for load balancing
 separate servers for images and video etc
 Nginx server for application, etc
 
 I want to hear your views, articles on the net does not provide enough
 information, most of them old, others suggest other frameworks,
 
 http://www.google.com/search?q=php+frameworks+large+scale
 
 Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Problem with simple SaveAll

2010-08-27 Thread acl68
Hi folks,

i do an import from xml-data and have finally succsefully extracted my
data. So now I want to save its with saveAll and nothing arrives in my
database (Mysql innodb)

This ist what I do:

model validation rules:
var $validate = array(
'hotel_id' = array(
'numeric' = array(
'rule' = array('numeric'),
//'message' = 'Your custom message here',
//'allowEmpty' = false,
//'required' = false,
//'last' = false, // Stop validation after 
this rule
//'on' = 'create', // Limit validation to 
'create' or 'update'
operations
),
),
'leistungsbeschreibung_id' = array(
'numeric' = array(
'rule' = array('numeric'),
//'message' = 'Your custom message here',
//'allowEmpty' = false,
//'required' = false,
//'last' = false, // Stop validation after 
this rule
//'on' = 'create', // Limit validation to 
'create' or 'update'
operations
),
),
'aibeschreibung' = array(
'notempty' = array(
'rule' = array('notempty'),
//'message' = 'Your custom message here',
//'allowEmpty' = false,
//'required' = false,
//'last' = false, // Stop validation after 
this rule
//'on' = 'create', // Limit validation to 
'create' or 'update'
operations
),
),
);

extracted data array I want to save:

var_dump($data['Allinclusive']);

gives me:

array
  0 =
array
  'hotel_id' = string '1' (length=1)
  'leistungsbeschreibung_id' = string '1' (length=1)
  'aibeschreibung' = string 'Vollpension in Buffetform mit
Getränken (Mineralwasser, Tischwein, Erfrischungsgetränke und
Bier).' (length=100)
  'aiart' = string 'Vollpension' (length=11)
  'id' = string '' (length=0)
  1 =
array
  'hotel_id' = string '1' (length=1)
  'leistungsbeschreibung_id' = string '1' (length=1)
  'aibeschreibung' = string 'Von 08:00-24:00 Uhr alkoholische und
nicht-alkoholische Getränke an der Hotelbar (ausgenommen: teurer Wein,
Sekt und Champagner), Kaffee/Tee und Gebäck von 15:30-17:30 Uhr an der
Salonbar.' (length=190)
  'aiart' = string 'All Inclusive' (length=13)
  'id' = string '' (length=0)
  2 =
array
  'hotel_id' = string '1' (length=1)
  'leistungsbeschreibung_id' = string '1' (length=1)
  'aibeschreibung' = string 'Alle Getränke und Mahlzeiten an der
Beachbar/-club.' (length=52)
  'aiart' = string 'Nicht in All Inclusive enthalten' (length=32)
  'id' = string '' (length=0)


As you can see I have the data for three datasets in an numeric array.

Im my controller:
if(isset($data['Allinclusive']))$err = $this-Hotel-
Leistungsbeschreibung-Allinclusive-
saveAll($data['Allinclusive']);
 var_dump($err);

$err is true, but nothing is saved to my database.
Why oh why?

Cookbook says:
http://book.cakephp.org/view/1031/Saving-Your-Data
Not that we are passing $data['Article'] instead of usual $data. When
saving multiple records of same model the records arrays should be
just numerically indexed without the model key. I guess the Not is
a typo and should be Note. However exactly my example is shown here,
except that I call the saveAll through my related models, bit without
savinbg any of them.

So is calling in my hotels_controller.php
$this-Hotel-Leistungsbeschreibung-Allinclusive-
saveAll($data['Allinclusive']);
the same like calling
$this-Allinclusive-saveAll($data['Allinclusive']);
form the allincluves_controller.php?

I thought yes, but obviously something isn't working at all.

Thanks in advance for any hints!

Anja



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, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: CakePHP 1.3 on ubuntu: white page, no error, no application

2010-04-19 Thread acl68



cricket-5 wrote:
 
 
 Ensure you have the following in php.ini:
 
 error_reporting = E_ALL
 display_errors = On
 
 Also, are you certain that the ww vhost doesn't have its own log?
 
 Also, try putting the following at top of webroot/index.php
 
 die('well, it works this far');
 
 

Thank you that helped. Error display_errors was set to Off and with the
error messages displayed I could easily fix it!

Thank you , you saved my desk from being bitten in frustration by me!

Anja

-- 
View this message in context: 
http://old.nabble.com/CakePHP-1.3-on-ubuntu%3A-white-page%2C-no-error%2C-no-application-tp28284886p28287737.html
Sent from the CakePHP mailing list archive at Nabble.com.

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, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


CakePHP 1.3 on ubuntu: white page, no error, no application

2010-04-18 Thread acl68
Hi all,

I developed an application with CakePHP 1.3 on a windows XP machine
and it works well. Then I transfered it via 2x ftp to my ubuntu 9.10
machine at home, where a 1.2 application is running flawless.  When I
enter my application folder I only see a blank page, no errors in the
application error.log, no errors in the apache error.log and no
application.

application budget (cake 1.2) - http://localhost/budget/ works fine
application ww (cake 1.3) - http://localhost/ww/ white page

Both application follow the development setup, so cake is in the
folder an nowhre else, so they shouldn't interfere.

Any idea what is going wrong?

Thanks a lot for your help in advance!

Anja

PS: Debug set to 1, PHP5, Mysql 5.1

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, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: $form-select for multiple selections

2008-09-02 Thread acl68


My problem was a caching problem as it seems:

What works ( at the moment at least *g*)

$attributes = array('size'=3,'multiple'= true);
echo $form-select('foo.faa',$farray,null,$attributes,true);
-- 
View this message in context: 
http://www.nabble.com/%24form-%3Eselect-for-multiple-selections-tp19275223p19275336.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



$form-select for multiple selections

2008-09-02 Thread acl68


Hello everybody,

I am using cake 1.2 and look for the proper cake syntax to give me this html
result in my view:

select name=[foo][faa] size=3 multiple=multiple
  optionHeino/option
  optionMichael Jackson/option
  optionTom Waits/option
  optionNina Hagen/option
  optionMarianne Rosenberg/option
/select

I tried quite a lot of variations already, but nothing gives me a multiple
select box.

Last try was ($farray being my options array):

echo $form-input('foo.faa',
   array('type'='select',
   'options'= $farray,
   'attributes'= array('size'=3, 'multiple'= 'true'),
'showEmpty'=true));

Anyone a better or even correct suggestion?

Thank you!

Anja





-- 
View this message in context: 
http://www.nabble.com/%24form-%3Eselect-for-multiple-selections-tp19275223p19275223.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



temporary download - header trouble

2008-05-09 Thread acl68

Hello,

I program a contract management software, where the contracts can be
uploaded as pdf and later be viewd as a download.

Since not everybody should be able to see every contract I don't want
to store the pdfs in the files directory of the webroot, but in
another directory not directly accessible via the web frontend (I
chose a subdirectory of my application directory). Then I want to
offer the pdf as a temporary download.

Normally soemone would do it like this:
header(Content-Type: x-type/subtype);
header(Content-Length: .filesize($file));
header(Content-Disposition: attachment; filename=.$file);

readfile($file);

But of course with MVC in CakePHP I get the error messages:
Warning: Cannot modify header information - headers already sent
by

Does anyone have an idea how I can offer my file as a temporary
download without getting the header trouble?

Thank you in advance

Anja


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Migration from Version 1.1.19.6305 to 1.2

2008-05-09 Thread acl68

Hello everybody,

when I started with cake some months ago Cake 1.2 was (like it is
still now) an unstable pie ( black forest cream cake in the sun? *g*).
So I started with version 1.1.19, but I don't use any deprecated
functions.

Do I have to expect trouble If I migrate to 1.2?
I am asking, because my test application might get the honours to be
transferred to a production environment and I contemplate to install
cake 1.2 beta instead of the stable version 1.1.19 instead of
upgrading it in a few months.

What would you guess. Good idea?

Anja

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Session : Single Sign on from other application

2008-04-21 Thread acl68

Hello,

I already did that. So finally I'm not getting the error messages
about sessions already started, etc. anymore.

I can read the user name now from the session but not the other
information stored in the non-cake-session-object.

What I did now is not very elegant, but better than nothing: I have a
menu item my access rights and when you click on it a function in
teh controller checks your accoutn and reads the account details
finally in the cake session object.

Greetings  Anja


  You may want to reset the Session cookie name from CAKEPHP to
 PHPSESSID or anything that the other application is using. Look at
 core.php
mBlog:http://rajeshanbiah.blogspot.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Session : Single Sign on from other application

2008-04-21 Thread acl68

Thanks Nelson for the hint.
Although I need the data transfer to go  the other way round  maybe
this will also be a source for inspiration.


Anja

On 18 Apr., 23:28, Nelson Cysneros [EMAIL PROTECTED] wrote:
 have you looked at this thread?

 getting cake DB session to an external application:

 http://groups.google.com/group/cake-php/browse_thread/thread/5a868ad2...

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Session : Single Sign on from other application

2008-04-18 Thread acl68

Hello everybody,

I was programming an application with Cake and all was well ;-)
Then my colleague and I had the idea to share the login procedure with
the applications he is maintining, so that the login in his
application and the information should be passed on to my cake
application - Single Sign On for our users!

Now I have deep trouble to get those two applications to work
together. Using the user table from the other database was simple, but
checking whether somebody has already logged on is what I don't get to
work. The Userinformation is in the common user table, but how can I
load the userinformation in my application without an additional
login?

Has anyone an idea?

My ideas are:
1. Switch Cake session handling completely off and use the session
objects of the general application. But how can I do that?

2. Transfer the information from Object/Session_otheraplication to
Object/Session_myCakeapplication . But how can I achieve this? To make
things worse, both varaiable in which teh Sessiondata ist stored are
called $session.

The Non-Cake application is the leading application so I cannot change
anything / much there.

Thanks in advance for any hints and ideas!

Anja

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---