Re: How to get user's country and language with cakePHP

2010-11-15 Thread dtemes
As an alternative to the webservice you can also use the apache api
version. The geoip_country version works quite well.


On 14 nov, 22:15, euromark dereurom...@googlemail.com wrote:
 for the country you can use
 RequestHandlerComponent::getClientIP()
 in combination with sth 
 likehttp://planetcakephp.org/aggregator/items/3841-cakephp-requesthandler...

 for the language simply use the $_SERVER['HTTP_ACCEPT_LANGUAGE']
 string

 in my case for example:
 [HTTP_ACCEPT_LANGUAGE] = de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4

 the first one is usually the language the user expects (0.8 is the
 closest to 1)

 On 14 Nov., 21:31, Mariano C. mariano.calan...@gmail.com wrote:

  Is there a way (helpers, components) to obtain with Cake PHP the
  user's country and associated language for that country?

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


prefix for join tables

2010-11-15 Thread p r
hello,
i use for plugins different table prefixes. when i want to work with
habtm relationship and a join table i can't use the plugin prefix for
this table.

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: Paginate Multiple Models in the same view

2010-11-15 Thread parallel32
On a certain project I ran into the same problem with Cake and
couldn't find an elegant solution in the time I had..so what I did was
paginate the different models on the same page using ajax.  Probably
not the answer you are looking for but it keeps things real simple!

On Nov 13, 10:46 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
 This can't be the first time this has been tried?

 On Nov 12, 5:12 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:







  Anyone have any other ideas?

  On Nov 12, 12:56 am, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

   That doesn't work, it actually disabled the working pagination on the
   Image model.

   I know there is a model option that can be set in the Paginator
   options, I'm wondering if it can be used for this purpose. But I have
   been unable to find anything that lists how it's used and what exactly
   it does or is used for.

   On Nov 11, 9:39 pm, Amit Badkas amitrb...@gmail.com wrote:

Hi,

Just like you set different options for $paginate in controller's 
action, I
think you need to do it for helper too, something like

$this-Paginator-options(array(
               'Image' = array('update' = .),
               'Floorplan' = array('update' = .)
       ));

should work.

Amit

PHP Applications for E-Biz:http://www.sanisoft.com

On Fri, Nov 12, 2010 at 8:00 AM, Arak Tai'Roth 
nielsen.dus...@gmail.comwrote:

 Hey everyone,

 I have what I thought was a simple problem, but haven't been able to
 find anything regarding it. Everything I can find is based off of
 paginating different sets of data but all from the same model.

 I have two models that are related to the model that the view is based
 off of. So I have a view that shows a single product, in that
 controller each product can have multiple images and multiple
 floorplans, as such:

 var $hasMany = array(
        'Image' = array(
                'className' = 'Image',
                'dependant' = true,
                'exclusive' = true
        ),
        'Floorplan' = array(
                'className' = 'Floorplan',
                'dependant' = true,
                'exclusive' = true
        )
 );

 Now I am getting the data alright with the following code in my
 Products controller:

 var $paginate = array(
        'Image' = array(
                'fields' = array(
                        'Image.filename', 'Image.caption'
                ),
                'limit' = 3,
                'order' = array(
                        'Image.id' = 'asc'
                )
        ),
        'Floorplan' = array(
                'fields' = array(
                        'Floorplan.filename', 
 'Floorplan.floorplan_name',
 'Floorplan.floorplan_price'
                ),
                'limit' = 1,
                'order' = array(
                        'Floorplan.id' = 'asc'
                )
        )
 );

 $dbImages = $this-paginate('Image', array('product_id' =
 $dbProduct['Product']['id']));
 $dbFloorplans = $this-paginate('Floorplan', array('product_id' =
 $dbProduct['Product']['id']));

 However the problem becomes apparent when I go to implement the
 pagination in the view, I have to set the options for the paginator,
 so it knows what div to update and what to do on before and complete
 callbacks.

 ?php
        $this-Paginator-options(array(
                'update' = '#showProducts',
                'evalScripts' = true,
                'before' = 
 $this-Js-get('#image_box')-effect('fadeOut'),
                'complete' = 
 $this-Js-get('#image_box')-effect('fadeIn',
 array('speed' = 'slow'))
        ));
 ?

 However, this only works for the Image model, because I need to update
 a different div for the Floorplans model and use different before and
 complete callbacks.

 Is there anyway to do this?

 Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers
 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.comcake-php%2bunsubscr...@googlegroups.c
  omFor more options, visit this group at
http://groups.google.com/group/cake-php?hl=en

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

Re: Cahe Helper: Cached Render Time

2010-11-15 Thread Gabriel
Thanks. Since i'm using jquery to get the json data, solved the
problem using the dataFilter callback to remove that info before
parsing the json.

On 12 nov, 01:25, Amit Badkas amitrb...@gmail.com wrote:
 Hi,

 If you look at renderCache() method of class View, in file
 cake/libs/view/view.php, it uses following code to append the cache render
 time in HTML comment

 if (Configure::read()  0  $this-layout != 'xml') {
     echo !-- Cached Render Time:  . round(getMicrotime() - $timeStart, 4)
 . s --;

 }

 So, either you need to set the debug level to 0 or need to use your own View
 class by extending CakePHP's built-in and to override the renderCache()
 method to add the code as needed. The non-recommended way is to modify
 CakePHP's built-in View::renderCache() method.

 Amit

 PHP Applications for E-Biz:http://www.sanisoft.com

 On Fri, Nov 12, 2010 at 12:57 AM, Gabriel gbrl...@gmail.com wrote:
  Hi, i'm having some problems with the Cache Helper, i have some cached
  json responses, and the cache helper adds at the end of the json data
  stats like this: !-- Cached Render Time: 0.0467s --, that screwup
  the javascript json parser. How i could remove that info?

  Thanks

  Check out the new CakePHP Questions sitehttp://cakeqs.organd 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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

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 Stores the user login information to Cookies automatically

2010-11-15 Thread John Andersen
Read the CakePHP book at:
http://book.cakephp.org/view/1310/Sessions
so that you may know how to set the timeout of the session.
Enjoy,
   John

