Re: Quark CMS (testers wanted)

2007-05-20 Thread Mandy Singh
Sree -

I know that. Thats wha'ts called a Rich Text Editor (RTE).

Please read what I was trying to detail out.

CMS's are different..But Oh Well!

-Mandy.


On 5/21/07, Schogini Support <[EMAIL PROTECTED]> wrote:
>
> Mandy,
>
> Actually tineMCE(or FSCK editor) replaces your TEXTAREA into a WYSIWYG
> input system. All your formatting happens as HTML and when you submit
> reaches your code as HTML string (like typed into a TEAXTAREA), no external
> extractions unless you have images etc pointing to remote site.
>
> Nice work, hope it will be used by many.
>
> Best wishes,
> Sree
>
> On 5/21/07, Mandy <[EMAIL PROTECTED] > wrote:
> >
> >
> > @tom -
> >
> > This cms is much more than a Rich Text Editor that you are talking
> > about.
> >
> > With the RTE (like tinyMCE) you can only style your content but it
> > needs to go somewhere and get pulled from there - right?
> >
> > This is what a CMS does - it manages your content.
> >
> > Instead of manually creating static html files and linking them, you
> > just created them on the fly by filling some form fields, etc.
> >
> > @adeel -
> >
> > I had a quick look at the screenshots and even though it looks a lot
> > like ROR applications (UI design wise ;)) I think it's been designed
> > pretty well..functionality wise. I can look into contributing with the
> > code or testing.
> >
> > Let me know how you want to go about it.
> >
> > Thanks,
> > mandy.
> >
> > On May 20, 9:23 pm, " [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > > looks good...i'd personally use tinyMCE or something though, much more
> > > intuitive than having to learn something new for stylizing/formatting
> > > text.
> > >
> > > hope everything works out for you.
> > >
> > > On May 19, 6:45 am, adeel <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > > I just wrote a CMS called http://quarkcms.devjavu.com
> > ">Quark
> > > > CMS using CakePHP. I've mostly worked on the admin interface so
> > > > far, and it's nearly finished. Soon I'll be doing the SiteHelper
> > that
> > > > lets you customize the layout and everything.
> > >
> > > > Let me know what you guys think!- Hide quoted text -
> > >
> > > - Show quoted text -
> >
> >
> > > >
> >

--~--~-~--~~~---~--~~
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: Quark CMS (testers wanted)

2007-05-20 Thread Schogini Support
Mandy,

Actually tineMCE(or FSCK editor) replaces your TEXTAREA into a WYSIWYG input
system. All your formatting happens as HTML and when you submit reaches your
code as HTML string (like typed into a TEAXTAREA), no external extractions
unless you have images etc pointing to remote site.

Nice work, hope it will be used by many.

Best wishes,
Sree

On 5/21/07, Mandy <[EMAIL PROTECTED]> wrote:
>
>
> @tom -
>
> This cms is much more than a Rich Text Editor that you are talking
> about.
>
> With the RTE (like tinyMCE) you can only style your content but it
> needs to go somewhere and get pulled from there - right?
>
> This is what a CMS does - it manages your content.
>
> Instead of manually creating static html files and linking them, you
> just created them on the fly by filling some form fields, etc.
>
> @adeel -
>
> I had a quick look at the screenshots and even though it looks a lot
> like ROR applications (UI design wise ;)) I think it's been designed
> pretty well..functionality wise. I can look into contributing with the
> code or testing.
>
> Let me know how you want to go about it.
>
> Thanks,
> mandy.
>
> On May 20, 9:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > looks good...i'd personally use tinyMCE or something though, much more
> > intuitive than having to learn something new for stylizing/formatting
> > text.
> >
> > hope everything works out for you.
> >
> > On May 19, 6:45 am, adeel <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I just wrote a CMS called http://quarkcms.devjavu.com";>Quark
> > > CMS using CakePHP. I've mostly worked on the admin interface so
> > > far, and it's nearly finished. Soon I'll be doing the SiteHelper that
> > > lets you customize the layout and everything.
> >
> > > Let me know what you guys think!- Hide quoted text -
> >
> > - Show quoted text -
>
>
> >
>

