Re: Schema migrations like RoR

2011-11-12 Thread Sathia S
http://lquery.com/blog/cakephp-migration-plugin---part-1

-- 
Regards

sathia
http://www.sathia27.wordpress.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


Re: CakePHP in GCI2011

2011-11-12 Thread Graham Weldon
Looks like its past the project submission date for 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


Re: Amazon simpledb

2011-11-12 Thread Graham Weldon
If you want to look at some awesome MongoDB datasource implementations, I 
recommend the following:

- https://github.com/ichikaway/cakephp-mongodb
- https://github.com/lorenzo/MongoCake

Both from highly reputable CakePHP developers.

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

2011-11-12 Thread Graham Weldon
You just need to setup your Config/database.php to use Sqlite:

For a file based database:

public $default = array(
'datasource' => 'Database/Sqlite',
'database' => '/path/to/database_file'
);

Or an in-memory database:

public $default = array(
'datasource' => 'Database/Sqlite',
'database' => ':memory:'
);

-- 
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 and YQL (Yahoo Query Language)

2011-11-12 Thread Graham Weldon
You most certainly can use YQL with CakePHP. 

It can be done ad-hoc, through calls using cURL, or the CakePHP HttpSocket 
class in your models/controllers.
Alternatively, if you are providing a concrete datasource implementation for a 
data table on YQL, you could build a plugin that provided the models for the 
resources you need, and a datasource to provide the YQL interface, again using 
cURL or HttpSocket.

If you want to see some examples of how to build datasources, there is a great 
set in the datasources plugin for CakePHP:
http://github.com/cakephp/datasources

Cheers,
Graham Weldon
http://grahamweldon.com
e. gra...@grahamweldon.com
p. (+61) 0407 017 293
Skype: grahamweldon


On Saturday, 12 November 2011 at 12:49 PM, Marcus Clarke wrote:

> Can the two work together and you provide examples of incorporate YQL
> within CakePHP project?
> 
> 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
> 
> 


-- 
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: Schema migrations like RoR

2011-11-12 Thread Andras Kende
Here is an excellent plugin :
https://github.com/CakeDC/migrations/

Andras Kende

On Nov 11, 2011, at 4:08 PM, Myth Rush wrote:

> Hello.
> 
> I am new in cakephp, but I work with Ruby on Rails. So I am finding
> tool like migrations which are implemented in RoR "rake db:migrate"...
> In cakephp is "cake schema updage"... But I think that this is not the
> same feature.
> 
> For example: Threre are 10 programmers which work on the same project.
> In RoR each programer can generate new migration which will have
> unique id (generated from current date and time
> 20111234_create_users.rb). When I download project from version
> control system. I can run rake db:migrate without fear and rake will
> execute all migrations consecutively based on migrations create date.
> I don't have to take care if the table will be created, deleted or
> updated. And everything works perfectly.
> 
> In cakephp "cake schema generate" generates new schema file with
> suffix (snapshot number). But what if at one time more developers
> create new schema? There will be two files with the same suffix in the
> project and we have conflict in project, so we need solve it...
> 
> Is there some better documentation for schemas? There are undocumented
> parts for schema class - before and after functions... And some
> examples howto use it in project with more programmers. Howto create
> new table, delete old table...
> 
> Thank you for your help.
> 
> Myth Rush
> 
> -- 
> 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: onClick in button

2011-11-12 Thread CrotchFrog
Just to eliminate the obvious ...  have you included the .js 
using $this->Html->script() or some other method? 
Have you checked the script for errors using Firebug or something similar? 

-- 
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 and YQL (Yahoo Query Language)

2011-11-12 Thread Marcus Clarke
Can the two work together and you provide examples of incorporate YQL
within CakePHP project?

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


Re: CakePhp related domain

2011-11-12 Thread Sam Sherlock
So transfer the ownership of the domain and use the hosting you have
purchased for another enterprise of your own.

Why should your outlay for the hosting be covered by the sale of this
domain?

Consider the benefit you have gained from using cake.

 - S





On 12 November 2011 00:51, Sandy  wrote:

