Re: cake 1.2

2006-11-17 Thread Daniel Hofstetter

Hi Mandy,

Use the API for the 1.1.x.x version:
http://cakeforge.org/frs/download.php/264/cake-api-1.1.8.3544.chm

As long as there is no official release, cake 1.2 is considered to be
unstable. But if you can live with that, you can use it for your
project. 

-- 
Daniel Hofstetter
http://cakebaker.42dh.com


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



Re: cookie

2006-11-17 Thread joe

the cake session component works great:

http://manual.cakephp.org/chapter/session


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



editInPlace fckeditor

2006-11-17 Thread bingo

Hi,

I am wondering did anyone try getting FCKEditor instead of regular
textarea for editInPlaceI would like to have that functionality.
But I am not very good with ajax and javascript.

Please let me know if you guys have some interesting pointers for that

Regards,
bingo


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



Re: editInPlace fckeditor

2006-11-17 Thread Ismael S. Kafeltz

Maybe this helps: http://bakery.cakephp.org/articles/view/143


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



Re: bake.php directory exists

2006-11-17 Thread Sonic Baker
On 11/16/06, gazzur [EMAIL PROTECTED] wrote:




 Anyone know what I should be doing?


Have you tried the -project switch? bake -h for details.

HTH

Sonic


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


Re: editInPlace fckeditor

2006-11-17 Thread bingo

Hi Ismael,

Thanks for the pointer..I think I saw it...and got fckeditor
working...but now sure how to display FCKeditor when user double clicks
on a paragraph...

Bingo


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



CakePHP mailing list?

2006-11-17 Thread Christoph

Is there a mailing list or other forum for CakePHP?  It seems like this
Google Groups format makes things more difficult.  It seems like the
older posts get overlooked because they are 2 or 3 or more pages back.
Unless you check several times a day, it's very easy to overlook
messages...

thnx,
Christoph


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



tagErrorMsg annoyance

2006-11-17 Thread Richard

Hi,

I have removed the styling information from the tagErrorMsg method, so
that no automaginess happens when outputting messages.

This does mean everytime I update cake I will have to update html.php
... are there any other options? Do you agree that having the
flexibility in surpressing this style information is a good thing?

Now I can do things like this now:

// turns my input element background red on error
$html-input('Enquire/name', array($html-tagErrorMsg('Enquire/name',
'style=background-color:red')));


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



Re: Default layout and controllers

2006-11-17 Thread Erich C. Beyrent

I had tried that approach.  What happens is that the view sees the 
variable without a problem, but not the default layout.  It's almost 
like I need to pass the variable to the controller that handles the 
layout to set.

-Erich-

Grant Cox wrote:
 I think the problem to #1 is that you have
 if(isset($this-offerTitle)){
 instead of
 if( !isset($this-offerTitle) ){
 
 
 But the best way to do it would be to have in your controller
 $this-set('offerTitle', 'Test Promotion');
 
 and in your layout
 print 'h1 id=siteName'.$offerTitle.'/h1';
 
 
  

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



Re: Re: Re: Changing theme

2006-11-17 Thread xeboy
Dr. Tarique Sani,您好!

I am not good enough to write a tutorial like others. I am just newbie. But, I 
am glad to share my experience.

First, the theme.php will handle the rest, when u set your theme. Just put the 
theme.php into the folder of views. And, in your app_controller, set var $view 
= 'Theme' first. Now, what we should do is just pass a value to Theme, a simple 
way is just var $theme=yourtheme, just like Dr. T said. 
Second, to let the code above works, we should creat a new yourtheme folder 
both in views and webroot folders. Like the default Cake does. In your 
views/yourtheme, you should have layout. And in the webroot/yourtheme, you 
should have css/js/img...(Do more works here, make it different)

Ok, it just works. 

But, When you want to make some speical for users, who can choose what he like, 
one way, I used is session. (Surely,there is other ways, I am keep looking.) 
And, I am using the simpleAuth from the Cake-Manul, it is simple can clear. 
Read the manul first, you will find like session-write, and session-read. I 
learn from the irc channel how the session works. Creat a new field called 
theme in your user table. And make is load into session, as username,password. 
Using  $this-Session-write('Theme', $someone['User']['theme']) to write the 
current users' theme into session. And then ,what you need to do is just read 
it from session and pass it to the $theme. 

Using a fuction in app_controller:

function beforeFilter()
{
if ( $this-Session-check('Theme') )
   { 
$this-theme = $this-Session-read('Theme');
   }
   
}

That's it. Simple but need more works to know the whole picture.

BTW, I am trying to make a function like when a vistor click a drop-down list 
to choose a theme, and the theme can save it into cookies. Just for the 
non-login users. 
Dr.Tarique Sani can u give me some advices?  I am not clear about how to pass 
the value to $theme, when a vistor choose a theme by a drop-down list.

Thanks. 
Hopes it clear and make helps.

=== 2006-11-17 00:25:47 您在来信中写道:===

On 11/17/06, xeboy [EMAIL PROTECTED] wrote:
 Dr. Tarique Sani,您好!

 Thanks. For your kind and patient!

 I got it. Hehe

Great! now please write a tutorial about it show all the steps needed
to get it right ;)

Tarique

-- 
=
PHP Applications for E-Biz: http://www.sanisoft.com
Coppermine Picture Gallery: http://coppermine.sf.net
=



= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
xeboy
[EMAIL PROTECTED]
  2006-11-17


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



Re: read() function is not working

2006-11-17 Thread rdoggsv

Sometimes its because u have a primarykey diferent from 'id' if im not
wrong your PK is 'fldUserID' , make sure u specified it on the model
like $primaryKey = 'fldUserID';  , sometimes i use instead of

$this-Ciuser-id = $id;
$this-Ciuser-read();

-

$this-Ciuser-read(null,$id);

hope this helps :)


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



