Re: existing code base - worth importing to cakePHP in order to apply best practices?

2011-09-23 Thread Angad Nadkarni
Hi Mark, I'd recommend you switch to Cake as soon as possible, it'll
really make your code easy to manage.

It won't be easy to 'port' to Cake, I won't lie. For most, you'll
be recoding the entire basic setup of your website. You'll be
able to use the basic code-set (like say some library functions
that you use throughout your code) by dumping them into
your 'vendors' folder in Cake, but otherwise, it's best you
remake the website in Cake rather than copy-paste code into
Cake's structure.

It should take you much lesser time than it took you to make the
website, since you have a basic idea of how things to work (not
to mention design!), so don't worry about devtime.

Good luck!

On Sep 22, 3:00 am, mark kelly markkelly1...@gmail.com wrote:
 Hi
 I developed a site last year in php and mysql in a procedural manner
 (I did not use MVC model or object oriented programming). The project
 is being developed further along with 2 new programmers. As we have
 got some investment and it looks like this application (market place
 style website) will be going for a few years, I would like to apply
 Best Practices to the existing code. This means using the MVC model
 and OOP. I feel its best to do this now where the website is at a
 manageable(ish) 300 files rather than a year down the line when its a
 mess..

 Do ye think its a good idea to use the cakePHP framework to force a
 sort of structure on the code? So we would not be doing a lot of new
 coding, instead we'd be using the framework to enforce good practices
 of OOP and MVC. Also, any estimates on if this would take long (300
 files) and whether cakePHP is right for this? Or if it's worth doing
 at all?
 Thanks
 Mark

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


Pagination sorting question

2011-09-23 Thread heohni
Hi,

I have these in my table header

?php echo $this-Paginator-link($html-
image('dpdown.jpg'),array('sort' = 'OBJ_PREIS', 'direction' =
'DESC'), $options = array('escape' = false)); ?

?php echo $this-Paginator-link($html-
image('dpdownup.jpg'),array('sort' = 'OBJ_PREIS', 'direction' =
'ASC'), $options = array('escape' = false)); ?

2 little arrows which indicate the sorting for a price asc and desc.

but in my source it show alway BOTH links like

a href=/gesamtobjekt/search/page:1/cat:1/sort:OBJ_PREIS/
direction:asc
img alt= src=/img/dpdown.jpg
/a
a href=/gesamtobjekt/search/page:1/cat:1/sort:OBJ_PREIS/
direction:asc
img alt= src=/img/dpdownup.jpg
/a

I have by default the sortng for OBJ_PREIS ASC within my find()
statement.
What I do wrong to get the wrong links displayed?

Please help!

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


creating and auto-populating search form?

2011-09-23 Thread mivogtGermanyLU
Hi there, everyone.
First at all I want to say thanks a lot for all help given to me so
far.
Meanwhile my first small project has left its alpha going to early
beta status :)

Todays question is somewhere between automagic form helper, find() and
real sql code ...

I would like to add some search form in my app - i.e. customer search.
It woukd be qziet easy just to add a set of fields for name, surename
and zipcode - but I would like to get it a bit more comfortable (I
hope it is).

Is there an easy way to autopopulate dropdown-fields like zipcode
based on the database-data of table customers/clients with cake-
functions or will I have to use some sql to retrieve the data with
(only once per zipcode)?

Thanks in advance

Michael

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


using auth-login - displaying logged in username?

2011-09-23 Thread mivogtGermanyLU
hi there,

i am using the auth component for a very simple login/logoff located
in users-controller.

On the head of my app I would like to show the username I am logged in
with.

How do I get the name I am logged in with to show it inside a view?

.. is it also possible to show all useres current logged in(??)?

Thanks in advance

Michael

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


truncate works wrong?

2011-09-23 Thread heohni
Hi,

I am using this ?=$this-Text-truncate($data['object']['TEXT'], 150,
array('ending' = '...', 'exact' = false))?
to return text passages and I want to cut them after a word.
Somethings it works fine, somethimes not:

Example endings:
The common courtyard leads to the main entrance of th...
The entrance area leads into the living an...
The apartment is on the first floor an...
and has a living-dining area on two levels, as well...

Strange or?

Whats wrong with my use of it?

-- 
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: truncate works wrong?

2011-09-23 Thread O.J. Tibi
I'm not sure if this works, but has your text been marked up with HTML? You 
might want to add 'html' = true to your list of options.