>
> That is because I have paid several years of hosting in advance. At
> $200 I would come out even.
>
>
> On Nov 11, 12:33 pm, mike karthauser  wrote:
> > If this is the case then why not offer the domain at a nominal price -
> ie 20 dollars rather than 200? If your intention is to keep it away from
> the domain squatters then passing it on to someone to use it is worth that.
> Otherwise let it expire and I'll grab it then :)
> >
> > Incidentally, as a developer who has benefitted from the work of the
> cakephp foundation, perhaps donating it and some cash is more in order?
> >
> > On 11 Nov 2011, at 17:46, Sandy  wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Yes, this domain is mine. I am a CakePHP developer and wanted to blog
> > > about my experience, but I have not been able to find time to do so.
> >
> > > I re-researched and feel fair, nominative use is valid in this case.
> >
> > > Nominative fair use is established when:
> > > - The product cannot be readily identified without using the
> > > trademark;
> > > - Only so much of the trademark is used as is necessary for the
> > > identification; and
> > > - No sponsorship or endorsement of the trademark owner is suggested
> > > by the use.
> >
> > > (
> http://www.duetsblog.com/2010/08/articles/domain-names/nominative-fai...
> > > )
> >
> > > More info is also available from the Electronic Frontier Foundation:
> > >https://www.eff.org/issues/bloggers/legal/liability/IP#trademarkand
> > > other websites.
> >
> > > On Nov 11, 4:18 am, phpMagpie  wrote:
> > >> Is this yourdomain?
> >
> > >> On Nov 9, 7:20 pm, Sandy  wrote:
> >
> > >>> I thoroughly researched this beforehand and this falls under "fair
> > >>> use" for trademarks as it is used nominatively and does not cause
> > >>> confusion. If not, alot of similar websites would also have to be
> > >>> shutdown (Google "photoshop tutorials", "excel tutorials" or similar
> > >>> to see a great list of websites that use trademarks legally in the
> > >>> same fashion).
> >
> > >>> In my opinion its better for a CakePHP programmer to use it and not
> > >>> somedomainsquatter, which is why I'm including it here.
> >
> > >>> On Nov 8, 7:00 am, euromark  wrote:
> >
> >  indeed, pretty cocky :)
> >
> >  nothing against making some profit using software made with cake.
> >  but this is not a place to put advertising and THEN profit from it.
> >  pretty soon everybody puts some ads in here. and it ain't gonna be
> no
> >  help forum anymore..
> >
> >  On 8 Nov., 05:52, "Larry E. Masters"  wrote:
> >
> > > I like how people use a registered trademark (
> http://tinyurl.com/cjgr6yf)
> > > and then try to profit from it. Should I send you a letter now or
> do you
> > > prefer to remove it yourself?
> >
> > > --
> > > Larry E. Masters
> >
> > > On Mon, Nov 7, 2011 at 10:46 PM, Sandy Wilkins
> > > wrote:
> >
> > >> Hey in case anyone is interested, thisdomainis for sale (or
> auction,
> > >> not sure) at $200:www.cakephptutorials.com
> >
> > >> Go more info here:
> > >>
> https://auctions.godaddy.com/trpItemListing.aspx?ci=44661&miid=59169857
> >
> > >> --
> > >> Our newest site for the community: CakePHP Video Tutorials
> > >>http://tv.cakephp.org
> > >> Check out the new CakePHP Questions
> sitehttp://ask.cakephp.organdhelp
> > >> others with their CakePHPrelatedquestions.
> >
> > >> 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
>

-- 
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...@googlegrou

Schema migrations like RoR

2011-11-12 Thread Myth Rush
Hello.

I am new in cakephp, but I work with Ruby on Rails. So I am finding
tool like migrations which are implemented in RoR "rake db:migrate"...
In cakephp is "cake schema updage"... But I think that this is not the
same feature.

For example: Threre are 10 programmers which work on the same project.
In RoR each programer can generate new migration which will have
unique id (generated from current date and time
20111234_create_users.rb). When I download project from version
control system. I can run rake db:migrate without fear and rake will
execute all migrations consecutively based on migrations create date.
I don't have to take care if the table will be created, deleted or
updated. And everything works perfectly.

In cakephp "cake schema generate" generates new schema file with
suffix (snapshot number). But what if at one time more developers
create new schema? There will be two files with the same suffix in the
project and we have conflict in project, so we need solve it...

Is there some better documentation for schemas? There are undocumented
parts for schema class - before and after functions... And some
examples howto use it in project with more programmers. Howto create
new table, delete old table...

Thank you for your help.

Myth Rush

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

2011-11-12 Thread Phil Dobbin
On 11/11/11 18:33, "mike karthauser"  wrote:

> If this is the case then why not offer the domain at a nominal price - ie 20
> dollars rather than 200? If your intention is to keep it away from the domain
> squatters then passing it on to someone to use it is worth that. Otherwise let
> it expire and I'll grab it then :)
> 
> Incidentally, as a developer who has benefitted from the work of the cakephp
> foundation, perhaps donating it and some cash is more in order?

+1

A little gratitude may the correct action in this case rather than legal
wranglings or trying to grift $200...

Cheers,

Phil...

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


Making a real mess of Auth Component

2011-11-12 Thread CrotchFrog
I could use a bit of help straightening out my Auth, Autth->login. In the 
process of trying to get it to work I made a nice enough mess that I just 
need to start over. 

I'm not using Form based Authentication (first time I've attempted this) 
and I'm also using a Model other than User (first time also). 
I've tried lots of variations but as of right now my AppController 
beforeFilter() contains:

$this->Auth->authenticate = array(AuthComponent::ALL => array('userModel' 
=> 'Developer'),'Basic');
$this->Auth->userScope = array('Developer.id' => 
$this->facebook->getUser());

