Re: Bake in Cakephp 2.0 give me a code of previus version?!!

2012-05-10 Thread gabrielem
@José Lorenzo and How to this?

@cricket the path is correct! I have specified the path of console in a 
cakephp 2.0 

Il giorno giovedì 10 maggio 2012 03:16:18 UTC+2, cricket ha scritto:
>
> Make sure your PATH is updated (eg. in ~/.bashrc) or call the 2.0 
> version with the entire path: /path/to/lib/Cake/Console/cake 
>
> On Tue, May 8, 2012 at 5:46 PM, José Lorenzo  wrote: 
> > Obviously because you have executed the 'cake' command for a previous 
> > version, make sure you call the shell for 2.0 instead 
> > 
> > 
> > On Tuesday, May 8, 2012 1:09:24 PM UTC-4:30, gabrielem wrote: 
> >> 
> >> I have downloaded cakephp 2.0 
> >> I'm learning cakephp, and try to bake model, controller and views... 
> >> I have bake a project to.. 
> >> 
> >> But then I have see that the code generated by the bake script is 
> >> following previulsy convention... 
> >> 
> >> The app_controller file is located in  the main directory and is not in 
> >> the Controllers directory... 
> >> all the file for controller have the name: nome_controller.php but in 
> >> cakephp 2.0 must be NameController.php... 
> >> 
> >> wy? 
> >> 
> >> Before of this i did not download previous version of cakephp... 
> >> 
> >> 
> >> 
> > -- 
> > 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: Bake in Cakephp 2.0 give me a code of previus version?!!

2012-05-10 Thread gabrielem
And how to do this?




Il giorno giovedì 10 maggio 2012 03:16:18 UTC+2, cricket ha scritto:
>
> Make sure your PATH is updated (eg. in ~/.bashrc) or call the 2.0 
> version with the entire path: /path/to/lib/Cake/Console/cake 
>
> On Tue, May 8, 2012 at 5:46 PM, José Lorenzo  wrote: 
> > Obviously because you have executed the 'cake' command for a previous 
> > version, make sure you call the shell for 2.0 instead 
> > 
> > 
> > On Tuesday, May 8, 2012 1:09:24 PM UTC-4:30, gabrielem wrote: 
> >> 
> >> I have downloaded cakephp 2.0 
> >> I'm learning cakephp, and try to bake model, controller and views... 
> >> I have bake a project to.. 
> >> 
> >> But then I have see that the code generated by the bake script is 
> >> following previulsy convention... 
> >> 
> >> The app_controller file is located in  the main directory and is not in 
> >> the Controllers directory... 
> >> all the file for controller have the name: nome_controller.php but in 
> >> cakephp 2.0 must be NameController.php... 
> >> 
> >> wy? 
> >> 
> >> Before of this i did not download previous version of cakephp... 
> >> 
> >> 
> >> 
> > -- 
> > 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: Session unstable?

2012-05-10 Thread gremlin
Try this:  
http://stackoverflow.com/questions/3594823/mime-type-for-woff-fonts 
Also didn't HTML5BoilerPlate have something in their (rather long) htaccess 
file that handled this issue? Might check there.

On Thursday, May 10, 2012 3:16:23 AM UTC-7, phpMagpie wrote:
>
>
> On Monday, 9 April 2012 09:26:49 UTC+1, AD7six wrote:
>>
>>
>> The absolute classic reason for this is because of a missing css/js/image 
>> file hitting your app which invalidate the session.
>>
>> *ALWAYS *look for and correct requests for things that don't exist.
>>
>> AD
>>
>
> Interesting, do you think this be caused by the following error I am 
> having with WOFF fonts?
>
> Resource interpreted as Font but transferred with MIME type text/html: "
> http://firstaidneas.co.uk/theme/Neas/css/font/ubuntu-r-webfont.woff";.
>
> I am getting this error on all pages, yet the session dropout is 
> intermittent and seems to be worse with multiple users logged in.
>
> Not finding a clear answer as to how I resolve my WOFF problem, will keep 
> trying and fingers crossed this may ease the session issues.
>
> Thanks, Paul. 
>

-- 
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: Layer images

2012-05-10 Thread Justin Edwards
Unfortunately none of those techniques really work.   One of the best
methods is watermarking.



On Thu, May 10, 2012 at 1:28 PM, Sean  wrote:

> Hello all,
>
> I am working in 2.1.
>
> I have a couple of images that I want to stack on top of each other. One
> is the image that everyone will see, and a transparent image that will sit
> on top of the main image.
>
> I have seen that it can be done using CSS and HTML, but I was wondering if
> there is a way to do it the"CakePHP" way.
>
> This is a concept that I would like to use as these images are from an
> artist and I don't want people to just download the images. This way, when
> they click on the image, what they will get is my transparent image instead
> of the "real" one.
>
> Does anyone have any ideas?
>
> Thanks,
> Sean
>
> --
> 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


Testing CakeEmail

2012-05-10 Thread Ed Propsner
I have two working examples of this
http://bin.cakephp.org/view/412028290 using
2.1.1.

However, using 2.2 running the same mocks in the test case CakeEmail is not
responding the same.