On 14 Nov., 20:34, Muhaimen Ezabbad mezab...@gmail.com wrote:
 Team,

         Maybe I didn't explain the issue,

         In CakePHP 1.2.8, the cookie expires when I exit the browser, even if 
 I didn't logout.
         in CakePHP 1.2.8, if I want to store the user information, then I 
 need to store them manually, then I need to load them, of course after 
 encrypting the username and password.

         in CakePHP 1.3.5 the Cookies will be valid for few days, unless the 
 user logout by him self.
         Now 1.3.5, if the user used a public computer, then he closed the 
 browser without logging in, then the website will log him in automatically.

         Is there anywhere I need to tell the session to make the cookies 
 expires when I exit the browser?
         I really don't want the browser to remember the login data, unless 
 the user choose that from the remember me checkbox.

 Thanks Team, and I really appreciate your help.


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


Media View: Dowload works on local machine from external server, but production server gets 0 byte files...

2010-11-15 Thread DigitalDude
Hey,

I ran into a strange problem today and need help...

I added cake's media view as download action to my app, which works
fine when I download files from my virtual hosts on my dev laptop. The
files are being downloaded from a central fileserver, and all files
are downloaded complete and working from there.

The interesting part is when I try to download the files via my
production server where the app is running, I get 0 byte files! How
can this be?
The folder and files can be accessed by the webserver (I also tried
777 on the files...) and as I said everything works fine from my local
dev machine.

Here's the code by the way:

function download($filename = null) {
$file = $this-Upload-findByFilename($filename);
if(empty($file)) {
$this-Session-setFlash(__('Sorry, could not find
requested file!', true), 'default', array('class' = 'negative'));
$this-redirect($this-referer());
}
$this-view = 'media';
$params = array(
  'id' = $file['Upload']['filename'],
  'name' = $file['Upload']['original_name'],
  'download' = true,
  'extension' = 'pdf',
  'path' = 'http://my.fileserver.com/pdf/'
);
$this-set($params);
}

Could this be an apache problem or something with the mimetype? I just
do not understand why I can download the files from my local computer
when the app runs under XAMPP, but not from the production server...?
If there is an access restriction, why can I get the files from here
but not from a real server?!

Please help...

Regards,

DD

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: Paginate Multiple Models in the same view

2010-11-15 Thread DigitalDude
Hey,

that's because you need a different approach on pagination...

Try this instead:

$this-paginate['Model1'] = array(
'limit' = 20,
'conditions' = $conditions,
);
$models1 = $this-paginate('Model1');

$this-paginate['Model2'] = array(
'limit' = 20,
'conditions' = $conditions,
);
$models2 = $this-paginate('Model2');

$this-paginate['Model3'] = array(
'limit' = 20,
'conditions' = $conditions,
);
$models3 = $this-paginate('Model3');

$this-set(compact('models1', 'models2', 'models3'));

With the update option within the paginator-helper like Amit said
before this should work.
If it does not work, use AJAX pagination instead and update the
desired element within the RequestHandler-isAjax() part.




On 15 Nov., 12:59, parallel32 paralle...@gmail.com wrote:
 On a certain project I ran into the same problem with Cake and
 couldn't find an elegant solution in the time I had..so what I did was
 paginate the different models on the same page using ajax.  Probably
 not the answer you are looking for but it keeps things real simple!

 On Nov 13, 10:46 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:







  This can't be the first time this has been tried?

  On Nov 12, 5:12 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

   Anyone have any other ideas?

   On Nov 12, 12:56 am, Arak Tai'Roth nielsen.dus...@gmail.com wrote:

That doesn't work, it actually disabled the working pagination on the
Image model.

I know there is a model option that can be set in the Paginator
options, I'm wondering if it can be used for this purpose. But I have
been unable to find anything that lists how it's used and what exactly
it does or is used for.

On Nov 11, 9:39 pm, Amit Badkas amitrb...@gmail.com wrote:

 Hi,

 Just like you set different options for $paginate in controller's 
 action, I
 think you need to do it for helper too, something like

 $this-Paginator-options(array(
                'Image' = array('update' = .),
                'Floorplan' = array('update' = .)
        ));

 should work.

 Amit

 PHP Applications for E-Biz:http://www.sanisoft.com

 On Fri, Nov 12, 2010 at 8:00 AM, Arak Tai'Roth 
 nielsen.dus...@gmail.comwrote:

  Hey everyone,

  I have what I thought was a simple problem, but haven't been able to
  find anything regarding it. Everything I can find is based off of
  paginating different sets of data but all from the same model.

  I have two models that are related to the model that the view is 
  based
  off of. So I have a view that shows a single product, in that
  controller each product can have multiple images and multiple
  floorplans, as such:

  var $hasMany = array(
         'Image' = array(
                 'className' = 'Image',
                 'dependant' = true,
                 'exclusive' = true
         ),
         'Floorplan' = array(
                 'className' = 'Floorplan',
                 'dependant' = true,
                 'exclusive' = true
         )
  );

  Now I am getting the data alright with the following code in my
  Products controller:

  var $paginate = array(
         'Image' = array(
                 'fields' = array(
                         'Image.filename', 'Image.caption'
                 ),
                 'limit' = 3,
                 'order' = array(
                         'Image.id' = 'asc'
                 )
         ),
         'Floorplan' = array(
                 'fields' = array(
                         'Floorplan.filename', 
  'Floorplan.floorplan_name',
  'Floorplan.floorplan_price'
                 ),
                 'limit' = 1,
                 'order' = array(
                         'Floorplan.id' = 'asc'
                 )
         )
  );

  $dbImages = $this-paginate('Image', array('product_id' =
  $dbProduct['Product']['id']));
  $dbFloorplans = $this-paginate('Floorplan', array('product_id' =
  $dbProduct['Product']['id']));

  However the problem becomes apparent when I go to implement the
  pagination in the view, I have to set the options for the paginator,
  so it knows what div to update and what to do on before and complete
  callbacks.

  ?php
         $this-Paginator-options(array(
                 'update' = '#showProducts',
                 'evalScripts' = true,
                 'before' = 
  $this-Js-get('#image_box')-effect('fadeOut'),
                 'complete' = 
  $this-Js-get('#image_box')-effect('fadeIn',
  array('speed' = 'slow'))
         ));
  ?

  However, this only works for the Image model, 

CakePHP Two Step View Pattern

2010-11-15 Thread Rey Philip
Hi guys I'm new here in CakePHP. How can I implement a two step view
pattern in CakePHP? Example I have a layout there are two content divs
namely content1 and content2. The code is like this

html
head
titleMy Cake Blog Application/title
?=$html-css('styles');?
/head

body

div id=container
div id=content
?=$content_for_layout;?
/div
/div

div id=container2
div id=content2
?=$content_for_layout2;?
/div
/div


/body

/html

Can I do this in CakePHP? Cause in CodeIgniter we setup a layout and
then in the layout we could display many views. How can I do that here
in CakePHP?

Thanks in advance..

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 Two Step View Pattern

2010-11-15 Thread Miles J
This isn't possible in Cake. You can only have 1 content, which is the
HTML rendered based on the action/controller.

If you want to display additional content, use an element include or
requestAction.

On Nov 15, 9:31 am, Rey Philip reyphilipre...@gmail.com wrote:
 Hi guys I'm new here in CakePHP. How can I implement a two step view
 pattern in CakePHP? Example I have a layout there are two content divs
 namely content1 and content2. The code is like this

 html
 head
 titleMy Cake Blog Application/title
 ?=$html-css('styles');?
 /head

 body

 div id=container
     div id=content
         ?=$content_for_layout;?
     /div
 /div

 div id=container2
     div id=content2
         ?=$content_for_layout2;?
     /div
 /div

 /body

 /html

 Can I do this in CakePHP? Cause in CodeIgniter we setup a layout and
 then in the layout we could display many views. How can I do that here
 in CakePHP?

 Thanks in advance..

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


Phantom URL

2010-11-15 Thread Dave Maharaj
So I have a site im building for myself so im just building it live on the
server. Now no one can login or see anything other than the login screen.I
am the only user and I deny everything with Auth (other than login / logout
).

 

So that being said I was curious to google the site and sure enough site
login page comes up yet other results show /password/error/script 

 

Click on that link and I get to a page which has my Opps! Error message in
the site layout so its getting the view rendered from Cake. Yet I have no
error/script function or page? 

 I added a print_r  $this-params['controller'] in app_controller to see
what controller it was coming from but no clue. Searched for an script.ctp
file, nothing.

 

Another weird thing is I havecore.php  debug set at 0 so the login page does
not show the footer cake session / sql but on the password/error/script the
full dump is there.

 

So far I have check routes.php and nothing there. No script.ctp just not
sure if there is a bug or simply over looked something. Any ideas would be
great to help me track this down.

 

Dave

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


Problem with Cake session time out and security level

2010-11-15 Thread thomaus
Hi,

My question is simple. Is it possible to have these 3 things set-up
for my project:

1) Security level to medium (and not high)

2) A given time-out of 90 seconds

