Re: can i have two login?

2011-11-29 Thread fadhli
yes you can, you can use two method, admin_login adn login on user
controller.

On Tue, Nov 29, 2011 at 3:54 PM, Mamdoohi  wrote:

> can you more explain?
>
>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
regards.

fadhli 
fradov <http://fradov.com/>
M: +62 878 810 67607
M: +62 821 231 12161

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


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


Re: binary tree

2011-02-07 Thread fadhli
i still dont know how to dicide right leaf or left leat ...

On Mon, Jan 31, 2011 at 6:28 PM, Dr. Tarique Sani wrote:

> * *Yes tree behaviour is the way to go
>
> Start by reading and trying out the examples given at
> http://book.cakephp.org/view/1341/Basic-Usage
>
> It has all the details you need OR better start by understanding what a
> Binary tree is http://en.wikipedia.org/wiki/Binary_tree
>
> Cheers
> Tarique
>
>
> On Mon, Jan 31, 2011 at 4:18 PM, fadhli  wrote:
>
>> hi Mr Tarique
>>
>>
>>
>> i use tree only for category. and menu,
>> 1, id
>> 2, parent_id,
>> 3 name,
>>
>> i realy stuck to make binary tree
>> http://book.cakephp.org/view/1339/Tree said To use the tree behavior,
>> your database table needs 3 fields as listed below (all are ints):
>>
>>- parent - default fieldname is parent_id, to store the id of the
>>parent object
>>- left - default fieldname is lft, to store the lft value of the
>>current row.
>>- right - default fieldname is rght, to store the rght value of the
>>current row.
>>
>>
>> my question.
>>
>> 1. how to generate this table look like pine tree? look like this imange
>> http://petemontgomery.files.wordpress.com/2009/05/binarytree1.jpg?w=333&h=299
>>
>> 2. how to decide leftnode or rightnode?
>>
>> and.
>>
>> 3. how to insert data to this tree
>>
>>
>>
>>
>>
>> On Mon, Jan 31, 2011 at 4:52 PM, Dr. Tarique Sani 
>> wrote:
>>
>>> If you know how to make a tree then make one where every node has just
>>> two (or less) child nodes you will end up with a binary tree.
>>>
>>> Cheers
>>> Tarique
>>>
>>>
>>> On Mon, Jan 31, 2011 at 3:07 PM, fadh  wrote:
>>>
>>>> hallo baker
>>>>
>>>> how to create binary tree in cakephp.
>>>> i only know how to create tree, not a binary tree.
>>>>
>>>> thanks.
>>>>
>>>> --
>>>> Our newest site for the community: CakePHP Video Tutorials
>>>> http://tv.cakephp.org
>>>> Check out the new CakePHP Questions site http://ask.cakephp.org and
>>>> help others with their CakePHP related questions.
>>>>
>>>>
>>>> To unsubscribe from this group, send email to
>>>> cake-php+unsubscr...@googlegroups.com For more options, visit this
>>>> group at http://groups.google.com/group/cake-php
>>>>
>>>
>>>
>>>
>>> --
>>> =
>>> Cheesecake-Photoblog: http://cheesecake-photoblog.org
>>> PHP for E-Biz: http://sanisoft.com
>>> =
>>>
>>> --
>>> Our newest site for the community: CakePHP Video Tutorials
>>> http://tv.cakephp.org
>>> Check out the new CakePHP Questions site http://ask.cakephp.org and help
>>> others with their CakePHP related questions.
>>>
>>>
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>>> at http://groups.google.com/group/cake-php
>>>
>>
>>  --
>> Our newest site for the community: CakePHP Video Tutorials
>> http://tv.cakephp.org
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help
>> others with their CakePHP related questions.
>>
>>
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>
>
> --
> =
> Cheesecake-Photoblog: http://cheesecake-photoblog.org
> PHP for E-Biz: http://sanisoft.com
> =
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

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


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


Re: binary tree

2011-01-31 Thread fadhli
hi Mr Tarique



i use tree only for category. and menu,
1, id
2, parent_id,
3 name,