I don't think the issue is with the version of Cake but instead me
overlooking something that I'm just not seeing.

Running this test in 2.2  a live email is being dispatched and
assertContains in reference to the email is failing when it should not be.

Any idea what I'm overlooking or does 2.1 and 2.2 handle these cases
differently?

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


CakePHP 2.1 : HABTM saveAssociated if data exists, keep and continue saving associated

2012-05-10 Thread Eugen
Hi, it's possible to continue saving associated data, when one or more
model data exists ? here one example ->
http://stackoverflow.com/questions/10473404/cakephp-2-1-habtm-saveassociated-and-keep-exists-data

Example:

if posted ingredient data exists, keep this and continue saving data
of recipe -> when recipe data saved, continue saving of
IngredientRecipe data.

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

2012-05-10 Thread rihad
Hi, folks. Can I use CakePHP 2.1.2 with Oracle database? I looked in
Model/Datasource/Database/ there only seems to be support for Mysql,
Postgres, Sqlite, Sqlserver. But working with an existing Oracle
database is my job's requirement. I would be thankful for any tips.
Thank you.

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


Layer images

2012-05-10 Thread Sean
Hello all,

I am working in 2.1.

I have a couple of images that I want to stack on top of each other. One is 
the image that everyone will see, and a transparent image that will sit on 
top of the main image.

I have seen that it can be done using CSS and HTML, but I was wondering if 
there is a way to do it the"CakePHP" way.

This is a concept that I would like to use as these images are from an 
artist and I don't want people to just download the images. This way, when 
they click on the image, what they will get is my transparent image instead 
of the "real" one.

Does anyone have any ideas?

Thanks,
Sean

-- 
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: User Management Plugin Cakephp 2

2012-05-10 Thread Sam Sherlock
extending the Users plugin into your App makes it easy to customise the the
plugins functionality
and then you can add acl and stuff.

 - S




On 10 May 2012 05:06, Steven Scaffidi  wrote:

> Thank you for the advice. I honestly just want to see how they do the
> email confirmation, lost passwords, and all of that stuff. I will be
> developing my own ACL app.
>
> On Tuesday, May 8, 2012 10:55:26 AM UTC-5, Điển vũ wrote:
>>
>> https://github.com/cakedc
>> search *users* , this plugin is stable at 95%  , 5% isn't stable . but
>> it is good, you can see and get code from it .
>> Now , it is best, if you develop users magnagement for yourself. Then you
>> can easier to fix any errors happen.
>>
>  --
> 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


RequestHandler problem (isXml and isRss)

2012-05-10 Thread JonStark
I have a problem with my XML simtemap.

It should display ALL posts permalinks, but it takes into account paginator 
instead...
What am I doing wrong ? :


class PostsController extends AppController {
>
> public $name = 'Posts';
>
> public $helpers = array('Html', 'Form', 'Paginator', 'Text');
>
> public $components = array('Session','RequestHandler');
>
> var $paginate = array(
>
> 'limit' => 5,
>
> 'order' => array(
>
> 'Post.created' => 'desc'
>
>  )
>
> );
>
>

public function index() {
> if ($this->RequestHandler->isRss() ) {
> $posts = $this->Post->find('all', array(
> 'limit' => 15,
> 'order' => 'Post.created DESC'
> ));
> return $this->set(compact('posts'));
> 
> } elseif ($this->RequestHandler->isXml() ) {
> $posts = $this->Post->find('all');
> }
> $this->set('posts', $this->paginate('Post'));
> }

-- 
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: DataSource for CouchDB

2012-05-10 Thread stork
https://github.com/cakephp/datasources/blob/2.0/Model/Datasource/CouchdbSource.php
http://plugins.cakephp.org/packages?query=CouchDB

-- 
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: Session unstable?

2012-05-10 Thread phpMagpie

On Monday, 9 April 2012 09:26:49 UTC+1, AD7six wrote:
>
>
> The absolute classic reason for this is because of a missing css/js/image 
> file hitting your app which invalidate the session.
>
> *ALWAYS *look for and correct requests for things that don't exist.
>
> AD
>

Interesting, do you think this be caused by the following error I am having 
with WOFF fonts?

Resource interpreted as Font but transferred with MIME type text/html: 
"http://firstaidneas.co.uk/theme/Neas/css/font/ubuntu-r-webfont.woff";.

I am getting this error on all pages, yet the session dropout is 
intermittent and seems to be worse with multiple users logged in.

Not finding a clear answer as to how I resolve my WOFF problem, will keep 
trying and fingers crossed this may ease the session issues.

Thanks, Paul. 

-- 
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: cakephp 2.0 auth session problem

2012-05-10 Thread phpMagpie
I am also noticing this problem a lot in 2.0, did either of you get to the 
bottom of it?  

It seems to be worse when multiple users are logging into the system at 
once, even when logging in with different users (does cake prevent 
concurrent logins with same account?)

Regards, Paul.

-- 
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: Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;

2012-05-10 Thread supp...@deep-coding.net
Thank you very much, that was the problem.
I had the method in the KundenController, now the it is in my Model and it 
works.
Thank you :)

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