3) An automatic log-out after browser closing

???

From what I understood, if I want 3, then I need to set the Security
level to high, which I don't want.

Now, I can set manually 3 by writing
ini_set('session.cookie_lifetime', 0); in a session config file, but
then how can I set a number of seconds for the session time-out???

So it seems like my request is impossible. Is it? That would be
completely incredible!


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


One page not loading in IE

2010-11-15 Thread sherzo

Hi All
I have a very strange problem with IE, I have a My account page in my web
site with Cake 1.2 and it is not showing in IE, the Security Level is set to
Low and Sessions are controlling by Database. I used the Firebug and the
only problem that I noticed was the cookies, Every time I tried to set a
cookie, cake set it 3-4 times!!! Is it normal? because I was thinking maybe
it may crash the IE

Any Idea?

Thanks in advanced
Sherry
http://cakephp.1045679.n5.nabble.com/file/n3266359/firebug.jpg 
-- 
View this message in context: 
http://cakephp.1045679.n5.nabble.com/One-page-not-loading-in-IE-tp3266359p3266359.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


Re: Site Development from Start to Finish

2010-11-15 Thread Amit Badkas
Hi,

It seems that the controller is not Users controller but anything else. Am I
right?

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Sat, Nov 13, 2010 at 12:54 AM, naidim nai...@gmail.com wrote:

 I don't understand. Without the var $uses = array('User', 'Drug',
 etc.) line, calls to $this-User-find() give this error: Fatal error:
 Call to undefined method stdClass::find() With the uses line, it works
 fine.

 On Nov 12, 11:13 am, Shaz shazam...@gmail.com wrote:
  It's better practice to use model relationships rather than $uses.
  i.e. $this-User-Drug-find();

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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: Submit button label in e.g. swedish

2010-11-15 Thread Amit Badkas
Hi,

You can also try