--~--~-~--~~~---~--~~
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: Quark CMS (testers wanted)

2007-05-20 Thread Mandy

@tom -

This cms is much more than a Rich Text Editor that you are talking
about.

With the RTE (like tinyMCE) you can only style your content but it
needs to go somewhere and get pulled from there - right?

This is what a CMS does - it manages your content.

Instead of manually creating static html files and linking them, you
just created them on the fly by filling some form fields, etc.

@adeel -

I had a quick look at the screenshots and even though it looks a lot
like ROR applications (UI design wise ;)) I think it's been designed
pretty well..functionality wise. I can look into contributing with the
code or testing.

Let me know how you want to go about it.

Thanks,
mandy.

On May 20, 9:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> looks good...i'd personally use tinyMCE or something though, much more
> intuitive than having to learn something new for stylizing/formatting
> text.
>
> hope everything works out for you.
>
> On May 19, 6:45 am, adeel <[EMAIL PROTECTED]> wrote:
>
>
>
> > I just wrote a CMS called http://quarkcms.devjavu.com";>Quark
> > CMS using CakePHP. I've mostly worked on the admin interface so
> > far, and it's nearly finished. Soon I'll be doing the SiteHelper that
> > lets you customize the layout and everything.
>
> > Let me know what you guys think!- Hide quoted text -
>
> - Show quoted text -


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



how scalable is this framework

2007-05-20 Thread surendra

I am thinking of making a site like myspace,facebook(social
networking) site. Is it all  right  to choose  this framework. Is it
scalable for  such large scalable  site?. Am I making  a correct
decision?


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



1.2.0.5137alpha: form->textarea and validation doesn't work

2007-05-20 Thread DragonI

Hi,

When I'm trying to use the textarea form helper with validation, it
doesn't work - all I get is my page displayed without the form fields
being displayed.

Model:
var $validate =
array(
'title' =>
array (
'minLength' => array( 'rule' => 
array('minLength', 2) ),
'maxLength' => array( 'rule' => 
array('maxLength', 50) )
),
'body' => array(
'minLength' => array( 'rule' => 
array('minLength', 2) ),
'maxLength' => array( 'rule' => 
array('maxLength', 1000) )
)
);

View:
$form->textarea('body', array('cols'=>'40', 'rows'=>'10') )

But it works fine when I use form->input, i.e.
$form->input('body',
array('error' => array(
'minLength' => 'The comment must have at least 2 characters',
'maxLength' => 'The comment must have no more than 1000 
characters'
)
));

I checked the form helper code but there aren't any options for an
error array. Does anyone know of a workaround because I need to set
the cols and rows.

Thanks


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



LOG_DEBUG doesnt work

2007-05-20 Thread ivancasta

hi, i dont know why LOG_DEBUG doesnt works,
log function always get all log like error and write in error.log


i have this in my controller