My Developer->login() contains:

$user['Developer']['id'] = $this->facebook->getUser(); 
if($this->Auth->login($user)){
 // login successful
} else {
 // login failed
}

I've ensured that $this->facebook->getUser() must be set to access the 
login() method. 
My Developer Model is empty, Zero records. 
When I initiate the login() it succeeds every time even though it should 
most definitely be failing. 

Another issue is that non-logged-in users are able access methods that are 
not contained within $this->Auth->allowedActions. 

If I'm not using the User Model would I still access the user through 
$this->Auth->user(), or would I have to change it up a bit? 
$this->Auth->user('Developer.id')?

As always, any and all  help is greatly appreciated.



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

2011-11-12 Thread Larry E. Masters
The trademark owner can contact the ICANN and ask for the domain*
> suspension, right?
>
> * Wich contains the trademarked name
>
>
Thiago,

Yes that is what we have done before.

--
Larry E. Masters

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

2011-11-12 Thread zer0_gravity
Having trouble setting up CakePHP to work with Sqlite? could you
explain or point me to where I can get info in rewards to this.

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


Re: Multilingual Projects and Jquery

2011-11-12 Thread Miles J
Meant "designers".

It was built for people who are mainly designers are not developers.

On Nov 10, 1:22 pm, Thiago Belem  wrote:
> I've nothing against MooTools, but why jQuery is a design framework?
>
> --
> ***Thiago Belem*
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> +55 (21) 8865.9250
> thiagobelem.net
> cont...@thiagobelem.net
>
> *Skype / gTalk **»* thiago.belem.web
> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
> Assando Sites*, curso de CakePHP *»* assando-sites.com.br
>
> 2011/11/10 Miles J 
>
>
>
>
>
>
>
> > If you were using MooTools, you could also just use the Locale
> > library.
>
> >http://mootools.net/docs/more/Locale/Locale
>
> > Really wish people would use Moo more over jQuery. jQuery is a designs
> > framework.
>
> > On Nov 10, 1:40 am, AD7six  wrote:
> > > On Nov 9, 7:32 pm, Miles J  wrote:
>
> > > > No there isn't really. This is also a problem for any language, and
> > > > unless you have back-end parsed JS files it's not possible. The only
> > > > solution is so place a JS literal object in your page source
> > > > containing the message strings:
>
> > > > 
> > > > var Msg = {
> > > >         username: '',
> > > >         someKey: ''};
>
> > > > 
>
> > > > And then reference it in your JS:
>
> > > > alert(Msg.username);
>
> > > OR, the other only solution is, to only don't embed things in your
> > > page source. And instead:
>
> > > 1) use __() in your js files
> > > 2) load a js file with that function defined, like this:
> >https://github.com/AD7six/mi_js/blob/master/i18n.js
> > > 3) Define a js object (i18n in the above js file) with your message
> > > definitions in it any way you can/like.
>
> > > That's basically it, and you'll see the same not-only technique used
> > > with, for example, the jquery date picker - see how it works if you
> > > don't understand the above explanation.
>
> > > The simplest cakephp way to generate those i18n js objects is similar
> > > to what Miles suggested: create a controller and route /js/i18n.xx.js
> > > to it. and define a view which returns valid js like this:
>
> > > i18n = {
> > >   'foo' => '',
> > >  ..
>
> > > };
>
> > > Then you don't need to do anything special to be able to generate your
> > > po files and use translations in your js files. You only need to
> > > request /js/i18n.xx.js to change the language of things that come out
> > > of your js files. If you want to parse out the __() calls from your js
> > > files - that's not hard either, some reference (but if you don't
> > > understand - just do the above):
>
> >https://github.com/AD7six/mi_development/blob/master/vendors/shells/t...
>
> > > AD
>
> > --
> > 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: CakePhp related domain

2011-11-12 Thread Sandy

Hi Sam,

Its hosted on Hostdime and not Godaddy.

Actually, this having become more of a big deal than I thought, I
might just keep it and place ads if nothing better comes up.

Thanks for the idea.