echo $form-end(array('label' = 'Lägg till', 'escape' = false));

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Sun, Nov 14, 2010 at 1:46 AM, cricket zijn.digi...@gmail.com wrote:

 On Sat, Nov 13, 2010 at 8:28 AM, Björn N edtb...@gmail.com wrote:
  Hi!
  I want to use a label Lägg till on a submit button, using the code:
  ?php echo $form-end('Lägg till'); ?, but that renders a button with
  no text in it. If I change the 'ä' to an 'a' the label shows up fine,
  but without the dots above the a. I've tried 'auml; to no avail.
  I'm pretty sure that the problem exists for other european languages
  too, but as I don't read these languages, it's hard to find a fix for
  the problem.


 Try:

 echo $form-submit('Lägg till', array(escape' = false));
 echo $form-end();

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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 Stores the user login information to Cookies automatically

2010-11-15 Thread Amit Badkas
Hi,

Have you checked the 'Security.level' configuration setting. It should be
'high' to set 'session.cookie_lifetime' to 0 so that session cookie will get
destroyed after closing the browser.

Hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Mon, Nov 15, 2010 at 1:04 AM, Muhaimen Ezabbad mezab...@gmail.comwrote:


 Team,

Maybe I didn't explain the issue,

In CakePHP 1.2.8, the cookie expires when I exit the browser, even
 if I didn't logout.
in CakePHP 1.2.8, if I want to store the user information, then I
 need to store them manually, then I need to load them, of course after
 encrypting the username and password.

in CakePHP 1.3.5 the Cookies will be valid for few days, unless the
 user logout by him self.
Now 1.3.5, if the user used a public computer, then he closed the
 browser without logging in, then the website will log him in automatically.

Is there anywhere I need to tell the session to make the cookies
 expires when I exit the browser?
I really don't want the browser to remember the login data, unless
 the user choose that from the remember me checkbox.

 Thanks Team, and I really appreciate your help.



 On Nov 14, 2010, at 8:03 PM, John Andersen wrote:

  What is actually the issue here?
  Do you see the login information in the cookie or do you just see that
  the cookie is there?
  In order to know the session of the current user, a session-cookie is
  stored on the users computer. Is this the one you are worried about?
  Enjoy,
John
 
  On 12 Nov., 15:15, Muhaimen Ezabbad mezab...@gmail.com wrote:
  Amit,
 
  Thanks for the reply,
 
  Amit, Team,
 
  I'm using 1.3.5 Stable version.
 
  BTW, I also created a new empty project with two tables, items
 and users
 
  in the AppController I wrote:
 
  var $components=array('Auth');
 
  function  beforeFilter() {
  $this-Auth-loginRedirect =
 array('controller'='items','action'='index');
  $this-Auth-logoutRedirect =
 array('controller'='users','action'='login');
  $this-set('loggedIn',$this-Auth-user('id'));
  //$this-Auth-allow('signup');
  }
 
  function  isAuthorized() {
  //parent::isAuthorized();
  return true;
  }
 
  and I didn't write anything in the login function in the
 UserController.
 
  My problem again the login informations stored in the cookies
 ,  I don't want to store these data without the user confirmation.
 
  Thanks for your help
 
  [snip]
 
  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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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: Making a file downloadable

2010-11-15 Thread rlparker81

Hi,

I am having a similar problem only my folder 'files' is already in the
webroot directory. 

The files folder contains xml files which the site takes some of its
contents from. Sometimes it works fine and reads the xml files but others it
looks for files_controller

Does anyone know why it's doing this?

thanks

Rachael
-- 
View this message in context: 
http://cakephp.1045679.n5.nabble.com/Making-a-file-downloadable-tp3235245p3265360.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


Book software like on book.cakephp.org

2010-11-15 Thread Saša
Hey guys,

(Maybe a little off-topic)

I was just browsing through http://book.cakephp.org/view/875/x1-3-Collection
and marveling at the implementation of the book software. Is this
open? And if not do you know of any similar web apps that allow a
community of contributors to create a book together? I would like to
be able to auto generate a nightly PDF from the book pages.

Will I need to implement this from scratch?

-sasa

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


Auth / Acl redirect issue CakePHP 1.3.4

2010-11-15 Thread danielnolan
I have an application setup with admin prefix route, Auth, and ACL.
everything seems to be working as expected, except when I am logged in
as an admin user and I try to access a ACL restriced action by typing
the url in the address bar of the browser. I get redirected to the
home page of the site (view/pages/home.ctp) instead of the admin
dashboard (users/admin_dashboard) i have created.

If I click on a link to the exact same action in the admin dashboard
that is restricted, I get redirected to the admin dashboard as
expected with an auth error message telling me I am not authorized to
access that location.

What am I missing?

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


Mail Distributor

2010-11-15 Thread TimK
Hello Everybody!

I like to write a mail distributor. It shall send an email to all
registered users with an valid email address. The distributor has no
table in a data base, thus I set var $useTable = false;. But I have
a user module including the email address of every registered user. I
thought I can work with the hasMany relation and a find('all') but it
does not work. Here are a view code snippets.


@Mail Distributor-Model:
 var $hasMany = array(
  'User' = array(
'className' = 'User',
'foreignKey' = 'id',
  )
);

@Mail Distributor-Controller
$email_addresses = $this-Mailinglist-find('all');

Can anyone help me here?
Best Regards,
Tim

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: Phantom URL

2010-11-15 Thread Jeremy Burns | Class Outfit
Is this the error you'd expect to see if the login fails validation? If so, is 
your code in the login action checking for the presence of data before 
processing it further? If not, the error will fire. Another suggestion is to 
clear the cache.

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
(t) +44 (0) 208 123 3822
(m) +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.com

On 15 Nov 2010, at 19:09, Dave Maharaj wrote:

 So I have a site im building for myself so im just building it live on the 
 server. Now no one can login or see anything other than the login screen…I am 
 the only user and I deny everything with Auth (other than login / logout ).
  
 So that being said I was curious to google the site and sure enough site 
 login page comes up yet other results show /password/error/script
  
 Click on that link and I get to a page which has my Opps! Error message in 
 the site layout so its getting the view rendered from Cake. Yet I have no 
 error/script function or page?
  I added a print_r  $this-params[‘controller’] in app_controller to see what 
 controller it was coming from but no clue. Searched for an script.ctp file, 
 nothing.
  
 Another weird thing is I havecore.php  debug set at 0 so the login page does 
 not show the footer cake session / sql but on the password/error/script the 
 full dump is there.
  
 So far I have check routes.php and nothing there. No script.ctp just not sure 
 if there is a bug or simply over looked something. Any ideas would be great 
 to help me track this down.
  
 Dave
 
 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

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: Mail Distributor

2010-11-15 Thread Jeremy Burns | Class Outfit
Why not run this out of the User model?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 15 Nov 2010, at 20:23, TimK wrote:

 Hello Everybody!
 
 I like to write a mail distributor. It shall send an email to all
 registered users with an valid email address. The distributor has no
 table in a data base, thus I set var $useTable = false;. But I have
 a user module including the email address of every registered user. I
 thought I can work with the hasMany relation and a find('all') but it
 does not work. Here are a view code snippets.
 
 
 @Mail Distributor-Model:
 var $hasMany = array(
  'User' = array(
'className' = 'User',
'foreignKey' = 'id',
  )
);
 
 @Mail Distributor-Controller
 $email_addresses = $this-Mailinglist-find('all');
 
 Can anyone help me here?
 Best Regards,
 Tim
 
 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

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: Mail Distributor

2010-11-15 Thread TimK
Hi Jeremy!

Thank you for your idea. I'm sure it will work. I thought I separate
the mailing function for the user for structural reasons. But the
mailing module is extremely small and maybe my idea is only micro
management. Nevertheless I am still interested in a solution with two
models.

Best Regards,
Tim

On Nov 15, 9:27 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
 Why not run this out of the User model?

 Jeremy Burns
 Class Outfit

 jeremybu...@classoutfit.comhttp://www.classoutfit.com

 On 15 Nov 2010, at 20:23, TimK wrote:







  Hello Everybody!

  I like to write a mail distributor. It shall send an email to all
  registered users with an valid email address. The distributor has no
  table in a data base, thus I set var $useTable = false;. But I have
  a user module including the email address of every registered user. I
  thought I can work with the hasMany relation and a find('all') but it
  does not work. Here are a view code snippets.

  @Mail Distributor-Model:
  var $hasMany = array(
       'User' = array(
         'className' = 'User',
         'foreignKey' = 'id',
       )
     );

  @Mail Distributor-Controller
  $email_addresses = $this-Mailinglist-find('all');

  Can anyone help me here?
  Best Regards,
  Tim

  Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
  athttp://groups.google.com/group/cake-php?hl=en

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: Making a file downloadable

2010-11-15 Thread cricket
On Mon, Nov 15, 2010 at 4:59 AM, rlparker81 rlparke...@googlemail.com wrote:

 Hi,

 I am having a similar problem only my folder 'files' is already in the
 webroot directory.

 The files folder contains xml files which the site takes some of its
 contents from. Sometimes it works fine and reads the xml files but others it
 looks for files_controller

 Does anyone know why it's doing this?

Look at the RewriteRules in your .htaccess (or apache conf). If the
file cannot be found, the request is passed to Cake. Make sure that
the requested file exists. Also, be aware that the request is
case-sensitive.

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: Phantom URL

2010-11-15 Thread Dave Maharaj
I was not expecting anything to show since everything is denied with
redirect to login. If I type in /anything/here it goes to login as expected
it I type in /password/error it goes to login yet password/error/script sits
there with the error message.

 

From: Jeremy Burns | Class Outfit [mailto:jeremybu...@classoutfit.com] 
Sent: November-15-10 4:55 PM
To: cake-php@googlegroups.com
Subject: Re: Phantom URL

 

Is this the error you'd expect to see if the login fails validation? If so,
is your code in the login action checking for the presence of data before
processing it further? If not, the error will fire. Another suggestion is to
clear the cache.





 

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: Phantom URL

2010-11-15 Thread Jeremy Burns | Class Outfit
That's my point. Is it the code behind the login form that is triggering the 
error? So when the login page is opened the code tries to log the user in based 
on the values entered (which are of course empty) and therefore log in is 
failing, even though its the first visit to the page?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 15 Nov 2010, at 20:50, Dave Maharaj wrote:

 I was not expecting anything to show since everything is denied with redirect 
 to login. If I type in /anything/here it goes to login as expected it I type 
 in /password/error it goes to login yet password/error/script sits there with 
 the error message.
  
 From: Jeremy Burns | Class Outfit [mailto:jeremybu...@classoutfit.com] 
 Sent: November-15-10 4:55 PM
 To: cake-php@googlegroups.com
 Subject: Re: Phantom URL
  
 Is this the error you'd expect to see if the login fails validation? If so, 
 is your code in the login action checking for the presence of data before 
 processing it further? If not, the error will fire. Another suggestion is to 
 clear the cache.
 
 
  
 
 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

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: Phantom URL

2010-11-15 Thread Dave Maharaj
Not sure I follow what you are saying.sorry.

 

No login attempt is being made. Google has indexed this 1 page that shows up
when I search for my site and its an error page that is coming from no
where. There is no access to anything on the site except login. If you play
with the url it all directs to login except the /password/error/script. It
shows an error page with full debug dump yet the site is set at debug 0.

 

That's where I am lost.

 

Thanks,

 

Dave

 

From: Jeremy Burns | Class Outfit [mailto:jeremybu...@classoutfit.com] 
Sent: November-15-10 5:24 PM
To: cake-php@googlegroups.com
Subject: Re: Phantom URL

 

That's my point. Is it the code behind the login form that is triggering the
error? So when the login page is opened the code tries to log the user in
based on the values entered (which are of course empty) and therefore log in
is failing, even though its the first visit to the page?


Jeremy Burns

Class Outfit

 

jeremybu...@classoutfit.com mailto:jeremybu...@mac.com 

http://www.classoutfit.com

 

On 15 Nov 2010, at 20:50, Dave Maharaj wrote:





I was not expecting anything to show since everything is denied with
redirect to login. If I type in /anything/here it goes to login as expected
it I type in /password/error it goes to login yet password/error/script sits
there with the error message.

 

From: Jeremy Burns | Class Outfit [mailto:jeremybu...@classoutfit.com] 
Sent: November-15-10 4:55 PM
To: cake-php@googlegroups.com
Subject: Re: Phantom URL

 

Is this the error you'd expect to see if the login fails validation? If so,
is your code in the login action checking for the presence of data before
processing it further? If not, the error will fire. Another suggestion is to
clear the cache.






 

 

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

 

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

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: Phantom URL

2010-11-15 Thread Jeremy Burns | Class Outfit
So you haven't programmed your Opps! Error message... in anywhere?

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 15 Nov 2010, at 21:34, Dave Maharaj wrote:

 Not sure I follow what you are saying…sorry.
  
 No login attempt is being made. Google has indexed this 1 page that shows up 
 when I search for my site and its an error page that is coming from no where. 
 There is no access to anything on the site except login. If you play with the 
 url it all directs to login except the /password/error/script. It shows an 
 error page with full debug dump yet the site is set at debug 0.
  
 That’s where I am lost.
  
 Thanks,
  
 Dave
  
 From: Jeremy Burns | Class Outfit [mailto:jeremybu...@classoutfit.com] 
 Sent: November-15-10 5:24 PM
 To: cake-php@googlegroups.com
 Subject: Re: Phantom URL
  
 That's my point. Is it the code behind the login form that is triggering the 
 error? So when the login page is opened the code tries to log the user in 
 based on the values entered (which are of course empty) and therefore log in 
 is failing, even though its the first visit to the page?
 
 Jeremy Burns
 Class Outfit
  
 jeremybu...@classoutfit.com
 http://www.classoutfit.com
  
 On 15 Nov 2010, at 20:50, Dave Maharaj wrote:
 
 
 I was not expecting anything to show since everything is denied with redirect 
 to login. If I type in /anything/here it goes to login as expected it I type 
 in /password/error it goes to login yet password/error/script sits there with 
 the error message.
  
 From: Jeremy Burns | Class Outfit [mailto:jeremybu...@classoutfit.com] 
 Sent: November-15-10 4:55 PM
 To: cake-php@googlegroups.com
 Subject: Re: Phantom URL
  
 Is this the error you'd expect to see if the login fails validation? If so, 
 is your code in the login action checking for the presence of data before 
 processing it further? If not, the error will fire. Another suggestion is to 
 clear the cache.
 
 
 
  
  
 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
  
 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
 
 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

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


Paginator Question

2010-11-15 Thread Ma'moon
Hello Bakers,

I am using cake's paginator to paginate my views, i am actually using the
folowing code to accomplish this task:
$paginator-numbers(array('tag' = 'td align=center', 'separator' = ''));

My question is, how do you guys put a dynamic ALT for the links being
generated by the paginator using [$paginator-numbers]?

Thanks a lot for any answer

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: Phantom URL

2010-11-15 Thread Dave Maharaj
No that is me.I just tossed that into missing controller error page.

. But why is an error showing when the only thing allowed is login. And the
debug thing too. That's what puzzles me.

 

 

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: Media View: Dowload works on local machine from external server, but production server gets 0 byte files...

2010-11-15 Thread euromark
the path usually doesnt start with http://
its a file path - at least afaik

windows: c:/...
linux /var/www/...

but the constansts should be just about fine:
ROOT.DS.'files'.DS.'whatever'

thats why you need the media view in the first place
because usually you want to serve files that are below the webroot
folder (and need to be passed through in order to get accessable)

On 15 Nov., 16:42, DigitalDude e.blumsten...@googlemail.com wrote:
 Hey,

 I ran into a strange problem today and need help...

 I added cake's media view as download action to my app, which works
 fine when I download files from my virtual hosts on my dev laptop. The
 files are being downloaded from a central fileserver, and all files
 are downloaded complete and working from there.

 The interesting part is when I try to download the files via my
 production server where the app is running, I get 0 byte files! How
 can this be?
 The folder and files can be accessed by the webserver (I also tried
 777 on the files...) and as I said everything works fine from my local
 dev machine.

 Here's the code by the way:

 function download($filename = null) {
         $file = $this-Upload-findByFilename($filename);
         if(empty($file)) {
             $this-Session-setFlash(__('Sorry, could not find
 requested file!', true), 'default', array('class' = 'negative'));
             $this-redirect($this-referer());
         }
         $this-view = 'media';
         $params = array(
               'id' = $file['Upload']['filename'],
               'name' = $file['Upload']['original_name'],
               'download' = true,
               'extension' = 'pdf',
               'path' = 'http://my.fileserver.com/pdf/'
         );
         $this-set($params);

 }

 Could this be an apache problem or something with the mimetype? I just
 do not understand why I can download the files from my local computer
 when the app runs under XAMPP, but not from the production server...?
 If there is an access restriction, why can I get the files from here
 but not from a real server?!

 Please help...

 Regards,

 DD

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: Phantom URL

2010-11-15 Thread cricket
On Mon, Nov 15, 2010 at 4:41 PM, Dave Maharaj m...@davemaharaj.com wrote:
 No that is me…I just tossed that into missing controller error page.

 . But why is an error showing when the only thing allowed is login. And the
 debug thing too. That’s what puzzles me.

Seeing an error view has nothing to do with being logged in or not.
And this is a bit confusing because you've said both that you did, and
you did not create your own error page.

That said, perhaps you should empty your cache.

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: Phantom URL

2010-11-15 Thread Dave Maharaj
Ok to clarify  I put the Opps! Message in the standard missing
controller.ctp error folder. 
I have not made a custom error handler or setup any cake error directs or
anything like that. 

So this is what I did step by step,
I am not logged. Not even attempting to login, not even going to login page.
I just search my site on google and there are are 2 links there 
1 = login 
2 = password/error/script

So someone can click on that 2nd link to get an error page all fine and
dandy but if auth is denying every page except login how can anyone even see
this page or get indexed? And if debug is set to 0 (I did a find thru the
whole site and no places have Config::write('debug' , other value) why am I
seeing the full dump at the bottom.

I can type in the address bar /asdfasdf/asdfsf/asdfasf/asdfasf and presto
redirected to login, type in /password sent to login so no error Opps!
message just directed to login as Auth is set to do...but type in
password/error/script and error page display with Opps!. Everything
redirects to login if you play with the url and type in anything except
password/error/script that is the only page that does not send you the login
page.

-Original Message-
From: cricket [mailto:zijn.digi...@gmail.com] 
Sent: November-15-10 7:43 PM
To: cake-php@googlegroups.com
Subject: Re: Phantom URL

On Mon, Nov 15, 2010 at 4:41 PM, Dave Maharaj m...@davemaharaj.com wrote:
 No that is me.I just tossed that into missing controller error page.

 . But why is an error showing when the only thing allowed is login. And
the
 debug thing too. That's what puzzles me.

Seeing an error view has nothing to do with being logged in or not.
And this is a bit confusing because you've said both that you did, and
you did not create your own error page.

That said, perhaps you should empty your cache.

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

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: Paginator Question

2010-11-15 Thread cricket
On Mon, Nov 15, 2010 at 4:40 PM, Ma'moon phpir...@gmail.com wrote:
 Hello Bakers,

 I am using cake's paginator to paginate my views, i am actually using the
 folowing code to accomplish this task:
 $paginator-numbers(array('tag' = 'td align=center', 'separator' = ''));

 My question is, how do you guys put a dynamic ALT for the links being
 generated by the paginator using [$paginator-numbers]?

echo $paginator-numbers(array('title' = 'foo'));

Not very helpful, eh? I had a look into this a while back to see about
setting distinct titles but gave up as it didn't seem worth the
trouble of extending the helper (which appears to be the only
solution) just for that.

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: Site Development from Start to Finish

2010-11-15 Thread naidim
At the time of last testing it wasn't, now it IS User and I'm getting
all kids of errors.

Without a $uses var, I get Error: Database table homepages for model
Homepage was not found. which is to be expected since there is no
related MODEL for the homepages controller.

With an empty $uses ( var $uses = array(); ) I get: Notice (8):
Undefined property: HomepagesController::$User [APP/controllers/
homepages_controller.php, line 7]

With a full $uses ( var $uses = array('User'); ) it works fine, as I
stated previously.

So it is apparent to me that $uses is required first if there is no
related MODEL, and second if you want to access an unrelated MODEL.

On Nov 14, 11:17 pm, Amit Badkas amit.sanis...@gmail.com wrote:
 Hi,

 It seems that the controller is not Users controller but anything else. Am I
 right?

 Amit Badkas

 PHP Applications for E-Biz:http://www.sanisoft.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


Re: Paginator Question

2010-11-15 Thread Ma'moon
Thanks for the answer cricket, i am already aware of
[$paginator-numbers(array('title' = 'foo')] but this is a static ALT for
the link, i am trying to dynamically fill the ALT with something like
Page Number X From Section Y where X is the page number for the link and Y
is a dynamic or static string, there must be a way to do it, if this is
not possible then i will open a ticket at CakePHP's lighthouse in order to
have such a feature in Cake's paginator.


On Mon, Nov 15, 2010 at 7:02 PM, cricket zijn.digi...@gmail.com wrote:

 On Mon, Nov 15, 2010 at 4:40 PM, Ma'moon phpir...@gmail.com wrote:
  Hello Bakers,
 
  I am using cake's paginator to paginate my views, i am actually using the
  folowing code to accomplish this task:
  $paginator-numbers(array('tag' = 'td align=center', 'separator' =
 ''));
 
  My question is, how do you guys put a dynamic ALT for the links being
  generated by the paginator using [$paginator-numbers]?

 echo $paginator-numbers(array('title' = 'foo'));

 Not very helpful, eh? I had a look into this a while back to see about
 setting distinct titles but gave up as it didn't seem worth the
 trouble of extending the helper (which appears to be the only
 solution) just for that.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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: mysql connection refused

2010-11-15 Thread rogwei
This is a dev environment where the application server is a VBox host.
The MySQL server is a VBox guest machine on the VBox host. phpmyadmin
runs from a browser on the VBox host, so it *is* using tcp. Everything
was working fine until I upgraded the guest OS from 9.10 to 10.04. I
think I might have changed the skip-networking option during the
initial MySQL install and it must have been reset to the default
127.0.0.1 setting during the upgrade. I changed the bind-address
option to 0.0.0.0 in the my.cnf, and now it works fine. Thanks for
your help.

On Nov 12, 9:49 pm, Anatoliy Dimitrov tollo...@gmail.com wrote:
 I can't believe you are connecting to MySQL from PHPMYADMIN with
 absolutely the same details. The error means that the application
 cannot connect to the MySQL server on that port. By default on decent
 Ubuntu MySQL listens only on the local interface 127.0.0.1 and not on
 all IPs. You can check it with:

 netstat -ntap |grep 3306

 tcp        0      0 127.0.0.1:3306          0.0.0.0:*
 LISTEN      -

 Thus if you have been connecting to the external IP before you will
 not be able to do so any longer (unless you reconfigure MySQL of
 course).

 Thus try using 127.0.0.1 for MySQL hostname.

 Best regards,
 Anatoli

 On Nov 12, 11:56 pm, rogwei rog...@comcast.net wrote:







  The subject search phrase returns 0 items in this group which
  surprises me a little, and google isn't. Anyway, I upgraded my DB
  server Ubuntu 9.10 to 10.04 LTS, and now when I try to access my
  application I get the following warning and a missing database table
  error. One factoid, I CAN connect with phpmyadmin using the same host
  and credentials.

  The only my.cnf file on the server uses port 3306. Not sure what to do
  or whose issue this is. Any help?

  Warning (2): mysql_connect() [function.mysql-connect]: [2002]
  Connection refused (trying to connect via tcp://x.x.x.x:3306) [CORE/
  cake/libs/model/datasources/dbo/dbo_mysql.php, line 552]
  Code | Context
  $config =       array(
          persistent = false,
          host = x.x.x.x,
          login = x,
          password = ,
          database = xx,
          port = 3306,
          driver = mysql,
          prefix = 
  )
  mysql_connect - [internal], line ??
  DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/
  dbo_mysql.php, line 552
  DboSource::__construct() - CORE/cake/libs/model/datasources/
  dbo_source.php, line 143
  ConnectionManager::getDataSource() - CORE/cake/libs/model/
  connection_manager.php, line 114
  Model::setDataSource() - CORE/cake/libs/model/model.php, line 2818
  Model::__construct() - CORE/cake/libs/model/model.php, line 469
  AclNode::__construct() - CORE/cake/libs/model/db_acl.php, line 62
  ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 141
  DbAcl::__construct() - CORE/cake/libs/controller/components/acl.php,
  line 237
  AclComponent::__construct() - CORE/cake/libs/controller/components/
  acl.php, line 58
  Component::_loadComponents() - CORE/cake/libs/controller/
  component.php, line 249
  Component::init() - CORE/cake/libs/controller/component.php, line 78
  Controller::constructClasses() - CORE/cake/libs/controller/
  controller.php, line 487
  Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
  Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
  [main] - /Users/Roger/Sites/uypBarebones/index.php, line 84

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: Paginator Question

2010-11-15 Thread cricket
On Mon, Nov 15, 2010 at 7:21 PM, Ma'moon phpir...@gmail.com wrote:
 Thanks for the answer cricket, i am already aware of
 [$paginator-numbers(array('title' = 'foo')] but this is a static ALT for
 the link, i am trying to dynamically fill the ALT with something like
 Page Number X From Section Y where X is the page number for the link and Y
 is a dynamic or static string, there must be a way to do it, if this is
 not possible then i will open a ticket at CakePHP's lighthouse in order to
 have such a feature in Cake's paginator.

Sorry, I forgot to add that links don't have an alt attribute. I think
you're thinking of title.

As for the rest, yes, that's what I was getting at. It's a static
string, or you'll have to extend the helper.

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


Saving data in many tables in CakePHP

2010-11-15 Thread Rey Philip
I a newbie question. This is how can I save data in many tables. Heres
a scenario, example I have a Profiles controller, then I have a
register method/action. Lets say I have 2 tables involved the users
table and emails table, this is only for the sake of the
demonstration. In my view in the register method there are two input
boxes name which resides in the users table and email textbox for the
emails table. Now what I want to do is that, when I press the submit
button I want the name to be saved in the names table and the email to
the emails table..

Here is the schema:

users table:
id
name

emails table:
id
user_id
email

I wonder what the view for register method would look like, since the
form-create() methods 1st paramter is the name of the model.. And
also how do I saved the data on two different tables.

Again, thanks in advance.

Philip

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: Problem with Cake session time out and security level

2010-11-15 Thread Amit Badkas
Hi,

If you want custom session settings then change configuration to something
like

Configure::write('Session.save', 'my_session');

and after that create app/config/my_session.php where you can define your
own session settings, something like

ini_set('session.use_trans_sid', 0);
ini_set('session.name', Configure::read('Session.cookie'));
ini_set('session.cookie_lifetime', 0);
ini_set('session.cookie_path', $this-path);

Hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Tue, Nov 16, 2010 at 12:41 AM, thomaus tho...@saimiris.com wrote:

 Hi,

 My question is simple. Is it possible to have these 3 things set-up
 for my project:

 1) Security level to medium (and not high)

 2) A given time-out of 90 seconds

 3) An automatic log-out after browser closing

 ???

 From what I understood, if I want 3, then I need to set the Security
 level to high, which I don't want.

 Now, I can set manually 3 by writing
 ini_set('session.cookie_lifetime', 0); in a session config file, but
 then how can I set a number of seconds for the session time-out???

 So it seems like my request is impossible. Is it? That would be
 completely incredible!


 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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: Auth / Acl redirect issue CakePHP 1.3.4

2010-11-15 Thread Amit Badkas
Hi,

The redirection after ACL fails depends on HTTP_REFERER environment
variable. If you access the restricted URL directly then referrer doesn't
get set, that's why '/' (by default, home page) is being used.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Mon, Nov 15, 2010 at 10:06 PM, danielnolan danielano...@gmail.comwrote:

 I have an application setup with admin prefix route, Auth, and ACL.
 everything seems to be working as expected, except when I am logged in
 as an admin user and I try to access a ACL restriced action by typing
 the url in the address bar of the browser. I get redirected to the
 home page of the site (view/pages/home.ctp) instead of the admin
 dashboard (users/admin_dashboard) i have created.

 If I click on a link to the exact same action in the admin dashboard
 that is restricted, I get redirected to the admin dashboard as
 expected with an auth error message telling me I am not authorized to
 access that location.

 What am I missing?

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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


yahoo web hosting problem

2010-11-15 Thread fadhli
hello everybody

I had a problem about hosting at yahoo web hosting. i can't upload .htaccess
files (i think They Used IIS becauce IIS do not support .htaccess, CMIIW) so
I use the way in http://book.cakephp.org/view/1533/A-Note-on-mod_rewrite to
fix the problem. it's works.

but now, i have new problem. i can't upload image. (I use
jqimagecrop component), and TinyMCE does not work too,
I have tried the tutorial on
http://blog.knightdna.net/2010/07/enabling-cakephp-pretty-urls-on-iis.htmland
http://book.cakephp.org/view/1636/URL -Rewrites-on-IIS7-Windows-hosts but
failed.

Is there someone who knows how to solve this problem? please help me.

thanks before :)

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: Saving data in many tables in CakePHP

2010-11-15 Thread Amit Badkas
Hi,

First of all you need to set User's relation with Email. From the DB schema
you provided, I think it should be User hasOne Email. The view should be
something like

echo $form-create('User');
echo $form-input('name');
echo $form-input('Email.email');
echo $form-end('Submit');

and the code in action method to save it will be like

$this-User-saveAll($this-data);

Hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Tue, Nov 16, 2010 at 9:54 AM, Rey Philip reyphilipre...@gmail.comwrote:

 I a newbie question. This is how can I save data in many tables. Heres
 a scenario, example I have a Profiles controller, then I have a
 register method/action. Lets say I have 2 tables involved the users
 table and emails table, this is only for the sake of the
 demonstration. In my view in the register method there are two input
 boxes name which resides in the users table and email textbox for the
 emails table. Now what I want to do is that, when I press the submit
 button I want the name to be saved in the names table and the email to
 the emails table..

 Here is the schema:

 users table:
 id
 name

 emails table:
 id
 user_id
 email

 I wonder what the view for register method would look like, since the
 form-create() methods 1st paramter is the name of the model.. And
 also how do I saved the data on two different tables.

 Again, thanks in advance.

 Philip

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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: yahoo web hosting problem

2010-11-15 Thread whmeroe
Please describe what is occurring vs. what you think should be.  Stating it
doesn't work doesn't help us help you.

 

From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of fadhli
Sent: Tuesday, November 16, 2010 12:16 AM
To: cake-php@googlegroups.com
Subject: yahoo web hosting problem

 

hello everybody


I had a problem about hosting at yahoo web hosting. i can't upload .htaccess
files (i think They Used IIS becauce IIS do not support .htaccess, CMIIW) so
I use the way in http://book.cakephp.org/view/1533/A-Note-on-mod_rewrite to
fix the problem. it's works.


but now, i have new problem. i can't upload image. (I use jqimagecrop
component), and TinyMCE does not work too,

I have tried the tutorial on
http://blog.knightdna.net/2010/07/enabling-cakephp-pretty-urls-on-iis.html
and http://book.cakephp.org/view/1636/URL -Rewrites-on-IIS7-Windows-hosts
but failed. 

 

Is there someone who knows how to solve this problem? please help me.

 

thanks before :)

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

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: yahoo web hosting problem