class MarcasController extends AppController {

var $name = 'Marcas';

var $helpers = array('Html', 'Form' );

function index() {
$this->Marca->recursive = 0;
$this->set('marcas', $this->paginate());

$this->log("log in the
debug.",LOG_DEBUG);

}

...

thanks


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



Blank selection option

2007-05-20 Thread rocky

Hey,

I'm using below code to generate a selection box.

Code begin
selectTag('User/where', array('Biblical Coach
Academy'=>'Bibli
cal Coach Academy','CACC'=>'CACC','Christian Coaches
Network'=>'Christian Coache
s Network','Coaching Conference'=>'Coaching
Conference','ILCT'=>'ILCT','PCCA'=>'
PCCA','Search Engine'=>'Search Engine','Friend or referral'=>'Friend
or referral
'))?>
--Code end---

But instead of filled with 'Biblical Coach Academy', I got a blank
item. Can any of you how to get rid of the blank item please?

Blessings,
Rocky


--~--~-~--~~~---~--~~
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: Vendor: should it extend AppModel?

2007-05-20 Thread cake_icing

I am thinking about creating an authentication class as a vendor
because I will use it for another project too. But of couse this will
communicate with some tables like members or users or whatever the
table name. Authentication should only verify if username and password
are a perfect match... but it needs to query to db for that purpose.

What's your suggestion.

Btw, thanks for your reply... I really appreciate that.



On May 20, 9:52 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> If you need to extend AppModel, it sounds like you are creating a
> model class.  Which should be in models, not vendors.
>
> Vendors is usually for classes / projects that your application uses,
> but are separate projects in their own right (and should not contain
> anything application specific).
>
> What kind of functionality are you looking at putting into this new
> class?


--~--~-~--~~~---~--~~
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: Inflections question

2007-05-20 Thread Grant Cox

The simple solution is just to have

var $uses = array('TestA');

in the top of your controller.


--~--~-~--~~~---~--~~
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: Bad link without mod rewrite

2007-05-20 Thread xavi

can you print your routes?

bye



On 6 mayo, 19:20, sickrandir <[EMAIL PROTECTED]> wrote:
> Not using any cake function..
> The links are inserted as §I wrote in the first message..like this:
>
> Links are insertedi in the posts like this: Missuldisc07
>
> Not solved yet..   :-(
>
> On May 1, 12:23 pm, xavi <[EMAIL PROTECTED]> wrote:
>
> > Are you using $html->url() or $html->link()  to generate the links?
>
> > bye
>
> > On Apr 30, 12:24 pm,sickrandir<[EMAIL PROTECTED]> wrote:
>
> > > Tried to figure out the problem by myself but without success...
> > > Anyone can help?
>
> > > thank you
>
> > >sickrandir
>
> > > On Apr 19, 6:26 pm,sickrandir<[EMAIL PROTECTED]> wrote:
>
> > > > I'm running a site with the latest stable version of cake 1.1 .
> > > > I disabled mod rewrite by uncommenting: define ('BASE_URL',
> > > > env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file.
> > > > Everything seems to work except for the link inserted in the posts of
> > > > the home page.
> > > > The first time you load the home page the links don't have the
> > > > "index.php/" part, so they are broken.
> > > > But if you browse another page of the site from the menu and you
> > > > return on the home page then the links are correct.
> > > > Links are insertedi in the posts like this: Missuldisc07
> > > > Someone has any suggestion to avoid this strange behaviour?
> > > > My site is:http://www.frasbadallac.it
>
> > > > Thanks


--~--~-~--~~~---~--~~
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: Login On Home Page

2007-05-20 Thread Grant Cox

The PagesController is intended for purely static pages, not for
functionality.  You should make a UsersController (or whatever model
is storing your authentication data) for the login action.  You can
make this appear as your default front page by modifying the app/
config/routes.php file.


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



Login On Home Page

2007-05-20 Thread [EMAIL PROTECTED]

I made myself a fancy home.thtml and put it in /views/pages/
home.thtml.  I'm scratching my head trying to figure out what
controller goes to it.  I tried to use

function home() in pages_controller.php but it didn't work.  Should I
make a custom controller and use routing to / instead?


--~--~-~--~~~---~--~~
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: The Cake is Rising

2007-05-20 Thread Sliv

Thanks very much CakePHP Devs!


--~--~-~--~~~---~--~~
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: Redirecting views and using $this->set

2007-05-20 Thread V

I think that you can always read the session value in the beforeFilter
method for example. Which makes some sense if you would like to check
if he is logged in.

V

On May 20, 5:04 pm, yangz <[EMAIL PROTECTED]> wrote:
> I am doing a login page and it will redirect the user to the index
> page if its successful.
>
> However, if i set a variable to indicate that the user is logged by
> using $this->set, i am not able to pick up the value from the view if
> i used redirect.
>
> i can use the Session, however i am using the pages controller so if i
> redirect it to '/' , it will render the home.ctp view in the pages
> folder. so how do i read the session value ?


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



Automatically reply to email with webpage(s) attached

2007-05-20 Thread bic

hi,  i'm working a job where the sys admins have locked the network
down tight.  no web only email.  what i want to be able to do is send
an email *somewhere* with a command for the system to go and grap the
web page and reply with that page attached.

i'm sure i'm not the only person that wants to do this but can't find
anything on the web to do this.  i've got a windows box running IIS,
i'm hoping there is a package out there to do this... help pls


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



Discussion on cake-apps-sites-in-the-wild

2007-05-20 Thread nickel

Here's one that I made a while ago... www.giftgivr.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: Switching between databases

2007-05-20 Thread Samuel DeVore
Good idea in the long run, but for all my work I manage the servers ;)  So I
can be lazy ;)

On 5/20/07, Schogini Support <[EMAIL PROTECTED]> wrote:
>
>
> Good, you may want to replace
>
>
> $_SERVER[
> 'SERVER_NAME
> '] with env(
> 'SERVER_NAME
> ') for better compatibility with all types of servers.
>
>
> Regards Sree
>
>
>
> On 5/20/07, Samuel DeVore <[EMAIL PROTECTED]> wrote:
> >
> > like this
> >
> > < http://pastie.textmate.org/private/bcbw4agr20ehuu5vii>
> >
> > On 5/19/07, pbland <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > In the database.php file, it says "you can specify multiple
> > > configurations for production, development and testing."   I'm not
> > > seeing how easily it is to switch from doing local development on a
> > > local database and then moving to a live database. I know you can
> > > change databases in the controller through the $useDbConfig, but then
> > > this requires changing each controller when you're ready to go live.
> > > I'm missing something. Anyone willing to share how they setup their
> > > development and production db configs?
> > >
> > > Thanks,
> > > Paul
> > >
> > >
> > >
> >
> >
> > --
> > (the old fart) the advice is free, the lack of crankiness will cost you
> >
> > - its a fine line between a real question and an idiot
> >
> > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
> >
> >
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~-~--~~~---~--~~
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: Switching between databases

2007-05-20 Thread Schogini Support
Good, you may want to replace


$_SERVER[
'SERVER_NAME
'] with env(
'SERVER_NAME
') for better compatibility with all types of servers.

Regards Sree



On 5/20/07, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> like this
>
> 
>
> On 5/19/07, pbland <[EMAIL PROTECTED]> wrote:
> >
> >
> > In the database.php file, it says "you can specify multiple
> > configurations for production, development and testing."   I'm not
> > seeing how easily it is to switch from doing local development on a
> > local database and then moving to a live database. I know you can
> > change databases in the controller through the $useDbConfig, but then
> > this requires changing each controller when you're ready to go live.
> > I'm missing something. Anyone willing to share how they setup their
> > development and production db configs?
> >
> > Thanks,
> > Paul
> >
> >
> >
>
>
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
> >
>

--~--~-~--~~~---~--~~
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: Switching between databases

2007-05-20 Thread Samuel DeVore
like this



On 5/19/07, pbland <[EMAIL PROTECTED]> wrote:
>
>
> In the database.php file, it says "you can specify multiple
> configurations for production, development and testing."   I'm not
> seeing how easily it is to switch from doing local development on a
> local database and then moving to a live database. I know you can
> change databases in the controller through the $useDbConfig, but then
> this requires changing each controller when you're ready to go live.
> I'm missing something. Anyone willing to share how they setup their
> development and production db configs?
>
> Thanks,
> Paul
>
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

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



small ajax problem

2007-05-20 Thread pete

hi,
im trying some simpe ajax functions. the add_row is called and the
data is also stored in the db. but i got the error message:
Notice: Undefined variable: javascript in ...\app\views\layouts
\default.thtml on line 8

Fatal error: Call to a member function link() on a non-object in 
\default.thtml on line 8

there must be something going on with the mymessagediv, because the
"data saved" message isnt showing...
any idea where the error could be?

thanks

pete





class UsersController extends AppController
{
var $helpers = array('Html','Javascript','Ajax','Form');

 function index()
{

   $this->set('users', $this->User->findAll());
$this->set('mymessage', 'before ajax call');
}

function add_row()
{
$this->User->add_row();
$this->set('mymessage', 'data saved');
$this->render('messagediv', 'ajax');

}


view:



 
form onSubmit="return false;">
submit('Add task', array('url' => 'add_row',
'update'=>'messagediv'));

?>



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



Email Component - sendAs=both

2007-05-20 Thread [EMAIL PROTECTED]


I'm having trouble using the email component with sendAs set to
'both'. It works in text mode, and in html mode. But when I set it to
both, the message doesn't show up in Thunderbird email client. It does
render in gmail... I have look at (https://trac.cakephp.org/ticket/
1851) and looked for other related tickets, but I cant seem to find
the problem.

I'm using cakePHP 1.2.0.5137alpha.

Thanks,
cook


This is the message output I get when I debug the email component:

[To:] [EMAIL PROTECTED]
[Subject:] my subject
[Header:]

From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
X-Mailer: CakePHP Email Component
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="75f64001b39b1f4d1bb641b0cc725c89"

[Parameters:]


[Message:]

--75f64001b39b1f4d1bb641b0cc725c89
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
id   3
email[EMAIL PROTECTED]
name Shawn Cook
phone810-599-6843
subject  my subject
body This is message text.
sent_to
date_sent-00-00 00:00:00
date MayMayMay-20-07


--75f64001b39b1f4d1bb641b0cc725c89
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit




id3  email[EMAIL PROTECTED]  nameShawn Cookphone810-599-6843
subjectmy subject bodyThis is message
text. sent_to  date_sent-00-00 00:00:00dateMayMayMay-20-07

--75f64001b39b1f4d1bb641b0cc725c89--


--~--~-~--~~~---~--~~
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: (HtmlHelper::submit) Deprecated: Use FormHelper::submit instead | switch off?

2007-05-20 Thread Mariano Iglesias

Besides:

http://bakery.cakephp.org/articles/view/the-cake-is-rising

There's no possibility to switch off since deprecated methods have been
removed on latest 1.2 release.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar

-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Seann Alexander
Enviado el: Domingo, 20 de Mayo de 2007 01:32 p.m.
Para: Cake PHP
Asunto: Re: (HtmlHelper::submit) Deprecated: Use FormHelper::submit instead
| switch off?

Adding
var $helpers = array('Html', 'Form');
to your _controller.php will help you use
$form->submit('Save')
instead of
$html->submit('Save')


--~--~-~--~~~---~--~~
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: (HtmlHelper::submit) Deprecated: Use FormHelper::submit instead | switch off?

2007-05-20 Thread Seann Alexander

Adding
var $helpers = array('Html', 'Form');
to your _controller.php will help you use
$form->submit('Save')
instead of
$html->submit('Save')


On Apr 16, 10:19 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I'm not sure where it is specifically, but I would search your /cake
> directory for the string "UseFormHelper::submit" and you should find the 
> message and the
> deprecation.  You can comment them at your own risk, as they are
> generallydeprecatedfor a reason.
>
> On Apr 16, 7:42 am, "Schubidu" <[EMAIL PROTECTED]> wrote:
>
> > How I switch of this message "(HtmlHelper::submit)Deprecated:Use
> >FormHelper::submitinstead"?


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



Validation 1.2 and form errors

2007-05-20 Thread DragonI

Hi,

I want to do 2 things:
1. display a general error message at the top of the form when an
error occurs
2. display error messages above the field instead of below as is being
done in 1.2

How can I access the array of errors?

Also how do I perform pattern matching?

Thanks Newbie ;)


--~--~-~--~~~---~--~~
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: Quark CMS (testers wanted)

2007-05-20 Thread [EMAIL PROTECTED]

looks good...i'd personally use tinyMCE or something though, much more
intuitive than having to learn something new for stylizing/formatting
text.

hope everything works out for you.



On May 19, 6:45 am, adeel <[EMAIL PROTECTED]> wrote:
> I just wrote a CMS called http://quarkcms.devjavu.com";>Quark
> CMS using CakePHP. I've mostly worked on the admin interface so
> far, and it's nearly finished. Soon I'll be doing the SiteHelper that
> lets you customize the layout and everything.
>
> Let me know what you guys think!


--~--~-~--~~~---~--~~
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: FindBy and recursive?

2007-05-20 Thread msamour

I do this but I get this error on top of my view:
Query: SELECT `Diario`.`id`, `Diario`.`informediario_id`,
`Diario`.`actividad_id`, `Diario`.`tablon_id`, `Diario`.`jornal_h`,
`Diario`.`jornal_m`, `Diario`.`rendimiento`, `Diario`.`sueldo_h`,
`Diario`.`sueldo_m`, `Diario`.`observacion`, `Diario`.`estaactivo`
FROM `diarios` AS `Diario` WHERE `Diario`.`finca_id` = 2
Warning: SQL Error: 1054: Unknown column 'Diario.finca_id' in 'where
clause' in /var/www/finca/cake/cake/libs/model/datasources/
dbo_source.php on line 476

I use this on my controller:

This the function on my controller:

function view($id = null) {

if(!$id) {

$this->Session->setFlash('Invalid id for
Informediario.');

$this->redirect('/informediarios/index');

}

$this->Informediario->recursive=2;

$this->set('informediario', $this->Informediario-
>find( $id));

//$this->set('informediario', $this->Informediario-
>read(null, $id));

}

Any ideas what I am doing wrong?

On Apr 13, 12:45 am, "gwoo" <[EMAIL PROTECTED]> wrote:
> $this->ModelName->recursive= 2;
> $this->ModelName->read(null, $id);


--~--~-~--~~~---~--~~
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 installation on shared host -- redirection fails

2007-05-20 Thread CakeNewbi

I installed my application on a shared server .
After hours of configuration it finally worked, except when i want to
use e.g. $this->redirect('/profiles/welcome/');
i will be redirected to an empty page.
if i use the render function everything is fine and all is working ?!
Do you know whats going on ?

here's my .htaccess

Options Indexes FollowSymLinks

RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


here's my index.php

if (!defined('ROOT')) {
 define('ROOT',
DS.'www'.DS.'htdocs'.DS.'v078540'.DS.'CakePHP');
}
if (!defined('APP_DIR')) {
 define('APP_DIR','unisport' );
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
 define('CAKE_CORE_INCLUDE_PATH', ROOT);
}

if (!defined('WEBROOT_DIR')) {
 define('WEBROOT_DIR', basename(dirname(__FILE__)));
}

The rest is left as it was 
Do you have any idea ? I searched the internet for hours but nobody
seems to have the same problem
Thx in advance.


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



Switching between databases

2007-05-20 Thread pbland

In the database.php file, it says "you can specify multiple
configurations for production, development and testing."   I'm not
seeing how easily it is to switch from doing local development on a
local database and then moving to a live database. I know you can
change databases in the controller through the $useDbConfig, but then
this requires changing each controller when you're ready to go live.
I'm missing something. Anyone willing to share how they setup their
development and production db configs?

Thanks,
Paul


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



Inflections question

2007-05-20 Thread welja

I am trying to get the Controller named "TestA" to work, but i can't
get it to work.
The following error gets in my face:

Missing Model

No class found for the Testum model

I have made several additions to the inflections file:

$pluralRules = array('/(t)est_a$/i'=>'\1\2est_a');
$uninflectedPlural = array('.*est_a');
$irregularPlural = array('test_a'=>'test_a');
$singularRules = array('/(t)est_a$/i'=>'\1\2est_a');

And strangely enough when i use the following code in a test
controller:

echo '';
$n = 'test_a';

echo Inflector::camelize($n).'';

$c = Inflector::underscore( Inflector::camelize($n) );

echo $c.'';
echo Inflector::classify($c) ."";
echo Inflector::underscore( Inflector::classify($c) );

I get the following - correct - output:

TestA
test_a
TestA
test_a

So cake seems to understand that I want to use the Controller TestA
and the Model TestA in another controller.
But if i use the controller directly - myurl/test_a/ - it wants a
Testum Model.

Any ideas?
Or have i found a bug?

O, i am using cake:1.1.15.5134.
First tried it with cake 1.12


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



Redirecting views and using $this->set

2007-05-20 Thread yangz

I am doing a login page and it will redirect the user to the index
page if its successful.

However, if i set a variable to indicate that the user is logged by
using $this->set, i am not able to pick up the value from the view if
i used redirect.

i can use the Session, however i am using the pages controller so if i
redirect it to '/' , it will render the home.ctp view in the pages
folder. so how do i read the session value ?


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



how to use javascript in cakephp

2007-05-20 Thread ipa01

Hi I am new to cakephp,

I am trying to include a tooltip javascript i found on the internet
(http://www.walterzorn.com/tooltip/tooltip_e.htm#download)  into my
application, and try to use it. But I have no idea on how to do that,
the cakephp API seems like just tell the function. Really appreciate
on any guidance/how to for this matter. Thanks!


--~--~-~--~~~---~--~~
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: The Cake is Rising

2007-05-20 Thread Siegfried Hirsch

2007/5/20, Grant Cox <[EMAIL PROTECTED]>:
>
> Great news PhpNut, I'll have to check out the new cache engine
> options.
>
> Thanks for all your hard work - it's really appreciated.  And to the
> rest of the CakePHP dev team :)
+1

especially for the updated api documention. Thanks a lot.

-- 
Siegfried

--~--~-~--~~~---~--~~
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: AJAX & mini dialogs

2007-05-20 Thread Siegfried Hirsch

2007/5/19, Samuel DeVore <[EMAIL PROTECTED]>:
> here is one I have used that builds on prototype and scripta stuff
>
> http://ajaxian.com/archives/tooltipjs-creating-simple-tooltips
>
> there are a ton look in google for tooltip netflix
>
> On 5/18/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
> >
> > More of a javascript issue than a Cake one.  Google is your friend for
> > this.  Take a look at 'mousovers javascript'.

Take a look at lightbox. It depends on scriptacoulous but is only for pictures.
But there is another one called thickbox from the same author, which is
written with the help of jQuery, another Javascript library.

http://jquery.com/demo/thickbox/
http://jquery.com/
We have used thickbox and it is very easy to use for forms and the like.


-- 
Siegfried

--~--~-~--~~~---~--~~
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: The Cake is Rising

2007-05-20 Thread Grant Cox

Great news PhpNut, I'll have to check out the new cache engine
options.

Thanks for all your hard work - it's really appreciated.  And to the
rest of the CakePHP dev team :)


--~--~-~--~~~---~--~~
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: Vendor: should it extend AppModel?

2007-05-20 Thread Grant Cox

If you need to extend AppModel, it sounds like you are creating a
model class.  Which should be in models, not vendors.

Vendors is usually for classes / projects that your application uses,
but are separate projects in their own right (and should not contain
anything application specific).

What kind of functionality are you looking at putting into this new
class?


--~--~-~--~~~---~--~~
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: Problems with session

2007-05-20 Thread Grant Cox

D:\DW\xampp\htdocs\barato\app\controllers\homes_controller.php, line
1.  You must have something (probably whitespace) outside of 
tags - delete it.


--~--~-~--~~~---~--~~
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: ACL (again) in 1.2

2007-05-20 Thread Dave J

ah sweet!

thanks man.

I'm just very torn right now between the working ACL in 1.1 and all
the goodie features of 1.2 (the new FormHelper and the Set class by
themselves are enough!). And wondering if its worthwhile biting the
bullet and trying to figure out how it works in 1.2 (which would be
pointless if it's not working at all to begin with)

much appreciated though :-)

dave


On May 19, 7:34 pm, algo <[EMAIL PROTECTED]> wrote:
> Hello, Dave,
>
> I was lucky enough to get the answer from PhpNut in IRC,
> citing it here (hope he won't object)
>
> [21:19] <[algo]> ACL are working or not ?
> [21:19] <[algo]> 1.2
> [21:19]  no he has not made it back yet, his flight left about
> 1 hour ago
> [21:19] <[algo]> just saw you in SVN HEAD rev, that's why I ask =)
> [21:19]  [algo] it is working in the latest svn
> [21:20] <[algo]> cool
> [21:20]  [algo] you probably see my name in a lot of the
> files ;)
> [21:20] <[algo]> nowhere to read/get examples for new ACL right ?
> (excepts sources)
> [21:21]  nothing yet
> [21:21] <[algo]> I see ACL becomes sane in 1.2
> [21:21]  there will be soon though
> [21:21]  and it will be better before I release 1.2 stable
> [21:21] <[algo]> AXO ARO ACO just like phpgacl ?
> [21:21]  no
> [21:22] <[algo]> is it possible to select products together with
> access for current user ?
> [21:22] <[algo]> like Product->findAll()
> [21:22] <[algo]> but with access for current user
> [21:22] <[algo]> to show edit/delete buttons if needed
> [21:22]  [algo] it will be possible
> [21:22] <[algo]> but not yet ?
> [21:23]  [algo] it is but no docs on how to do it yet


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



The Cake is Rising

2007-05-20 Thread Larry E. Masters aka PhpNut
The latest bug fix release of 1.1.15.5134 is ready [1]. Check out the
changelog[2] to see what was fixed. The latest release of
1.2.0.5137alpha[3] moves closer to beta with the addition of the new
Cache Engines, Console
Shells and the Translation behavior.

You may notice fewer queries in both 1.1.15.5134 and 1.2.0.5137alpha the use
IN() in hasMany queries. This should help to speed up some of the bigger
associations.

The Cache Engines include apc, memcache, xcache, file, and model. When you
are ready to speed up your application, you can have a look at one of these
engines. Special thanks to Jiri Kupiainen aka aakour for his hard work.

The Console Shells are a new way to access Cake based scripts from the
command line. A 'cake' bash and dos wrapper have been provided to make the
commands shorter and these can be placed in your PATH to be accessed from
anywhere. All the scripts previously located in /cake/scripts have been
refactored to use this new functionality. The Bake shell provides a good
example of how you can separate your code to make it more maintainable and
extensible.

The Translation behavior also made it into the core in this release. This
allows you to maintain copies of dynamic information in multiple languages.
Special thanks to Jitka Koukalova aka poLK for her hard work. With the
addition of this behavior i18N should be complete in 1.2.

Security: If you add the Security component to your AppController or any
other controller, all your forms will expect a token and maintain a hash of
the hidden values so they can not be changed. If you have difficulty with
your ajax forms refer to you can disable security[4].

Deprecated methods[5] were removed from 1.2. So, this means if you may need
to use an earlier version of 1.2 if you have not been keeping up with the
latest releases.

Read the 1.2 changelog for complete details[6].

We have some more changes before we can release the Beta. The most major
change will be the transition from defines in core.php to the $config array
used by the Configure class. This will be the last release that allows for
defines inside of core.php. Moving away from defines provides much greater
flexibility. The next release will also see the inclusion of a Session
model, which will allow easier access to the database session handling.

We hope everyone enjoys this latest release. Though some people in the
community don't like polls, we still want to thank everyone who voted in the
latest one. The results pretty much speak for themselves.

[1] Download 1.1.15.5134:
http://cakeforge.org/frs/?group_id=23&release_id=232
[2] 1.1.x.x branch change log:
https://trac.cakephp.org/wiki/changelog/1.1.x.x
[3] Download 1.2.0.5137alpha:
http://cakeforge.org/frs/?group_id=23&release_id=234
[4] Disabling Security: https://trac.cakephp.org/changeset/4978
[5] Removed methods: https://trac.cakephp.org/changeset/4981
[6] 1.2.x.x branch change log:
https://trac.cakephp.org/wiki/changelog/1.2.x.x

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

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