-- 
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: filtering

2011-09-23 Thread WebbedIT
Do you want to do this with AJAX or full page load?

HTH, Paul.

On Sep 23, 2:49 am, ms_liz_87 elizeber...@gmail.com wrote:
 Can anyone give me any idea how I want to do a filtering? example:
 after i select one 1st cat, it will show all list under 1st cat.

-- 
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: Config mode error: AdminController not found

2011-09-23 Thread WebbedIT
I would say he's trying to use an admin prefix but not changed his
settings in /app/config/core.php

Configure::write('Routing.prefixes', array('admin'));

HTH, Paul

On Sep 22, 11:28 pm, ecsyle ecs...@gmail.com wrote:
 What are you trying to do?

 On Sep 22, 11:43 am, terry brown twb...@gmail.com wrote:







  Message said to define it in admin-controller.php as:

  ?php
  class AdminController extends AppController {
  function index {

          }

  }

  ?

  Unable to get past this point (my database is set up thru pnpMyAdmin).

-- 
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: filtering

2011-09-23 Thread Elizebert Eona
I want to do filtering using ajax. Do u have any idea/advice/suggestion?

On 23 September 2011 16:19, WebbedIT p...@webbedit.co.uk wrote:

 Do you want to do this with AJAX or full page load?

 HTH, Paul.

 On Sep 23, 2:49 am, ms_liz_87 elizeber...@gmail.com wrote:
  Can anyone give me any idea how I want to do a filtering? example:
  after i select one 1st cat, it will show all list under 1st cat.

 --
 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,
Elizebert Eona.

-- 
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: use of javascript focus()

2011-09-23 Thread WebbedIT
No problem, sorry if I my reply was a little short, offline
frustrations with clients and no internet for the day spilling
online :)

On Sep 22, 6:47 am, nkoss nkos...@gmail.com wrote:
 I certainly appreciate the comments from all and I have learned a lot
 from this discussion. @Webbedit. I did try your code, but I got
 several errors. Thatis why I thought it was not correctIAC, it is
 probably time to put this one to rest. Thank you all again!!

-- 
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: How to display files from a folder outside webroot?

2011-09-23 Thread dtemes
This was my first approach to protect some media files for a project,
it worked well, but resource consumption was extremely high, and i
ended up with a different solution that works 10 times faster using
far less resources, it's based on the secure download module available
in lighttpd.

http://dtemes.blogspot.com/2011/05/secure-downloads-with-apache-and.html