2010-11-15 Thread Louie Miranda
I think, it would be easier to just change web hosts.
--
Louie Miranda
 - Email: lmira...@gmail.com
 - Web: http://www.louiemiranda.com



On Tue, Nov 16, 2010 at 2:14 PM, whmeroe whme...@gmail.com wrote:

  Please describe what is occurring vs. what you think should be.  Stating
 it doesn't work doesn't help us help you.



 *From:* cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] *On
 Behalf Of *fadhli
 *Sent:* Tuesday, November 16, 2010 12:16 AM
 *To:* cake-php@googlegroups.com
 *Subject:* yahoo web hosting problem



 hello everybody


 I had a problem about hosting at yahoo web hosting. i can't upload
 .htaccess files (i think They Used IIS becauce IIS do not support .htaccess,
 CMIIW) so I use the way in
 http://book.cakephp.org/view/1533/A-Note-on-mod_rewrite to fix the
 problem. it's works.


 but now, i have new problem. i can't upload image. (I use
 jqimagecrop component), and TinyMCE does not work too,

 I have tried the tutorial on
 http://blog.knightdna.net/2010/07/enabling-cakephp-pretty-urls-on-iis.htmland
 http://book.cakephp.org/view/1636/URL -Rewrites-on-IIS7-Windows-hosts but
 failed.



 Is there someone who knows how to solve this problem? please help me.



 thanks before :)

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


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: Submit button label in e.g. swedish

2010-11-15 Thread Zaky Katalan-Ezra
Did you try to translate with gettext and not using the Swedish characters
in the code?

On Mon, Nov 15, 2010 at 8:34 AM, Amit Badkas amit.sanis...@gmail.comwrote:

 Hi,

 You can also try

 echo $form-end(array('label' = 'Lägg till', 'escape' = false));

 Amit Badkas

 PHP Applications for E-Biz: http://www.sanisoft.com



 On Sun, Nov 14, 2010 at 1:46 AM, cricket zijn.digi...@gmail.com wrote:

 On Sat, Nov 13, 2010 at 8:28 AM, Björn N edtb...@gmail.com wrote:
  Hi!
  I want to use a label Lägg till on a submit button, using the code:
  ?php echo $form-end('Lägg till'); ?, but that renders a button with
  no text in it. If I change the 'ä' to an 'a' the label shows up fine,
  but without the dots above the a. I've tried 'auml; to no avail.
  I'm pretty sure that the problem exists for other european languages
  too, but as I don't read these languages, it's hard to find a fix for
  the problem.


 Try:

 echo $form-submit('Lägg till', array(escape' = false));
 echo $form-end();

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


  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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en




-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

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