i realy stuck to make binary tree
http://book.cakephp.org/view/1339/Tree said To use the tree behavior, your
database table needs 3 fields as listed below (all are ints):

   - parent - default fieldname is parent_id, to store the id of the parent
   object
   - left - default fieldname is lft, to store the lft value of the current
   row.
   - right - default fieldname is rght, to store the rght value of the
   current row.


my question.

1. how to generate this table look like pine tree? look like this imange
http://petemontgomery.files.wordpress.com/2009/05/binarytree1.jpg?w=333&h=299

2. how to decide leftnode or rightnode?

and.

3. how to insert data to this tree





On Mon, Jan 31, 2011 at 4:52 PM, Dr. Tarique Sani wrote:

> If you know how to make a tree then make one where every node has just two
> (or less) child nodes you will end up with a binary tree.
>
> Cheers
> Tarique
>
>
> On Mon, Jan 31, 2011 at 3:07 PM, fadh  wrote:
>
>> hallo baker
>>
>> how to create binary tree in cakephp.
>> i only know how to create tree, not a binary tree.
>>
>> thanks.
>>
>> --
>> Our newest site for the community: CakePHP Video Tutorials
>> http://tv.cakephp.org
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help
>> others with their CakePHP related questions.
>>
>>
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php
>>
>
>
>
> --
> =
> Cheesecake-Photoblog: http://cheesecake-photoblog.org
> PHP for E-Biz: http://sanisoft.com
> =
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php
>

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


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


Re: IDE

2010-12-22 Thread fadhli
netbeans

On Wed, Dec 22, 2010 at 12:32 PM, Amit Badkas wrote:

> Hi,
>
> I use easy eclipse for PHP (
> http://www.easyeclipse.org/site/distributions/php.html). I have also used
> Aptana IDE once but found easy eclipse better.
>
> Amit Badkas
>
> PHP Applications for E-Biz: http://www.sanisoft.com
>
>
>
> On Tue, Dec 21, 2010 at 8:27 PM, Kristofer  wrote:
>
>> What IDE do people typically use with CakePHP?  I've been doing stuff
>> from the Linux command line using vim for so long.  I'd like something
>> more graphical that (hopefully) supports SVN.  Looking for more point-
>> and-click.  :)
>>
>> 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.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.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-16 Thread fadhli
sorry my english is bad. :( but i will try again to explain it for you. i
hope u understand this time.

I built a website and use apache as a web server on my computer. then I have
to upload it to yahoo web hosting. in yahoo web hosting does not allow to
upload . htaccess  files (so i think they use IIS as web server)

then I followed this tuturial:
http://book.cakephp.org/view/1533/A-Note-on-mod_rewrite, and make my URLs
look like
www.example.com/index.php/controllername/actionname/param
rather Than
www.example.com/controllername/actionname/param.

after i run in yahoo web hosting. i found some new problems. my tinyMCE does
not work like on my computer (apache web server). other than that I can't
upload pictures using my application. I do not know where he had gone but
the session said that the file uploaded successfully.

then I try to display the source in my webbrowser. the result between 2
webserver is different. use and not use prety URLs.
when I dont use prety ULRs the link for javascript URLs look like 
and when i use prety ULRs, link to the javascript URLs like this : 

then i think the main problem is i have to use prety URLs and find tutorial
http://book.cakephp.org/view/1636/URL-Rewrites-on-IIS7-Windows-hosts and
this
http://blog.knightdna.net/2010/07/enabling-cakephp-pretty-urls-on-iis.html ,
i've follow the tutorials  but I do not know where is my fault that make my
website cant run prety URLs well. or this way this way cant  be used in
yahoo webhosting? or are there other ways I can use?

i cant change my webhost.


On Tue, Nov 16, 2010 at 1:14 PM, whmeroe  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.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.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: cakephp pick-list/multi-select.

2010-10-11 Thread fadhli doank
i've try it but didn't work well.
how to implement it to my scipt?
can you give me example.

On Mon, Sep 27, 2010 at 6:48 PM, euromark wrote:

> thats a highly sophisticated script you are referring to
> not easy to copy :)
>
> i only know:
> http://quasipartikel.at/multiselect/
>
> maybe it works for you
>
>
> On 27 Sep., 13:00, fadhli  wrote:
> > Hi everyone.
> >
> > i want to make a HABTM picklist like invite friends on facabook.
> >
> > i have 3 tables:.
> > 1. clients;
> > 2. groups;
> > 3. messages.
> >
> > clients table HABTM with groups and messages table
> > I want to build an application that sends messages to the client with
> > CakePHP 1.3 and MySQL. I want to make it look like inviting friends on
> > facebook group. where I can choose the client that would in dedicate
> based
> > on their group.
> >
> > how to make it? Anyone have any example or tutorial?
> >
> > http://lh3.ggpht.com/_MYlOp06_a1s/TKB5LfrhZ5I/DP4/JYYTEKUC6GI...
>
> 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.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 pick-list/multi-select.