On Nov 12, 11:18 am, Sam Sherlock  wrote:
> Ironic that hosting is on godaddy as cake fan problematic on those servers.
>
> The domain is of little value really, the hosting is of no value. As cake
> foundation could host it on existing servers.
>
> As for someone taking the package from you you should rethink perhaps
> partner with some other development make something of value to the cake
> community - you could cover some losses via advertising & referrals
> (covering you total outlay is expecting too much)
>
> - S
> On 12 Nov 2011 16:06, "Sandy"  wrote:
>
>
>
>
>
>
>
>
>
> > Hi phpMagpie,
>
> > The $200 is not for the domain registration, but because I have paid
> > the hosting in advance, which is valid until 2013 and can be kept by
> > anyone interested in the domain. I cannot get a refund for this so I
> > at least would like to get this part back.
>
> > The auction is because I got into GoDaddy Auctions for free as a
> > bundle with another purchase. I'm not interested in more.
>
> > On Nov 12, 4:38 am, phpMagpie  wrote:
> > > > Sandy: Yes, this domain is mine
>
> > > Just wanted to know if it was you trying to make a profit from a
> > > CakePHP related domain, or if you were informing us of someone else
> > > who was selling this domain?> In my opinion its better for a CakePHP
> > programmer to use it and not > some domain squatter, which is why I'm
> > including it here.
>
> > > As Mike says, if you are truly doing this to benefit the CakePHP
> > > community, transferring it to the foundation or someone who will do
> > > good with the domain (which you state is your desired outcome) without
> > > trying to make a profit (no matter how small) would make more sense.
> > >  Not doing this makes your statement about domain squatters seem more
> > > of a threat to encourage a community member to buy the domain rather
> > > than a genuine concern.
> > > As for recouping your registration fees, the domain was first
> > > registered in 2007 and has been dropped once and moved registrar a few
> > > times so I would guess you're not the first owner.  So, at tops I
> > > would say you've paid 4 years registrations, I would find a different
> > > registrar if paying $50 a year for .com domains, but why should
> > > someone else pay for the fact you have not found the time to develop
> > > the site in those 4 years, that's not their fault?
> > > I have to admit, you've touched a sore subject for me here as I really
> > > dislike the practice of buying domains, do nothing with then then
> > > trying to sell at a profit.  You've added ZERO value to the domain
> > > (the only value of this domain is the CakePHP trademarked name).  This
> > > put's you on a very similar level as a ticket tout in my eyes and by
> > > stating in your OP that you're considering auction, this shows you
> > > would really like more than $200.
> > > Paul
>
> > --
> > 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


onClick in button

2011-11-12 Thread Dominik Gajewski
Hi
I have problem with cake and javascript

i have code in cakephp like that

echo $this->Form->create('Order', array('action'=>'save'));
echo $this->Form->input('User.name', array('label'=>'Imię'));
echo $this->Form->input('User.surname', array('label'=>'Nazwisko'
/*'value' => $res['User']['email']*/));
echo $this->Form->input('User.phone', array('label'=>'Nr telefonu'));
echo $this->Form->input('User.email',
array('label'=>'E-mail'/*'type'=>'hidden'*/));

echo $this->Form->input('departure_home', array('label'=>'Nr domu'));
echo $this->Form->input('departure_street', array('label'=>'Ulica'
/*'value' => $res['User']['email']*/));
echo $this->Form->input('departure_city', 
array('label'=>'Miejscowość'));
echo $this->Form->input('departure_code', array('label'=>'Kod
pocztowy'/*'type'=>'hidden'*/));

echo $this->Form->input('theDate2', array('label'=>'Dzień wylotu'));
echo $this->Form->button('button', array('type'=>'button', 'onClick'
=> 
"displayCalendar(document.forms[0].data[Order][theDate2],'dd.mm.',this)"));
echo $this->Form->end('Save');


and i need




but it doesn't work why??

-- 
Pozdrawiam
Dominik Gajewski

-- 
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: Validation rules question

2011-11-12 Thread euromark
you should always use the full array syntax and also add last=>true to
every rule.

example:
'email' => array(
'email' => array(
'rule' => array('email', true),
'message' => 'valErrInvalidEmail',
'last' => true
),
'unique' => array(
'rule' => array('isUnique'),
'message' => 'valErrEmailExists',
'last' => true
),
),


On 12 Nov., 15:10, heohni 
wrote:
> What do you mean?
>
>  'ben_email' => array(
>             'required' => array('rule' => 'notEmpty', 'message' =>
> 'EmptyEmail','required'=> true),
>             'email' => array('rule' => array('email', true), 'message'
> => 'SyntaxEmail'),
>             'unique' => array('rule' => 'isUnique', 'message' =>
> 'EmailNotUnique'),
>             'last' => true
>         ),
>
> with this and a blank email field, I get the 'SyntaxEmail' error
> message.
>
> I don't get this into my head...
>
> Password is solved, btw.
> Just the email check is a nightmare...

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


How to paginate "subtable" in a view?

2011-11-12 Thread Daniel
Following my post:
https://groups.google.com/group/cake-php/browse_thread/thread/21c8e24fdb4f4b34/f8fa633f9296867d?hl=en&q=related+users&lnk=ol&;

...I have a query in the categories controller that uses "contain" and
fetches a category and all its associated posts:

$this->set(
'category',
$this->Category->find(
'first',
array(
'conditions' => array('Category.id' => $id),
'contain' => array(
'Post' => array(
'User' => array(
'id',
'username'
)
)
)
)
)
);

I added some code to the controller to paginate the results (on the
"subtable"), but it does not seem to do anything:

var $paginate = array(
'Post'=> array(
'limit'=> 2,
'page'=> 1,
'order'=> array(
'Post.created'=> 'desc'
)
)
);

I put the following code under the "subtable" (after "" tag)
in the view:


Paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out
of %count% total, starting on record %start%, ending on %end%', true)
));
?>  