Re: high load and benchmarking

2006-11-17 Thread NOSLOW

If one were to develop such a tool to benchmark a CakePHP project under
high load, I guess a suitable name for it would be PoundCake :)


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



Re: CakePHP mailing list?

2006-11-17 Thread D.Pape

hi christoph,

i´m joining this group via email, so i am always up to date.

daniel





Christoph schrieb:
 Is there a mailing list or other forum for CakePHP?  It seems like this
 Google Groups format makes things more difficult.  It seems like the
 older posts get overlooked because they are 2 or 3 or more pages back.
 Unless you check several times a day, it's very easy to overlook
 messages...

 thnx,
 Christoph


 

   


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



Re: Modeling database views

2006-11-17 Thread Christoph

Any thoughts?

thnx,
Christoph


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



Re: Modeling database views

2006-11-17 Thread Chris Hartjes

On 11/17/06, Christoph [EMAIL PROTECTED] wrote:

 Any thoughts?

 thnx,
 Christoph

I have zero experience with views...but I don't see what would stop
anyone from creating a model that manipulates views.  Maybe you don't
get to use all the fancy helper methods, but I suspect you probably
need to have a certain level of knowledge of SQL and databases in
order to get the most out of views.  Which, by extension, means you
should be okay doing your own hand-written queries.

I believe that the point of the helper functions is to keep things
database-agnostic, and building in exceptions for a specific database
should be kept to a minimum.

Just my opinion.

-- 
Chris Hartjes

The greatest inefficiencies come from solving problems you will never have.
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

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



Re: Modeling database views

2006-11-17 Thread Christoph

 I believe that the point of the helper functions is to keep things
 database-agnostic, and building in exceptions for a specific database
 should be kept to a minimum.

I'm not talking about creating helpers or helper functions.  Just using
a DB view's model for things like findAll(), generateList(), etc.
Consider the following:

Table: games
Fields: id, game_name

Table: sets
Fields: id, set_name

Table: game_sets
Fields: id, set_id, game_id

Table: game_pieces
Table: id, game_set_id, piece_name

Using just the game_pieces model, if I use findAll(), generateList(),
et. al., I get only the game_set_id and would have to look elsewhere
(in the array returned by, say, findAll()) to get the set name or even
the game name.  Not in and of itself a bad thing but if you have
thousands and thousands of game pieces, each getting returned with the
related game_sets, games, sets, that's a massively huge array that
you'll be getting back.

Now, lets consider the following view (which will have it's own Cake
model)

CREATE VIEW game_pieces_view AS
SELECT
  game_pieces.id,
  game_pieces.piece_name,
  games.game_name,
  sets.set_name
FROM
  game_pieces
INNER JOIN game_sets ON games_sets.id = game_pieces.game_set_id
INNER JOIN sets ON sets.id = game_sets.set_id
INNER JOIN games ON games.id = game_sets.game_id