2010-09-28 Thread fadhli
Thank you. But to save data to HABTM in CakePHP is already look like that.

On Mon, Sep 27, 2010 at 6:48 PM, euromark wrote:

> thats a highly sophisticated script you are referring to
> not easy to copy :)
>
> i only know:
> http://quasipartikel.at/multiselect/
>
> maybe it works for you
>
>
> On 27 Sep., 13:00, fadhli  wrote:
> > Hi everyone.
> >
> > i want to make a HABTM picklist like invite friends on facabook.
> >
> > i have 3 tables:.
> > 1. clients;
> > 2. groups;
> > 3. messages.
> >
> > clients table HABTM with groups and messages table
> > I want to build an application that sends messages to the client with
> > CakePHP 1.3 and MySQL. I want to make it look like inviting friends on
> > facebook group. where I can choose the client that would in dedicate
> based
> > on their group.
> >
> > how to make it? Anyone have any example or tutorial?
> >
> > http://lh3.ggpht.com/_MYlOp06_a1s/TKB5LfrhZ5I/DP4/JYYTEKUC6GI...
>
> 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.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


cakephp pick-list/multi-select.

2010-09-27 Thread fadhli
Hi everyone.

i want to make a HABTM picklist like invite friends on facabook.

i have 3 tables:.
1. clients;
2. groups;
3. messages.


clients table HABTM with groups and messages table
I want to build an application that sends messages to the client with
CakePHP 1.3 and MySQL. I want to make it look like inviting friends on
facebook group. where I can choose the client that would in dedicate based
on their group.

how to make it? Anyone have any example or tutorial?

http://lh3.ggpht.com/_MYlOp06_a1s/TKB5LfrhZ5I/DP4/JYYTEKUC6GI/Untitled-1.jpg

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: sending multiple email

2010-08-04 Thread fadhli
i found the answer. this is my code to send mail to all client.

function sendall() {
$this->Client->recursive = 0;
$this->set('clients', $this->Client->find('all'));
foreach ($clients as $client) {
$this->Email->reset();
$this->Email->to = $client['Client']['email'];
$this->Email->subject = 'update request';
$this->Email->replyTo = 'no-re...@x.com';
$this->Email->from = 'xx ';
$this->Email->template = 'simple_message';
$this->Email->sendAs = 'html';
$this->set('client', $client);
$this->Email->send();
}
if ( $this->Email->send() ) {
$this->Session->setFlash('email been sent');
} else {
    $this->Session->setFlash('email not sent');
}
$this->redirect(array('action'=>'index'));
}

On Wed, Aug 4, 2010 at 12:59 AM, fadhli  wrote:

> hi everyone.
>
> i want to send email to all my client, the email contains client data, so
> the email different between the client. how to send email to all client at
> ones? i have read
> http://book.cakephp.org/view/1285/Sending-Multiple-Emails-in-a-loop but i
> don't know how to repeat sending email in my controller. can you give me an
> example? thanks.
>
> This is my code for sending an email to one client
>
>  function _sendmail($id) {
>>
>> $client = $this->Client->read(null, $id);
>>
>> $this->Email->to = $client['Client']['email'];
>>
>> $this->Email->subject = 'update request';
>>
>> $this->Email->replyTo = 'no-re...@x.com';
>>
>> $this->Email->from = 'X ';
>>
>> $this->Email->template = 'simple_message';
>>
>> $this->Email->sendAs = 'html';
>>
>> $this->set('client', $client);
>>
>> $this->Email->send();
>>
>> }
>>
>>
>>> function send($id) {
>>
>> if (!$id) {
>>
>>  $this->Session->setFlash(sprintf(__('Invalid %s', true), 'client'));
>>
>>  $this->redirect(array('action' => 'index'));
>>
>>  }
>>
>> $this->_sendmail($this->Client->id);
>>
>> $this->Session->setFlash(sprintf(__('The %s email update
>>> request has been send', true), 'client'));
>>
>> $this->redirect(array('action' => 'index'));
>>
>> }
>>
>>

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


sending multiple email

2010-08-03 Thread fadhli
hi everyone.

i want to send email to all my client, the email contains client data, so
the email different between the client. how to send email to all client at
ones? i have read
http://book.cakephp.org/view/1285/Sending-Multiple-Emails-in-a-loop but i
don't know how to repeat sending email in my controller. can you give me an
example? thanks.

This is my code for sending an email to one client

function _sendmail($id) {
>
> $client = $this->Client->read(null, $id);
>
> $this->Email->to = $client['Client']['email'];
>
> $this->Email->subject = 'update request';
>
> $this->Email->replyTo = 'no-re...@x.com';
>
> $this->Email->from = 'X ';
>
> $this->Email->template = 'simple_message';
>
> $this->Email->sendAs = 'html';
>
> $this->set('client', $client);
>
> $this->Email->send();
>
> }
>
>
>> function send($id) {
>
> if (!$id) {
>
> $this->Session->setFlash(sprintf(__('Invalid %s', true), 'client'));
>
> $this->redirect(array('action' => 'index'));
>
> }
>
> $this->_sendmail($this->Client->id);
>
> $this->Session->setFlash(sprintf(__('The %s email update
>> request has been send', true), 'client'));
>
> $this->redirect(array('action' => 'index'));
>
> }
>
>

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


email components

2010-07-19 Thread fadhli -
Message->read(null,$id);
$this->Email->to = $Message['Client']['email'];
$this->Email->bcc = array('ad...@c-artsmag.com
');
$this->Email->subject = 'Welcome to our really cool thing';
$this->Email->replyTo = 'supp...@example.com';
$this->Email->from = 'Cool Web App ';
$this->Email->template = 'simple_message'; // note no '.ctp'
//Send as 'html', 'text' or 'both' (default is 'text')
$this->Email->sendAs = 'both'; // because we like to
send pretty mail
//Set view variables as normal
$this->set('Message', $Message);
//Do not pass any args to send()
$this->Email->send();
}

...
...
...

function add() {
if (!empty($this->data)) {
$this->Message->create();
if ($this->Message->save($this->data)) {
$this->_sendNewMessage( $this->Message->id );
$this->Session->setFlash(sprintf(__('The %s has 
been saved',
true), 'message'));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(sprintf(__('The %s 
could not be saved.
Please, try again.', true), 'message'));

}
}
$users = $this->Message->User->find('list',
array('fields'=>array('User.id', 'User.username')));
$clients = $this->Message->Client->find('list');

$this->set(compact('users', 'clients'));
}

...
...
...

}

?>




I use the cakephp 1.3.0 and yahoo web hosting.
i write the code above to send email, but it does not work properly. anyone
can help me so this method works well.

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


email components

2010-07-19 Thread fadhli -
Message->read(null,$id);

$this->Email->to = $message['Client']['email'];
$this->Email->bcc = array('ad...@example.com
');
$this->Email->subject = 'Welcome to our really cool thing';
$this->Email->replyTo = 'supp...@example.com';
$this->Email->from = 'Cool Web App ';
$this->Email->template = 'simple_message'; // note no '.ctp'
//Send as 'html', 'text' or 'both' (default is 'text')
$this->Email->sendAs = 'both'; // because we like to
send pretty mail
//Set view variables as normal
$this->set('message', $message);
//Do not pass any args to send()
$this->Email->send();
}


...
...
...

function add() {
if (!empty($this->data)) {
$this->Message->create();
if ($this->Message->save($this->data)) {
$this->_sendNewMessage( $this->Message->id );

$this->Session->setFlash(sprintf(__('The %s has 
been saved',
true), 'message'));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(sprintf(__('The %s 
could not be saved.
Please, try again.', true), 'message'));

}
}
$users = $this->Message->User->find('list',
array('fields'=>array('User.id', 'User.username')));
$clients = $this->Message->Client->find('list');

$this->set(compact('users', 'clients'));
}

...
...
...

}

?>





I use the cakephp 1.3.0 and yahoo web hosting.
i write the code above to send email, but it does not work properly. anyone
can help me so this method works well.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


cakephp email component

2010-07-19 Thread fadhli -
Message->read(null,$id);
$this->Email->to = $message['Client']['email'];
$this->Email->bcc = array('fad...@c-artsmag.com');
$this->Email->subject = 'Welcome to our really cool thing';
$this->Email->replyTo = 'supp...@example.com';
$this->Email->from = 'Cool Web App ';
$this->Email->template = 'simple_message'; // note no '.ctp'
//Send as 'html', 'text' or 'both' (default is 'text')
$this->Email->sendAs = 'both'; // because we like to
send pretty mail
//Set view variables as normal
$this->set('message', $message);
//Do not pass any args to send()
$this->Email->send();
}

...
...
...

function add() {
if (!empty($this->data)) {
$this->Message->create();
if ($this->Message->save($this->data)) {
$this->_sendNewMessage( $this->Message->id );
$this->Session->setFlash(sprintf(__('The %s has 
been saved',
true), 'message'));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(sprintf(__('The %s 
could not be saved.
Please, try again.', true), 'message'));
}
}
$users = $this->Message->User->find('list',
array('fields'=>array('User.id', 'User.username')));
$clients = $this->Message->Client->find('list');
$this->set(compact('users', 'clients'));
}

...
...
...

}
?>





I use the cakephp 1.3.0 and yahoo web hosting.
i write the code above to send email, but it does not work properly. anyone
can help me so this method works well.

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

2010-07-17 Thread fadhli -
"

f you don't want or can't get mod_rewrite (or some other compatible module)
up and running on your server, you'll need to use Cake's built in pretty
URLs. In /app/config/core.php, uncomment the line that looks like:
Plain Text View <http://book.cakephp.org/view/333/A-Note-on-mod_rewrite#>

   1. Configure::write('App.baseUrl', env('SCRIPT_NAME'));

Also remove these .htaccess files:
Plain Text View <http://book.cakephp.org/view/333/A-Note-on-mod_rewrite#>

   1. /.htaccess
   2. /app/.htaccess
   3. /app/webroot/.htaccess
   4.

This will make your URLs look like
www.example.com/index.php/controllername/actionname/param rather than
www.example.com/controllername/actionname/param.
"

thanks it works.

but how about .gitignore ?


On Sat, Jul 17, 2010 at 10:34 PM, cricket  wrote:
>
> On Sat, Jul 17, 2010 at 4:47 AM, fadhli -  wrote:
> > Hi!
> > Yahoo web hosting doesn't support .HTACCESS file .gitignore. What is the
> > solution for it on yahoo web hosting?
>
> Change hosts. Or see this page:
> http://book.cakephp.org/view/333/A-Note-on-mod_rewrite
>
> 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.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


hosting problem

2010-07-17 Thread fadhli -
Hi!
Yahoo web hosting doesn't support .HTACCESS file .gitignore. What is the
solution for it on yahoo web hosting?

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: controller and view extention problem.

2010-06-14 Thread fadhli -
but this not the answer of my problem.

On Sun, Jun 13, 2010 at 7:13 AM, calvin  wrote:

> Yes, there is an HTTP status code specifically for that:
>
> Status: 301 Moved Permanently
> Location: http://yoursite.com/new/page/location
>
> http://www.somacon.com/p145.php
>
> On Jun 12, 2:30 am, Sam Sherlock  wrote:
> > seo redirect old url to new one.
> >
> > new one being cake address
> > - S
> >
> > On 12 June 2010 10:07, fadhli -  wrote:
> >
> > > I have to usewww.example.com/home/index.phpaddress because it was used
> > > in the website address rating.
> >
> > > On Thu, Jun 10, 2010 at 12:12 AM, cricket 
> wrote:
> >
> > >> On Jun 8, 11:44 pm, fadhli -  wrote:
> > >> > hi everyone.
> >
> > >> > i'm new in cakephp and i want to know how to makehttp://
> > >>www.example.com/home/index.phpincakePHP.
> > >> > controller without 's' (home not homes)
> >
> > >> In routes.php:
> >
> > >> Router::connect(
> > >>  '/home',
> > >>  array('controller' => 'homes', 'action' => 'index')
> > >> );
> >
> > >> > and to view page i must use php
> > >> > (index.php not index.ctp) extextion.
> >
> > >> There's no need to have index.php in the URL. And your URLs should not
> > >> ever have "something.ctp" in them. The .ctp files are templates;
> > >> they're not supposed to be accessed directly through a URL.
> >
> > >> 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 at
> > >>http://groups.google.com/group/cake-php?hl=en
> >
> > >  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 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.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: controller and view extention problem.

2010-06-14 Thread fadhli -
sorry i cant understand. can you explain more detail.

On Sat, Jun 12, 2010 at 4:30 PM, Sam Sherlock wrote:

> seo redirect old url to new one.
>
> new one being cake address
> - S
>
>
>
>
> On 12 June 2010 10:07, fadhli -  wrote:
>
>> I have to use www.example.com/home/index.php address because it was used
>> in the website address rating.
>>
>> On Thu, Jun 10, 2010 at 12:12 AM, cricket  wrote:
>>
>>> On Jun 8, 11:44 pm, fadhli -  wrote:
>>> > hi everyone.
>>> >
>>> > i'm new in cakephp and i want to know how to makehttp://
>>> www.example.com/home/index.phpin cakePHP.
>>> > controller without 's' (home not homes)
>>>
>>> In routes.php:
>>>
>>> Router::connect(
>>>  '/home',
>>>  array('controller' => 'homes', 'action' => 'index')
>>> );
>>>
>>> > and to view page i must use php
>>> > (index.php not index.ctp) extextion.
>>>
>>> There's no need to have index.php in the URL. And your URLs should not
>>> ever have "something.ctp" in them. The .ctp files are templates;
>>> they're not supposed to be accessed directly through a URL.
>>>
>>> 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.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.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.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: controller and view extention problem.

2010-06-12 Thread fadhli -
I have to use www.example.com/home/index.php address because it was used in
the website address rating.

On Thu, Jun 10, 2010 at 12:12 AM, cricket  wrote:

> On Jun 8, 11:44 pm, fadhli -  wrote:
> > hi everyone.
> >
> > i'm new in cakephp and i want to know how to makehttp://
> www.example.com/home/index.phpin cakePHP.
> > controller without 's' (home not homes)
>
> In routes.php:
>
> Router::connect(
>  '/home',
>  array('controller' => 'homes', 'action' => 'index')
> );
>
> > and to view page i must use php
> > (index.php not index.ctp) extextion.
>
> There's no need to have index.php in the URL. And your URLs should not
> ever have "something.ctp" in them. The .ctp files are templates;
> they're not supposed to be accessed directly through a URL.
>
> 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.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: controller and view extention problem.

2010-06-12 Thread fadhli -
> and to view page i must use php
> (index.php not index.ctp) extextion.

>>There's no need to have index.php in the URL. And your URLs should not
>>ever have "something.ctp" in them. The .ctp files are templates;
>>they're not supposed to be accessed directly through a URL.

I have to use that address because it was used in the website address
rating.


On Thu, Jun 10, 2010 at 12:12 AM, cricket  wrote:

> On Jun 8, 11:44 pm, fadhli -  wrote:
> > hi everyone.
> >
> > i'm new in cakephp and i want to know how to makehttp://
> www.example.com/home/index.phpin cakePHP.
> > controller without 's' (home not homes)
>
> In routes.php:
>
> Router::connect(
>  '/home',
>  array('controller' => 'homes', 'action' => 'index')
> );
>
> > and to view page i must use php
> > (index.php not index.ctp) extextion.
>
> There's no need to have index.php in the URL. And your URLs should not
> ever have "something.ctp" in them. The .ctp files are templates;
> they're not supposed to be accessed directly through a URL.
>
> 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.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


controller and view extention problem.

2010-06-08 Thread fadhli -
hi everyone.

i'm new in cakephp and i want to know how to make
http://www.example.com/home/index.php in cakePHP.
controller without 's' (home not homes) and to view page i must use php
(index.php not index.ctp) extextion.

sorry. i'm not good in english.

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