On 22 sep, 17:18, Ryan Schmidt google-2...@ryandesign.com wrote:
 On Sep 22, 2011, at 05:18, heohni wrote:

  if(is_file('../CMS_images/'.
  this way I can check if a file is there.

  But how can I display this image in a view?

 Write a controller method that reads and outputs the image using readfile.

 http://php.net/readfile

 Then, wherever you want to include the image in your view, write an image tag 
 whose src attribute is the URL of that controller method.

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


getting many datasets with one form? (i.e. time-table)

2011-09-23 Thread mivogtGermanyLU
Hi there,

I would like to add some kind of time-table time-report function to my
app.  (CakePHP 1.3.8.)

Current I use a form to be filled for each day and each time (start-
end) seperatly.

As the main-content of the form will stay the same for all enties but
the date, the time and a comment-field I am looking for a way to have
it with more comfort.

This for I would like to have a form conatining a head for the
informations equal to all datasets and below then add several fields
(31 rows with each 3 colums) to be filled (first and 2nd as a dropdown
time-field, 3rd as a textfield).

Generating the form manually with some cake-php-html is no problem at
all.

I am not clear if and how I can procvess the formdata after pressing
the send/save button after filling it.

Sure it has to be done controller-sided; but I do not know if there is
a way to do a walkthrough over an array of textfields (esp. I do not
know if there is a naming-convention to do so)

Is there any cake side possibility to create a form containing
informal-form-header (name, place, numbercode)+
and below something like

DAY01: [START(01)] [END(01)] [TEXTfield(01)]
DAY02: [START(02)] [END(01)] [TEXTfield(02)]
..
DAY31: [START(31)] [END(31)] [TEXTfield(31)]


Thanks in advance for any kind of hint and help


-- 
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: truncate works wrong?

2011-09-23 Thread heohni
No there is no html and the add of the html=true is not changing
anything

On 23 Sep., 10:09, O.J. Tibi ojt...@gmail.com wrote:
 I'm not sure if this works, but has your text been marked up with HTML? You
 might want to add 'html' = true to your list of options.

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


Local path problem

2011-09-23 Thread heohni
Hi,

I want to work with this resizer helper:
http://harake.wordpress.com/2010/02/02/the-resize-helper-to-resize-images-on-the-fly/

And I have now problem to get the path right for my windows wamp
localhost

I thought it should be:
Configure::write('versions_store',
APP.WEBROOT_DIR.'img'.DS.'imagesrc'.DS);

butthe helper quites at this point:
if (!is_file($this-versions_store))

What is the right way to get the right path on a wamp system?

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


Layout and Views

2011-09-23 Thread Claudia Demers
Hello Folks,

I am kinda new with CakePHP and I still try to figure out how to set
you layout with your view. There so many tutorials but no one talk
about it. Ok, we got it how to make a blog and all, but HOW integrate
your layout, set page title of the page and all those things.

Thank you so much
Claudia

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


HttpRequest - single parameter, many values

2011-09-23 Thread alaxos
I'm building a datasource for the Solr search server. For the
connection, I use the HttpSocket class. I have some working
functionnalities, but I'm stumped on a problem.

Some of the Solr functionnalities need to pass many times the same
query parameter name, but with different values. For instance:

http://myserver.com/solr/select/?q=*:*facet=truefacet.field=mot.cle.marcfacet.field=creatorFacetfq=mot.cle.marc:humansfq=creatorFacet:john

My problem is that when I send a GET request with the HttpSocket, only
the last occurence of the parameters are used.

I've explored a bit the code, found that the query string is parsed a
few times, before being rebuilt with the http_build_query PHP function
that only keep one occurence of the parameters. I also found that
there is a possibility to pass the same parameter many times (with an
array-like syntax supported by http_build_query()), but in this case
the query sent is not the original one and Solr does not understand
it.

Is there any workaround that would still allow to use the HttpSocket
class, in order to keep the other HttpSocket features ?
If not, is it something that the HttpSocket should be able to do ?

Thanks,
nIcO

-- 
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: Layout and Views

2011-09-23 Thread sathyashrayan
may be you are searching for Elements..

http://book.cakephp.org/view/1081/Elements

On Sep 23, 2:49 am, Claudia Demers demers.clau...@gmail.com wrote:
 Hello Folks,

 I am kinda new with CakePHP and I still try to figure out how to set
 you layout with your view. There so many tutorials but no one talk
 about it. Ok, we got it how to make a blog and all, but HOW integrate
 your layout, set page title of the page and all those things.

 Thank you so much
 Claudia

-- 
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: Layout and Views

2011-09-23 Thread sathyashrayan
http://book.cakephp.org/view/1081/Elements

On Sep 23, 2:49 am, Claudia Demers demers.clau...@gmail.com wrote:
 Hello Folks,

 I am kinda new with CakePHP and I still try to figure out how to set
 you layout with your view. There so many tutorials but no one talk
 about it. Ok, we got it how to make a blog and all, but HOW integrate
 your layout, set page title of the page and all those things.

 Thank you so much
 Claudia

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


Call paginator without limit option (special case)

2011-09-23 Thread heohni
Hi,

I have to query my DB and need to use the paginator function.
I setup all conditions via $this-paginate()
All fine so far!

Now I have the problem, that I need to repeat the query within the
same function, with the same options
BUT
with no limit.

Is that possible?

I could do a find, but then I have to repeat writing all my
conditions, or? As they are writen in a different syntax?

Or can I define my conditions in a way I can use them for paginate()
and find() together?

-- 
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: Call paginator without limit option (special case)

2011-09-23 Thread Xoubaman
Put your conditions in an array, then use the array for both pagination and 
find.

$condtions = array(...);

$this-paginate['conditions] = $conditions;
$this-paginate();

$this-Model-find('all', array('conditions' = $conditions));

-- 
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: Layout and Views

2011-09-23 Thread Xoubaman
http://book.cakephp.org/view/1080/Layouts

All your questions are answered there.

-- 
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: Element paths in a Plugin?

2011-09-23 Thread Xoubaman
If you call for an element in a plugin, if cake don't found it in the 
plugin's element folder, will look for it in the app element folder.

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


Baking Plugin controllers/models interactively in 2.0

2011-09-23 Thread designv...@gmail.com
Hi all,

Can someone advise me how to bake controllers and models for a plugin
in 2.0 so that it's interactive (ie like the normal bake process
setting validation rules and relationships etc...)

I'm currently doing:

cake bake model Accommodation --plugin Accommodation

But this just whizzes through and does it all automatically?

TIA,

d//t

-- 
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: Call paginator without limit option (special case)

2011-09-23 Thread heohni
Oh, ok... I will try...


On 23 Sep., 13:17, Xoubaman xouba...@gmail.com wrote:
 Put your conditions in an array, then use the array for both pagination and
 find.

 $condtions = array(...);

 $this-paginate['conditions] = $conditions;
 $this-paginate();

 $this-Model-find('all', array('conditions' = $conditions));

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


David Perssons Media Plugin - does it work at all on windows

2011-09-23 Thread barricades
Hi there, I'm new to cakephp and trying to install Media Plugin in my
test app. By all accounts media plugin is the best plugin of it's
kind, the problem I have is I'm developing on my localhost on a
windows machine.

I get stuck when I get to doing the:
cake media init
chmod -R a+rwX app/webroot/media/{transfar,filter}

Where I just get an error: php fatal error: call to undefined method
MIME_Type::config()

Now, when I did some googling I discovered that there are quite a
number of possible issues with windows. I'm only wanting to upload a
photo and save a couple of sizes of it. Nothing too complex. But I'm
worried about knocking something together myself because (a) I don't
know enuf probably (b) at least with media plugin I know there's
validation and best practice etc etc.

My questions are:

what exactly are the problems with it and windows (I've seen the big
list but it means nothing to me) or at least, will they affect me with
what I want to do?

I'm not completely sure but I think that chmod thing I typed into the
console above makes a couple of folders and sets permissions, can
anyone tell me in english the manual way to do this so I can by pass
the error I was getting

Any help would be gratefully received :)

-- 
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: Baking Plugin controllers/models interactively in 2.0

2011-09-23 Thread designv...@gmail.com
It also seems to just create empty controllers - am I missing
something? I'd like it to create the default actions like for non-
plugin controllers...

d//t

On Sep 23, 12:27 pm, designv...@gmail.com designv...@gmail.com
wrote:
 Hi all,

 Can someone advise me how to bake controllers and models for a plugin
 in 2.0 so that it's interactive (ie like the normal bake process
 setting validation rules and relationships etc...)

 I'm currently doing:

 cake bake model Accommodation --plugin Accommodation

 But this just whizzes through and does it all automatically?

 TIA,

 d//t

-- 
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: using auth-login - displaying logged in username?

2011-09-23 Thread Almacenamiento Almacenamiento
You could send in a variable the user name value from the controller, and
send it, or you can also keep it within a session or cookie

2011/9/23 mivogtGermanyLU miv...@mivogt.net

 hi there,

 i am using the auth component for a very simple login/logoff located
 in users-controller.

 On the head of my app I would like to show the username I am logged in
 with.

 How do I get the name I am logged in with to show it inside a view?

 .. is it also possible to show all useres current logged in(??)?

 Thanks in advance

 Michael

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


basic relation question

2011-09-23 Thread Seth
I'm very new to CakePHP and MVC, so this is probably basic.  Just need
a push in the right direction.

I've got Event to many Courses to one Instructor
If I'm on a Event view, it sees the Courses, but doesn't join to the
instructor.

So, do I add the instructor somehow to the Event model or do I edit
the controller to join the instructor in?
I thought the model would look further down.

Thanks for the help

-- 
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: basic relation question

2011-09-23 Thread Zaky Katalan-Ezra
If the relationship are all there in all models you may change to
$this-track-recursive = 1;

if not try to build your models with ./cake bake all in order to see the
suggested relationship.

On Fri, Sep 23, 2011 at 6:20 PM, Seth sturet...@gmail.com wrote:

 I'm very new to CakePHP and MVC, so this is probably basic.  Just need
 a push in the right direction.

 I've got Event to many Courses to one Instructor
 If I'm on a Event view, it sees the Courses, but doesn't join to the
 instructor.

 So, do I add the instructor somehow to the Event model or do I edit
 the controller to join the instructor in?
 I thought the model would look further down.

 Thanks for the help

 --
 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: Element paths in a Plugin?

2011-09-23 Thread Zaky Katalan-Ezra
Did you try?

On Fri, Sep 23, 2011 at 2:20 PM, Xoubaman xouba...@gmail.com wrote:

 If you call for an element in a plugin, if cake don't found it in the
 plugin's element folder, will look for it in the app element folder.

 --
 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: using auth-login - displaying logged in username?

2011-09-23 Thread elogic
This is how I do it: ?php echo $this-Session-
read('Auth.User.username'); ?

Not sure about all logged in users. I'm only a few weeks into cakePHP.



On Sep 23, 5:30 pm, mivogtGermanyLU miv...@mivogt.net wrote:
 hi there,

 i am using the auth component for a very simple login/logoff located
 in users-controller.

 On the head of my app I would like to show the username I am logged in
 with.

 How do I get the name I am logged in with to show it inside a view?

 .. is it also possible to show all useres current logged in(??)?

 Thanks in advance

 Michael

-- 
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: Element paths in a Plugin?

2011-09-23 Thread Xoubaman
It's what doc says, and, when I forgot to pass the plugin in an element 
call, Cake shows something like Can't find app/views/elements/name.ctp.

But didn't properly try.

-- 
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: basic relation question

2011-09-23 Thread Seth
Thanks for the info.  I tried to bake it, but it errored, so instead
of debugging that, I just focused on the models.  Looks like I wasn't
doing it right, so I just switched to a HABTM and created the middle
tables.
Working now and gives some room for change if specs change.

On Sep 23, 12:45 pm, Zaky Katalan-Ezra procsh...@gmail.com wrote:
 If the relationship are all there in all models you may change to
 $this-track-recursive = 1;

 if not try to build your models with ./cake bake all in order to see the
 suggested relationship.







 On Fri, Sep 23, 2011 at 6:20 PM, Seth sturet...@gmail.com wrote:
  I'm very new to CakePHP and MVC, so this is probably basic.  Just need
  a push in the right direction.

  I've got Event to many Courses to one Instructor
  If I'm on a Event view, it sees the Courses, but doesn't join to the
  instructor.

  So, do I add the instructor somehow to the Event model or do I edit
  the controller to join the instructor in?
  I thought the model would look further down.

  Thanks for the help

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
  athttp://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: Haml and sass in CakePHP

2011-09-23 Thread Chris Cinelli
Hi Mark,

I agree with you that adding HAML and SASS to the core will require extra
effort to maintain documentation, fixing bugs etc. One of the reason of
asking to add them to the core is to be bless HAML and SASS so the
community will keep them updated. The other reasons are of course the
development speed, more concise code and elegance that come from using HAML(
http://haml-lang.com )  and SASS ( http://sass-lang.com ).

We will not have to re-implement the DSL. Regarding HAML if you use phamlp
you just need to add a haml.php file in the View folder. I am not a
licensing expert. Phamlp is under New BSD
Licensehttp://www.opensource.org/licenses/bsd-license.phpand Cake
under MIT. I am not sure how compatible they are but if this is the
only problem it is worthwhile to ask  the author of phamlp to consider dual
licensing.

Regarding SASS,it  is pretty much a CSS filter and it already come with the
necessary file to plug it in.

I do not think 50Kb or so more PHP code will be a problem and Both HAML and
SASS will not have any performance decrease for people that do not want to
use them (even if I would push to make them the new default like the Ruby
community did).

Best,
   Chris

On Sun, Sep 18, 2011 at 9:01 AM, mark_story mark.st...@gmail.com wrote:

 I'd rather not add support for HAML and SASS directly to CakePHP.
 This would require re-implementing both DSL's in PHP, and under a
 license that is compatible with CakePHP's.  The re-implementation
 alone is reason enough to not bother with it. Not to mention the
 additional burden of maintaining documentation, bugs, for these
 features.  These DSLs, while useful could also be interpreted as
 'bloat' but people not using them.  I'd rather keep CakePHP small, and
 leave features like this up to the plugin community.

 -Mark

 On Sep 16, 3:32 am, Chris ch.ti...@googlemail.com wrote:
  I think Sass won't be a problem as you could set it to compile to
  webroot/css/
 
  On 16 Sep., 08:59, Walther waltherl...@gmail.com wrote:
 
 
 
 
 
 
 
   CakePHP isn't modeled after Ruby (Or Ruby on Rails). It is simply a
   PHP framework that follows the MVC architecture, and Ruby on Rails is
   a Ruby framework that also follows the MVC architecture. That is
   pretty much their only simularity.
 
   Perhaps you could be better helped if you actually added what warnings
   and notices you get. People can't guess them out of the blue.
 
   Also, remember that quite a bit has changed in CakePHP 2.0, so unless
   that plugin has been specifically modified for CakePHP 2.0, you are
   going to need to follow the migration guide to change it to work with
   2.0.
 
   On Sep 16, 3:56 am, Chris Cinelli
 
   chris.cine...@formativelearning.com wrote:
I forgot to mention that I tried to follow the instruction here :
 https://github.com/goncaloesteves/phamlp/blob/master/Cake/Installatio...
And I even substitute var $view = 'Haml'; = var $viewClass = 'Haml';
 
But cake give warning and notice later.
 
On Thu, Sep 15, 2011 at 6:28 PM, Chris Cinelli 
 
chris.cine...@formativelearning.com wrote:
 I think almost everybody familiar with Ruby knows:
http://haml-lang.com/
 and
http://sass-lang.com/
 
 Since CakePHP is modeled  after Ruby and in the spirit of having to
 write
 less code with more syntactic juice it would be great to have them
 in cake.
 
 Fortunately someone already though to that. So here is this great
 piece of
 code that has CakePHP extension:
https://github.com/goncaloesteves/phamlp
 
 But following the instruction in the Cake folder does not make it
 work in
 Cake 2.0.
 Someone know how to solve the problem?
 
 On a side node, I think that it would be great to add it to Cake as
 a
 default plugin. Ruby 3.1 added sass with compass (
http://compass-style.org/) as default.
 
 Best,
Chris

 --
 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: mixing uuid and aiid

2011-09-23 Thread euromark
after many many hours i finally found it...
one shouldnt override basic model functions like getId() in the
current model.
breaks a lot of things :)


On 21 Sep., 13:05, euromark dereurom...@googlemail.com wrote:
 i never had a problem mixing auto increment ids and uuids.
 but with the current head versions of cake1.3 it seems to get messed
 up

 i got a simple address table with id(int 10) as primary and a
 foreign_id (char 36) for user model etc
 pretty sure it used to work

 but now on every update it tries to insert. the id is in the form and
 passed to the model. checked that already. cache cleared

 SQL Error: 1062: Duplicate entry '38' for key 'PRIMARY' [CORE\cake\libs
 \model\datasources\dbo_source.php, line 684]

 anyone else having these issues?

 on localhost add works: $this-id is 46 for example
 on www even add failes: $this-id is a uuid - e.g. redirects to /
 addresses/view/4c482e3e-7f4c-47e6-8eff-743c53a92966
 which can never work of course...
 again - cache cleared and schema is correct

 whats going on here?

-- 
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: truncate works wrong?

2011-09-23 Thread majna
can you paste code, input txt and output result
so one can reproduce this...

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


best open source development software 2011

2011-09-23 Thread euromark
the German magazine computerwoche (computer week) just announced
cakephp the best Best of Open Source 2011 this year:
http://www.computerwoche.de/software/software-infrastruktur/2495763/index2.html

quick google translation:
Among the PHP web framework CakePHP offered according to Infoworld,
the best balance between quantity of features and ease of use. CakePHP
applications require only minimal configuration effort and the
excellent selection of command-line tools reduces the time required to
build an application to a minimum. That means the only configuration
step is to define the connection parameters to the database server.
Cake PHP assigns to the models database tables and creates the
framework methods. If desired, tests can even be created for
individual areas.
CakePHP offers shortcuts for code reuse, helpers that simplify the use
of AJAX, and recommendations for securing your Web page. It is thus
clear why delighted Cake PHP in the user community so popular.

-- 
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: best open source development software 2011

2011-09-23 Thread Matt Kaufman
Cool, Thanks for the (translation?) and Great post!

Sent from my iPhone

On Sep 23, 2011, at 2:22 PM, euromark dereurom...@googlemail.com wrote:

 the German magazine computerwoche (computer week) just announced
 cakephp the best Best of Open Source 2011 this year:
 http://www.computerwoche.de/software/software-infrastruktur/2495763/index2.html
 
 quick google translation:
 Among the PHP web framework CakePHP offered according to Infoworld,
 the best balance between quantity of features and ease of use. CakePHP
 applications require only minimal configuration effort and the
 excellent selection of command-line tools reduces the time required to
 build an application to a minimum. That means the only configuration
 step is to define the connection parameters to the database server.
 Cake PHP assigns to the models database tables and creates the
 framework methods. If desired, tests can even be created for
 individual areas.
 CakePHP offers shortcuts for code reuse, helpers that simplify the use
 of AJAX, and recommendations for securing your Web page. It is thus
 clear why delighted Cake PHP in the user community so popular.
 
 -- 
 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: using auth-login - displaying logged in username?

2011-09-23 Thread Sam Sherlock
I  have seen some articles on bakery covering this (sure I have seen at
least 2 but can find them now)

I did find this on cake answers
http://ask.cakephp.org/questions/view/get_list_of_currently_logged_in_users


 - S




On 23 September 2011 18:49, elogic asymo...@elogicmedia.com.au wrote:

 This is how I do it: ?php echo $this-Session-
 read('Auth.User.username'); ?

 Not sure about all logged in users. I'm only a few weeks into cakePHP.



 On Sep 23, 5:30 pm, mivogtGermanyLU miv...@mivogt.net wrote:
  hi there,
 
  i am using the auth component for a very simple login/logoff located
  in users-controller.
 
  On the head of my app I would like to show the username I am logged in
  with.
 
  How do I get the name I am logged in with to show it inside a view?
 
  .. is it also possible to show all useres current logged in(??)?
 
  Thanks in advance
 
  Michael

 --
 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: http://ci.cakephp.org/

2011-09-23 Thread Chris Cinelli
I would recommend to read this one for PHP in general:
http://agile.dzone.com/news/continuous-integration-php
And for CakePHP there are these 2 articles in Japanese that you can probably
understand enough using the Translation feature in Chrome or google
translation:
http://www.ryuzee.com/contents/blog/3431
http://www.ryuzee.com/contents/blog/3473

Best,
   Chris

On Tue, Sep 20, 2011 at 8:55 AM, mark_story mark.st...@gmail.com wrote:

 I added a bit to the 2.0 docs on getting things integrated with
 Jenkins. Hopefully it helps, but as you guessed most of the config can
 be gathered from the build output.

 -Mark

 On Sep 18, 1:43 pm, Meroe Kush whme...@gmail.com wrote:
  Mark,
 
  Thanks.  I was actually able to figure out what I needed from the console
  output onhttp://ci.cakephp.org
 
  I created some test cases and I'm good to go now with unit testing, code
  coverage, etc within Jenkins for Cakephp 2.x Thanks!
 
  Here is what I did:
 
  I created this in the Test/Case folder and it seems to work for testing
 my
  app controllers.
 
  class AllControllerTest extends PHPUnit_Framework_TestSuite {
 
  public static function suite() {
  $suite = new CakeTestSuite('All Controller class tests');
 
  $suite-addTestDirectory(APP_TEST_CASES . DS .
  'Controller');
  return $suite;
  }
 
  }
 
  From within jenkins I do:
 
  /opt/Cake/Console/cake testsuite app AllController --stderr --log-junit
  build/logs/junit.xml --coverage-clover build/logs/clover.xml
 
 
 
 
 
 
 
  -Original Message-
  From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On
 Behalf
 
  Of mark_story
  Sent: Sunday, September 18, 2011 12:03 PM
  To: CakePHP
  Subject: Re:http://ci.cakephp.org/
 
  Not yet, but I hope to get around to adding it as part of the 2.0
  docs.  The CakePHP configuration is stupid simple right now, and
  mainly consists of running the AllTests.
 
  -Mark
 
  On Sep 17, 3:21 pm, Meroe whme...@gmail.com wrote:
   Any documentation on how you set up CI for cakephp using jenkins?
 
  --
  Our newest site for the community: CakePHP Video Tutorialshttp://
 tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
 athttp://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


-- 
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: Duplicate emails sent.

2011-09-23 Thread #2Will
OK, thanks.  I think this is a bug.  or rather, i can't think what
else it could be.  Ill file a ticket.

On Sep 23, 11:44 am, Andras Kende and...@kende.com wrote:
 Seems to happening with my config too:

                 App::uses('CakeEmail', 'Network/Email');
                 $body = print_r($click, true) . ' - ' . print_r($product, 
 true);
                 $email = new CakeEmail();
                 $email-from('and...@andraskende.com');
                 $email-to('and...@kende.com');
                 $email-subject(env('HTTP_HOST') . ' - click - ' . 
 date('Y-m-d H:i:s'));
                 $email-send($body);

 Sep 22 21:39:06 localhost postfix/pickup[10492]: 30B163F707: uid=33 
 from=www-data
 Sep 22 21:39:06 localhost postfix/cleanup[11886]: 30B163F707: 
 message-id=4e7be33a-0be8-48f2-84b1-2c3242e42...@www.unionofsports.com
 Sep 22 21:39:06 localhost postfix/qmgr[29587]: 30B163F707: 
 from=www-d...@li285-82.members.linode.com, size=2893, nrcpt=1 (queue active)
 Sep 22 21:39:06 localhost postfix/pickup[10492]: 36B5C3F708: uid=33 
 from=www-data
 Sep 22 21:39:06 localhost postfix/cleanup[11892]: 36B5C3F708: 
 message-id=4e7be33a-0be8-48f2-84b1-2c3242e42...@www.unionofsports.com
 Sep 22 21:39:06 localhost postfix/qmgr[29587]: 36B5C3F708: 
 from=www-d...@li285-82.members.linode.com, size=2893, nrcpt=1 (queue active)
 Sep 22 21:39:06 localhost postfix/smtp[11893]: 30B163F707: 
 to=and...@kende.com, relay=aspmx.l.google.com[74.125.115.26]:25, 
 delay=0.55, delays=0.01/0/0.06/0.48, dsn=2.0.0, status=sent (250 2.0.0 OK 
 1316741946 n3si2277992vcu.198)
 Sep 22 21:39:06 localhost postfix/qmgr[29587]: 30B163F707: removed
 Sep 22 21:39:06 localhost postfix/smtp[11894]: 36B5C3F708: 
 to=and...@kende.com, relay=aspmx.l.google.com[74.125.115.26]:25, 
 delay=0.61, delays=0/0/0.07/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 
 1316741946 k11si2287874vcq.91)
 Sep 22 21:39:06 localhost postfix/qmgr[29587]: 36B5C3F708: removed

 Gmail removes the duplicates though..

 Andras Kende

 On Sep 22, 2011, at 8:35 PM, Vinícius Moraes de Araújo wrote:







  It happens to me too,

  Atenciosamente,

  Vinícius Moraes

  2011/9/22 #2Will willjbar...@gmail.com
  I have Upgraded to the new RC2 but this is still an issue.

  This happens with either the default Mail config or using gmail as
  smtp. So it dosn't seem to be something to do with the server.

  if anybody can shed any light on this, that would be awesome.

  will

  On Sep 22, 3:25 pm, #2Will willjbar...@gmail.com wrote:
   Still stuck on this.

   Whats odd is it is sending duplicates to my work email, and another
   pop type email - but if i set the to my gmail, just the one email.

   Seems odd.  Must be a reason.

   w

   On Sep 14, 4:25 pm, #2Will willjbar...@gmail.com wrote:

Hello

My little app is sending duplicates of itsemails.

Here is an example function:
[code]
$this-log($media);
App::uses('CakeEmail', 'Network/Email');
$CakeEmail = new CakeEmail();
$CakeEmail-viewVars(array('media'=$media, 'person'=$person));
$CakeEmail-from(Configure::read('app.email'));
$CakeEmail-to ( $person['email'] );
$CakeEmail-subject('New File Notification from  ' .
Configure::read('app.name'));
$CakeEmail-template('media_add', 'default');
$CakeEmail-emailFormat('text');
$CakeEmail-send();
[/code]
The code only runs once - verified by checking the logs for the $media
dump - and that template isn't referenced anywhere else   - so it
isn't redierecting off and sending again.

What could it be?  I'm a bit stumped for ideas to debug it

Thanks,

Will

oh, cake2.0 rc1

  --
  Our newest site for the community: CakePHP Video 
  Tutorialshttp://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 
  athttp://groups.google.com/group/cake-php

  --
  Our newest site for the community: CakePHP Video 
  Tutorialshttp://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 
  athttp://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