Paginator->prev('<< ' . __('previous', true),
array(), null, array('class'=>'disabled'));?>
Paginator->numbers();?>
Paginator->next(__('next', true) . ' >>', 
array(),
null, array('class' => 'disabled'));?>


But I get the error:
Undefined property: View::$Paginator [APP\views\categories\view.ctp,
line 69]

What am I doing wrong?

-- 
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: Containable Memory Usage

2011-11-12 Thread euromark
well, I doubt that, too.
Especially with a lot of model relations you are usually better off
using recursive=-1 globally and defining contain everywhere.

What troubles me more is the fact that containable is not optimized.
Or in other words: It creates up to 50x more queries than necessary
 depending on the amount of joins in find(all) or paginate.
So the overhead using containable without custom bindModel is mainly
on the DB side, not the PHP side.
I tried to establish the grounds for a ticket. But I am not sure where
to begin.
It looks so easy to fix*, but I am sure it's probably not or creates
other problems. Otherwise they'd already covered the (in my opinion)
largest bottleneck remaining in 2.0.

* checking on hasOne and belongsTo first and assigning custom
bindModel relations with foreignkey=>false and a conditions query
containing the appropriate keys. one left join instead of 100-200
single queries + some additional ones for the hasMany relations etc.



On 12 Nov., 14:40, Jeremy Burns | Class Outfit
 wrote:
> It'd be an interesting test, but from the outset I (unscientifically) doubt 
> it. Without the contain behaviour and relying on recursive = whatever you are 
> often pulling back way too much data, so some sort of model binding 
> adjustment has to save horsepower. The containable behaviour simply manages 
> the process of binding and unbinding, so I can't see how or why it'd be more 
> inefficient than doing it yourself. I use it de facto and have not 
> experienced any memory issues. Open to persuasion once I see some evidence 
> though.
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 12 Nov 2011, at 13:30, zuha wrote:
>
>
>
>
>
>
>
> > I saw this comment on another thread, and instead of taking over that 
> > thread with a containable discussion, I'm starting a new one.  Can anyone 
> > confirm or deny this claim that "containable" uses a lot of memory?  (as 
> > say compared to bind/unbind)
>
> > On Sat, Nov 12, 2011 at 5:47 PM, phpMagpie  wrote:
> > I would advise you to learn how to use containable ... only takes a
> > couple of lines of code makes life a whole lot easier than having to
> > bind and unbind for every paginate.
>
> > I'd like to avoid it. I think it consumes a lot of memory. CMIIW.
> > Thank you.
>
> > --
> > 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


Re: CakePhp related domain

2011-11-12 Thread Sam Sherlock
Ironic that hosting is on godaddy as cake fan problematic on those servers.

The domain is of little value really, the hosting is of no value. As cake
foundation could host it on existing servers.

As for someone taking the package from you you should rethink perhaps
partner with some other development make something of value to the cake
community - you could cover some losses via advertising & referrals
(covering you total outlay is expecting too much)

- S
On 12 Nov 2011 16:06, "Sandy"  wrote:

>
> Hi phpMagpie,
>
> The $200 is not for the domain registration, but because I have paid
> the hosting in advance, which is valid until 2013 and can be kept by
> anyone interested in the domain. I cannot get a refund for this so I
> at least would like to get this part back.
>
> The auction is because I got into GoDaddy Auctions for free as a
> bundle with another purchase. I'm not interested in more.
>
>
>
>
> On Nov 12, 4:38 am, phpMagpie  wrote:
> > > Sandy: Yes, this domain is mine
> >
> > Just wanted to know if it was you trying to make a profit from a
> > CakePHP related domain, or if you were informing us of someone else
> > who was selling this domain?> In my opinion its better for a CakePHP
> programmer to use it and not > some domain squatter, which is why I'm
> including it here.
> >
> > As Mike says, if you are truly doing this to benefit the CakePHP
> > community, transferring it to the foundation or someone who will do
> > good with the domain (which you state is your desired outcome) without
> > trying to make a profit (no matter how small) would make more sense.
> >  Not doing this makes your statement about domain squatters seem more
> > of a threat to encourage a community member to buy the domain rather
> > than a genuine concern.
> > As for recouping your registration fees, the domain was first
> > registered in 2007 and has been dropped once and moved registrar a few
> > times so I would guess you're not the first owner.  So, at tops I
> > would say you've paid 4 years registrations, I would find a different
> > registrar if paying $50 a year for .com domains, but why should
> > someone else pay for the fact you have not found the time to develop
> > the site in those 4 years, that's not their fault?
> > I have to admit, you've touched a sore subject for me here as I really
> > dislike the practice of buying domains, do nothing with then then
> > trying to sell at a profit.  You've added ZERO value to the domain
> > (the only value of this domain is the CakePHP trademarked name).  This
> > put's you on a very similar level as a ticket tout in my eyes and by
> > stating in your OP that you're considering auction, this shows you
> > would really like more than $200.
> > 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
>

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