so now I can do $this-GamePiecesView-findAll() or
$this-GamePiecesView-generateList() and have easy access to access to
just the data I need.  I'll be doing all of this in the
game_pieces_controller in, for example, the index action method.  This
is a departure since the controller wouldn't be using the corresponding
model but instead a related model (ie, GamePiecesView model and not the
GamePieces model).  I'd still be using the GamePieces model for other
things (for example saving the data from add/edit) but for general
wholesale listing of data (for example, the output from the index
action), I'd be using the GamePiecesView model.

Because of that departure and because I'm so new to MVC in general, I'm
not sure if it's good practice.  This is the reason for my original
question.

thnx,
Christoph


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



Re: Modeling database views

2006-11-17 Thread Chris Hartjes

On 11/17/06, Christoph [EMAIL PROTECTED] wrote:

  I believe that the point of the helper functions is to keep things
  database-agnostic, and building in exceptions for a specific database
  should be kept to a minimum.

 I'm not talking about creating helpers or helper functions.  Just using
 a DB view's model for things like findAll(), generateList(), etc.
 Consider the following:


I think we misunderstood each other here. :)  I think database views
are database-specific enough that you would have a hard time creating
generic database view handlers.  That's all.

I've never used views, but obviously they have a time and a place.

-- 
Chris Hartjes

The greatest inefficiencies come from solving problems you will never have.
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

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



Re: best manual about acl witch cake

2006-11-17 Thread [EMAIL PROTECTED]


 I particularly like the idea of having records as ACOs and not just
 controller/actions as ACO as is mostly believed.

 Have been toying about with ACL and related issues I was thinking of
 making controller:action:id as ACOs but I like the idea of model:id as

yes it's a very good idea ! naturaly,is check permisions for id of
recrods  !

its my sample method for othAuth for check owner record..
function _isOwner($obiect,$element,$client=0){
  //sprawdzamy czy istenieje id uzytkownika
if(is_numeric($client)  $client  0){

if($obiect=='users'){
$sql=mysql_query(SELECT id FROM .$obiect.
WHERE 
id='.$element.' LIMIT 1);
}else{
$sql=mysql_query(SELECT id, user_id 
FROM .$obiect.
WHERE 
id='.$element.' LIMIT 1);
}

//sprawdzamy czy istenieje obiekt
if(@mysql_num_rows($sql)0){
$row=mysql_fetch_array($sql);
if ($obiect=='users') $row['user_id']=0;

//sprawdzamy czy wlascicielem jest uzytkownik
if ($row['user_id']==$client || 
($row['user_id']==0 
$row['id']==$client)){
  return 1;
  exit;
}else{


if(up($this-group('name'))=='ADMINISTRATOR' ||
up($this-group('name'))=='MODERATOR'){
return 1;
exit;
}

//echo '3';
return 0;


}


}else{

//echo 
'2:'.$obiect.':'.$element.':'.$client;
return 0;

}

}else{
//echo '1';
return 0;

}
}

