Re: Installation Issue - HELP!!! www.medfuse.com

2009-11-25 Thread robert matousek
Thanks Jeremy, I got it up and running. Webhost is making life
difficult. Once again, appreciate you taking the time.

On Nov 24, 9:08 pm, jburns jeremybu...@me.com wrote:
 The first things I would check are your .htaccess files. I faced
 similar issues setting up a site on a hosting service. Take a look at
 thishttp://www.jeremy-burns.co.uk/2009/08/setting-up-cakephp-on-a-11-server/
 and see if it helps.

 On Nov 25, 5:04 am, robert matousek r.k.matou...@gmail.com wrote:

  I've been developing an app on my localhost. Now I'm trying to get
  CAKEPHP up and running on my webhost (Webhost4llife). Can someone take
  a look atwww.medfuse.com?Ican't figure out what the problem is,
  it's pulling in the default layout, but going to any of controller/
  actions does not seem the work. I get an internal server error, 500
  Error. I could really use some help. Anyone, any ideas?

  document root is set to app/webroot/
  mod_rewrite is on

  I've spend hours trying to locate the problem. Your help would be
  really appreciated

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


Installation Issue - HELP!!! www.medfuse.com

2009-11-24 Thread robert matousek
I've been developing an app on my localhost. Now I'm trying to get
CAKEPHP up and running on my webhost (Webhost4llife). Can someone take
a look at www.medfuse.com? I can't figure out what the problem is,
it's pulling in the default layout, but going to any of controller/
actions does not seem the work. I get an internal server error, 500
Error. I could really use some help. Anyone, any ideas?

document root is set to app/webroot/
mod_rewrite is on

I've spend hours trying to locate the problem. Your help would be
really appreciated

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 Plugin

2009-09-04 Thread robert matousek

I'm hoping someone can help me use the Media Plugin developed by David
Persson.
First of all, I used the Attachment model to save some images. When I
try to render them using the MediumHelper, it generates the correct
paths, but images aren't showing? Any idea why?

e.g. /media/filter/s/transfer/img/name.png

What is the best way to use the MediumHelper file function? In the
slides it give two arguments, but when I look at the method it only
takes 1. Examples anybody?

Last but not least, its not storing the Model name in the model column
of the Attachment tabel? How do I fix this?

Given all the awesome functionality, it seems like its worth the extra
effort to use this plugin!

Robert Matousek
--~--~-~--~~~---~--~~
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: Defining custom constants in models

2009-08-26 Thread robert matousek

If it would have been a class constant, you could have accessed it
with className::constant, e.g.

class MyClass
{
const constant = 'constant value';
}

however, you're defining a global constant in which the variable can
be accessed anywhere during the execution of the script just by typing
the constant name, e.g.

define ('CONSTANT', value)

On Aug 26, 4:44 am, pph7 kessler.m...@gmail.com wrote:
 Thx! I didnt know about that yet!

 On Aug 26, 6:31 am, Dr. Loboto drlob...@gmail.com wrote:

  If you're using PHP5 you can try class constants for 
  this:http://ru2.php.net/manual/en/language.oop5.constants.php
  Because defines are _global_ as euromark mentioned.

  On Aug 25, 5:53 pm, pph7 kessler.m...@gmail.com wrote:

   Hi there!
   I am looking for a way to define custom constants in models. I realize
   it is possible to define global constants in bootstrap.php and this
   works well but for example, when I want to define user roles for
   different acces rights like

   define(USER_ROLE_READER, 1);
   define(USER_ROLE_PUBLISHER, 2);

   The logical way for me would to do that in the User model so I can
   access these constant with

   User::USER_ROLE_READER

   etc.

   Is there a way to do this or do you disagree with my approach?

   thx!
   mark

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---