2011-11-12 Thread Sandy

Hi phpMagpie,

The $200 is not for the domain registration, but because I have paid
the hosting in advance, which is valid until 2013 and can be kept by
anyone interested in the domain. I cannot get a refund for this so I
at least would like to get this part back.

The auction is because I got into GoDaddy Auctions for free as a
bundle with another purchase. I'm not interested in more.




On Nov 12, 4:38 am, phpMagpie  wrote:
> > Sandy: Yes, this domain is mine
>
> Just wanted to know if it was you trying to make a profit from a
> CakePHP related domain, or if you were informing us of someone else
> who was selling this domain?> In my opinion its better for a CakePHP 
> programmer to use it and not > some domain squatter, which is why I'm 
> including it here.
>
> As Mike says, if you are truly doing this to benefit the CakePHP
> community, transferring it to the foundation or someone who will do
> good with the domain (which you state is your desired outcome) without
> trying to make a profit (no matter how small) would make more sense.
>  Not doing this makes your statement about domain squatters seem more
> of a threat to encourage a community member to buy the domain rather
> than a genuine concern.
> As for recouping your registration fees, the domain was first
> registered in 2007 and has been dropped once and moved registrar a few
> times so I would guess you're not the first owner.  So, at tops I
> would say you've paid 4 years registrations, I would find a different
> registrar if paying $50 a year for .com domains, but why should
> someone else pay for the fact you have not found the time to develop
> the site in those 4 years, that's not their fault?
> I have to admit, you've touched a sore subject for me here as I really
> dislike the practice of buying domains, do nothing with then then
> trying to sell at a profit.  You've added ZERO value to the domain
> (the only value of this domain is the CakePHP trademarked name).  This
> put's you on a very similar level as a ticket tout in my eyes and by
> stating in your OP that you're considering auction, this shows you
> would really like more than $200.
> 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: Having layout breaking because of a whitespace?

2011-11-12 Thread mike karthauser
You've got a blank line in your view because you've set it in your element