function _othCheckPermission($ses,$multi = false)
{
//die('c');
uses('inflector');

$c   =
strtolower(Inflector::underscore($this-controller-name));
$a   = strtolower($this-controller-action);
$h   = strtolower($this-controller-here);  $perm_parts =
explode('/',$sp_name);
$c_a = $this-_handleCakeAdmin($c,$a);//
controller/admin_action - admin/controller/action

if($a=='edit' || $a=='delete'){

// full params check isn't supported atm
$sp_name = strtolower($h);
$perm_parts = explode('/',$sp_name);


if(!$this-_isOwner($c,$perm_parts[3],$ses[{$this-user_model}]['id'])){

return false; 
} 

  
}


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



Re: Modeling database views

2006-11-17 Thread [EMAIL PROTECTED]

I don't have any experience with database view in cakePHP. But I have
used both, so here's my take.

I can't see any reason why you wouldn't want to model a view. As far as
SQL is concerned, views can be treated just like any other table. So
all of the fancy helper methods should work the same on views as they
do on tables.

sc


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



A safe webhost

2006-11-17 Thread cele1989

I'm working on something
I have a own webserver and like to share it with a little amount of
members.
I need a website where they can login, etc etc...
Now I have a big problem...security...
I need to be able to easily controle the members and their rights, etc
etc...
I thought, well nice, I will use a database.
But now I want to give my members the ability to use a database to to
store their information and php to make easily a nice webpage...
My problem is...

I open connection with MY database
I control if their logged in
Then they go to their edit page
and they type SELECT * FROM a table in MY database...

So I was wondering...how am I going to solve this?

I thought...well this seems a lot like a webhost, what i'm going to
make...
So I thought...
How do they keep their database with their information safe?


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



Saving associated models

2006-11-17 Thread igor

I have this Editor model which hasAndBelongsToMany Connection(s).
Editor, Connection models have all associations set corrrect.

On a page I have this Connection and a list of all Editors. I want to
use checkbox to check which Editor(s) I want to assign to this
Connection.id given.

How should I name the $fieldName in $html-checkbox() helper?

I've tried this:

$html-checkbox('Connection/Connection',null,
array('value'=$editor['Editor']['id'], $checked), true)

also $fieldName was 'Connection/Editor', 'Editor/id',
'Connection/id'... 

but no use

help. thanx


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



Setting up autocomplete

2006-11-17 Thread Christoph

So I read the following article and implemented everything detailed
within.  I followed the instructions exactly in this article and it's
not working.

The following is in my default layout:

head
title?php echo $title_for_layout;?/title
?php
echo $html-charsetTag('UTF-8');
echo $javascript-link('prototype');
echo $javascript-link('scriptaculous.js');
echo $javascript-link('controls');
?
/head

Here is what my controller looks like:

var $helpers = array('Html', 'Form' , 'Ajax', 'Javascript' );
var $components = array( 'Pager', 'Autocomplete' );

(I didn't make any other change or add any other code to my controller)

This is what my view looks like:

div class=required
?php echo $form-labelTag('User/theme', 'Autocomplete Theme');?
?php echo $ajax-autoComplete('User/theme', '', array( 'autocomplete'
= 'on' ));?
?php echo $html-tagErrorMsg('User/theme', 'Please enter the
Theme.');?
/div

And here is what gets rendered in my browser (excerpt):

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
titleUsers/title
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
script type=text/javascript src=/narthex/js/prototype.js/script
script type=text/javascript
src=/narthex/js/scriptaculous.js/script
script type=text/javascript src=/narthex/js/controls.js/script
/head
  body
form action=/narthex/users/edit/joebobbriggs method=post

  div class=required
label for=UserThemeAutocomplete Theme/label
input name=data[User][theme]  autocomplete=off
id=UserTheme value=CH type=text /
div  id=UserTheme_autoComplete class=auto_complete/div
script type=text/javascript
new Ajax.Autocompleter('UserTheme',
'UserTheme_autoComplete', '/narthex/users/edit/joebobbriggs', {});
/script
  /div
input type=submit value=Save //div
/form

  /body
/html

One thing that I did notice is that 'autocomplete' is set to 'off' in
the input tag.  Is it supposed to be like that?

So what else do I need to do?  I've got to be missing something here...

thnx,
Christohp


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



Re: high load and benchmarking

2006-11-17 Thread [EMAIL PROTECTED]

Thank you for replyes.

I know how to do overall benchmarking and some specific benchmarkin
also. The part I'm intrested is taht are those autogenerated joins
optimal to use in live environment or is it wiser to use specific
querys and do not get a good/easy use of autogeneration and overall
database layer.


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



Overriding Session Component for better setFlash()?

2006-11-17 Thread brandags

I'm using Session::setFlash() to show messages to the user, but there
are some things I don't like about it:

1) It can only show one message at a time. I'd like to be able to set
several messages and have them all displayed once the page refreshes.
2) While you can set layouts for the entire flash message, I'd rather
be able to set a flash type, which would simply change the CSS class
for each message I set (depending on the layout). This way, I could
have a list of several messages, and some could be confirmations (with
a green checkmark) and other could be errors or warnings in red, all in
the same flash box.

I was thinking if there was a way I could override the Session
component (particularly the setFlash() function), that would be an easy
way to handle it. Is this possible, and if so, is it the best way to do
what I want above?

Thank you,
Brandon


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



Pretty URLs Develpoment Installation Problem

2006-11-17 Thread josh southern

I'm trying to get a development install up and running on a shared
server (No mod_rewrite or access to the httpd.conf file), but am having
problems with:

define ('BASE_URL', env('SCRIPT_NAME'));

This line in the core.php file, which usually allows me to run a
development install when there is no mod_rewrite, seems to be pointing
to the wrong place.

The first page opens up fine:

http://www.hughesac.com/cake

...but the links point to the totally wrong folder:

http://www.hughesac.com/cgi-php/phpwrapper/controllername/actionname

What's more, when I manually type in the Pretty URL of the action I
want to test (i.e.
http://www.hughesac.com/cake/index.php/products/glossary ), it pops a
No Input File Specified error.

Any ideas on what's wrong and/or how I can get it up and running?


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