requestAction('objekt/
getCategories'); $cities = $this->requestAction('objekt/getCities');?>


Tbh whitespace in your HTML shouldn't be an issue. If you are
objecting due to distance between ul and the top of your td then you
can set margin-top:0 in your CSS.

Also, it's considered bad practice to use tables for layout. You
should easily be able to make a 3 column layout supported across
browser without any tables.
--
Mike Karthauser
Brightstorm limited
Tel: 07939252144

On 12 Nov 2011, at 13:40, heohni  wrote:

> Hi,
>
> in default.ctp:
> 
>  
>> element('navigation',array('cache'=>array('time'=>'+1
> year','key'=>'nav')));?>
>
>
> The element start in line 1 with:
> requestAction('objekt/
> getCategories'); $cities = $this->requestAction('objekt/getCities');?>
> 
>.
>
> I controlled both actions, but there are no white spaces at all...
> Both called actions have a $this->autoRender = false;
>
> I really don't get the point why I have a blank line in my source:
>
> 
> 
> 
> 
> <--- here is the blank line -->
> 
>
> Does anyone has an idea where and how to debug this issue?
>
> --
> 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: CakePhp related domain

2011-11-12 Thread Thiago Belem
The trademark owner can contact the ICANN and ask for the domain*
suspension, right?

* Wich contains the trademarked name

--
***Thiago Belem*
Desenvolvedor
Rio de Janeiro - RJ - Brasil

+55 (21) 8865.9250
thiagobelem.net
cont...@thiagobelem.net

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
Assando Sites*, curso de CakePHP *»* assando-sites.com.br


2011/11/12 phpMagpie 

> > Sandy: Yes, this domain is mine
> Just wanted to know if it was you trying to make a profit from a
> CakePHP related domain, or if you were informing us of someone else
> who was selling this domain?
> > In my opinion its better for a CakePHP programmer to use it and not >
> some domain squatter, which is why I'm including it here.
> As Mike says, if you are truly doing this to benefit the CakePHP
> community, transferring it to the foundation or someone who will do
> good with the domain (which you state is your desired outcome) without
> trying to make a profit (no matter how small) would make more sense.
>  Not doing this makes your statement about domain squatters seem more
> of a threat to encourage a community member to buy the domain rather
> than a genuine concern.
> As for recouping your registration fees, the domain was first
> registered in 2007 and has been dropped once and moved registrar a few
> times so I would guess you're not the first owner.  So, at tops I
> would say you've paid 4 years registrations, I would find a different
> registrar if paying $50 a year for .com domains, but why should
> someone else pay for the fact you have not found the time to develop
> the site in those 4 years, that's not their fault?
> I have to admit, you've touched a sore subject for me here as I really
> dislike the practice of buying domains, do nothing with then then
> trying to sell at a profit.  You've added ZERO value to the domain
> (the only value of this domain is the CakePHP trademarked name).  This
> put's you on a very similar level as a ticket tout in my eyes and by
> stating in your OP that you're considering auction, this shows you
> would really like more than $200.
> 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
>

-- 
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: Validation rules question

2011-11-12 Thread heohni
What do you mean?

 'ben_email' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyEmail','required'=> true),
'email' => array('rule' => array('email', true), 'message'
=> 'SyntaxEmail'),
'unique' => array('rule' => 'isUnique', 'message' =>
'EmailNotUnique'),
'last' => true
),

with this and a blank email field, I get the 'SyntaxEmail' error
message.

I don't get this into my head...

Password is solved, btw.
Just the email check is a nightmare...

-- 
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: Containable Memory Usage

2011-11-12 Thread Jeremy Burns | Class Outfit
It'd be an interesting test, but from the outset I (unscientifically) doubt it. 
Without the contain behaviour and relying on recursive = whatever you are often 
pulling back way too much data, so some sort of model binding adjustment has to 
save horsepower. The containable behaviour simply manages the process of 
binding and unbinding, so I can't see how or why it'd be more inefficient than 
doing it yourself. I use it de facto and have not experienced any memory 
issues. Open to persuasion once I see some evidence though.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 12 Nov 2011, at 13:30, zuha wrote:

> I saw this comment on another thread, and instead of taking over that thread 
> with a containable discussion, I'm starting a new one.  Can anyone confirm or 
> deny this claim that "containable" uses a lot of memory?  (as say compared to 
> bind/unbind)
> 
> On Sat, Nov 12, 2011 at 5:47 PM, phpMagpie  wrote:
> I would advise you to learn how to use containable ... only takes a
> couple of lines of code makes life a whole lot easier than having to
> bind and unbind for every paginate.
> 
> 
> I'd like to avoid it. I think it consumes a lot of memory. CMIIW. 
> 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

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


Containable Memory Usage

2011-11-12 Thread zuha
I saw this comment on another thread, and instead of taking over that 
thread with a containable discussion, I'm starting a new one.  Can anyone 
confirm or deny this claim that "containable" uses a lot of memory?  (as 
say compared to bind/unbind)

On Sat, Nov 12, 2011 at 5:47 PM, phpMagpie  wrote:

> I would advise you to learn how to use containable ... only takes a

couple of lines of code makes life a whole lot easier than having to

bind and unbind for every paginate.


>
I'd like to avoid it. I think it consumes a lot of memory. CMIIW. 
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


Having layout breaking because of a whitespace?

2011-11-12 Thread heohni
Hi,

in default.ctp:

  
element('navigation',array('cache'=>array('time'=>'+1
year','key'=>'nav')));?>


The element start in line 1 with:
requestAction('objekt/
getCategories'); $cities = $this->requestAction('objekt/getCities');?>

.

I controlled both actions, but there are no white spaces at all...
Both called actions have a $this->autoRender = false;

I really don't get the point why I have a blank line in my source:





<--- here is the blank line -->


Does anyone has an idea where and how to debug this issue?

-- 
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: Ignoring 'belongsTo' inside model

2011-11-12 Thread Jeremy Burns | Class Outfit
Interesting. Prove it (when compared with binding and unbinding).

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 12 Nov 2011, at 12:47, thom wrote:

> 
> 
> On Sat, Nov 12, 2011 at 5:47 PM, phpMagpie  wrote:
> I would advise you to learn how to use containable ... only takes a
> couple of lines of code makes life a whole lot easier than having to
> bind and unbind for every paginate.
> 
> 
> I'd like to avoid it. I think it consumes a lot of memory. CMIIW. 
> Thank you.
> 
> -- 
> Regards,,,
> thom
> http://mynameisthom.blogspot.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: How to "cache" certain data from being loaded everytime a request is made

2011-11-12 Thread heohni
element('navigation',array('cache'=>array('time'=>'+1
year','key'=>'nav')));?>

-- 
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: Ignoring 'belongsTo' inside model

2011-11-12 Thread thom
On Sat, Nov 12, 2011 at 5:47 PM, phpMagpie  wrote:

> I would advise you to learn how to use containable ... only takes a
> couple of lines of code makes life a whole lot easier than having to
> bind and unbind for every paginate.
>
>
I'd like to avoid it. I think it consumes a lot of memory. CMIIW.
Thank you.

-- 
Regards,,,
thom
http://mynameisthom.blogspot.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


Re: SEO friedly URLs

2011-11-12 Thread daf182
Hi,

You can use the static slug() method of the Inflactor class to create
the slug of a string.
Read this part of the documentation:
http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html?highlight=slug#Inflector::slug
And you can use it like: Inflector::slug($word, $replacement = '_')
Inflector::slug("My string has to be a slug", '-'); would return my-
string-has-to-be-a-slug

bye

On nov. 11, 15:56, euromark  wrote:
> the urls can stll be underscore and lowercase
>
> MyController.php etc but
> /my_controller/action_name
> etc
>
> On 11 Nov., 05:16, Andras Kende  wrote:
>
>
>
>
>
>
>
> > Kevin,
>
> > seo friendly urls in cakephp are very very easy…
>
> > below is the basic idea to do domain.com/video/return-of-the-jedi instead 
> > of  domain.com/videos/view/1
>
> > videos database table (add a slug field)
> > id | name | slug | …
> > 1 | Return of the Jedi | return-of-the-jedi | ….
>
> > routes.php
> > Router::connect('/video/:slug', array('controller' => 'videos', 'action' => 
> > 'view'), array('pass' => array('slug')));
>
> > controller:
>
> > public function view($id = null) {
> >         $video = $this->Video->find('first', array(
> >                 'conditions' => array('Video.slug' => $id),
> >         ));
> >         $this->set(compact('video'));
>
> > }
>
> > Andras Kende
>
> > On Nov 10, 2011, at 1:26 PM, Kervin L. Pierre wrote:
>
> > > One CakePHP convention I have to go against is the ‘underscore’ and 
> > > ‘camel-case’ convention in URLs.
>
> > > Have underscores and camel case in the source and database names is fine. 
> > >  But in the URLs it’s a SEO issue that needs to be avoid.
>
> > > Is there anyway to have dashes and all lower case names besides…
> > >http://klauzinski.com/php/cakephp/search-engine-friendly-urls-in-cakephp
>
> > > The above article was written 2 years ago.  And I’m planning on using 
> > > CakePHP 2.0.  The article also mentions that it breaks reverse routes.
>
> > > Best regards,
> > > Kervin
>
> > > --
> > > Our newest site for the community: CakePHP Video 
> > > Tutorialshttp://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp 
> > > 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


Amazon simpledb

2011-11-12 Thread dtemes
I am looking into Amazon SimpleDB as a DB solution to migrate a
project to the cloud, and have not found any serious post about the
topic but a thread from 2008.

Most probably we will have to write a new datasource and are already
doing some research. Some of the questions we already have are how to
deal with joins, as we will need to split joins in separate queries,
and also how to handle attributes with multiple values (just put them
in an array i guess).

I will appreciate if other bakers working with similar nosql databases
(mongodb for instance) would like to share their experience and
provide some guidance.

David

-- 
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: Ignoring 'belongsTo' inside model

2011-11-12 Thread phpMagpie
I would advise you to learn how to use containable ... only takes a
couple of lines of code makes life a whole lot easier than having to
bind and unbind for every paginate.

HTH, Paul

On Nov 11, 8:02 am, thom  wrote:
> On Fri, Nov 11, 2011 at 2:23 PM, Andras Kende  wrote:
> > There are multiple way to do this.. unbindModel is a very easy, just add
> > right before paginate code :
>
> > $this->Topic->unbindModel(array('belongsTo' => array('Category'), false));
>
> >http://book.cakephp.org/view/1045/Creating-and-Destroying-Association...
>
> Yeah. I've made it after spending some hours with my netbook, while waiting
> for someone might gimme some answers here. And when I come back here, there
> already 2 answers! I solve the case by using unbind anyway :D
>
> Thank you every one ^_^
>
> --
> Regards,,,
> thomhttp://mynameisthom.blogspot.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


Re: CakePhp related domain

2011-11-12 Thread phpMagpie
> Sandy: Yes, this domain is mine
Just wanted to know if it was you trying to make a profit from a
CakePHP related domain, or if you were informing us of someone else
who was selling this domain?
> In my opinion its better for a CakePHP programmer to use it and not > some 
> domain squatter, which is why I'm including it here.
As Mike says, if you are truly doing this to benefit the CakePHP
community, transferring it to the foundation or someone who will do
good with the domain (which you state is your desired outcome) without
trying to make a profit (no matter how small) would make more sense.
 Not doing this makes your statement about domain squatters seem more
of a threat to encourage a community member to buy the domain rather
than a genuine concern.
As for recouping your registration fees, the domain was first
registered in 2007 and has been dropped once and moved registrar a few
times so I would guess you're not the first owner.  So, at tops I
would say you've paid 4 years registrations, I would find a different
registrar if paying $50 a year for .com domains, but why should
someone else pay for the fact you have not found the time to develop
the site in those 4 years, that's not their fault?
I have to admit, you've touched a sore subject for me here as I really
dislike the practice of buying domains, do nothing with then then
trying to sell at a profit.  You've added ZERO value to the domain
(the only value of this domain is the CakePHP trademarked name).  This
put's you on a very similar level as a ticket tout in my eyes and by
stating in your OP that you're considering auction, this shows you
would really like more than $200.
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