Re: Mobile url,, please help!!!!

2011-07-22 Thread Alejandro Gómez Fernández
If you NEED to use the /m/ for mobile version, you can use routing.
Did you google to find different ways to implement mobile versions with
cake? I found several really useful (for my needs ;-) )
 
Regards,


Alejandro.


El 20/07/2011 14:50, m16u31 escribió:
> Hi im creating an apliocacion. and I need a mobile version, the mobile
> version is ok, works fine.
> but.
>
> i need and differen url for the mobile version. something like this:
>
> .example.com/m/controller/action/varWith  /m/
> after the domain
>
> and normal version
> .example.com/controller/action/var
>
> how can i do that?
>
> i tried to do something like internationalization. and
> with$this-params
>
> but it doesn't work
>
>
> thank and sorry for my english
>

-- 
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 Pages Occasionally Losing Layout - Please Help!

2011-07-22 Thread Alejandro Gómez Fernández
I saw the same behavior when an error occurs or when the execution time
exceed. I suggest you try logging all the activity of the site during
the analisys time, so you can find if any errors happends. Do this
logging with database activity too if you can.
Regards,


Alejandro.


El 22/07/2011 11:13, Dr. Loboto escribió:
> I saw such behavior without caching - it will happen if fatal error
> occurs after (or during) content render but before layout render.
> "Every once in a while" behavior I got with execution time limit
> exceeded because of too heavy load on dev server - this is fatal error
> too.
>
> Don't know can this help you, but its the only I know about such
> problem.
>
> On Jul 21, 11:48 pm, Matthew  wrote:
>> I have a CakePHP site whose homepage is cached for 10 minutes at a
>> time using Cake's default options. However I've been alerted that
>> "every once in a while", once a day or so, it's losing the layout,
>> just displaying the page content without the header, styling etc.
>>
>> Removing the cached version and regenerating the page apparently fixes
>> the problem. But why would/could this be happening in the first place?
>> I can't say I've seen it happen myself (in any of my CakePHP projects)
>> but asking around on the internet, other developers say they've
>> definitely seen it happen, usually only in development - but that's
>> still a big cause for concern, especially as no-one seems to know
>> why
>>
>> Many thanks for your 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: Mobile url,, please help!!!!

2011-07-22 Thread Sam Sherlock
I use subdomains pointed to the same app

Then switch the layout based on subdomain, I have an element to link to the
alt versions.

- S
On 23 Jul 2011 01:00, "leugim s"  wrote:
> nothing??
>
> 2011/7/20 m16u31 
>
>>
>> Hi im creating an apliocacion. and I need a mobile version, the mobile
>> version is ok, works fine.
>> but.
>>
>> i need and differen url for the mobile version. something like this:
>>
>> .example.com/m/controller/action/var With /m/
>> after the domainothinf
>>
>> and normal version
>> .example.com/controller/action/var
>>
>> how can i do that?
>>
>> i tried to do something like internationalization. and
>> with $this-params
>>
>> but it doesn't work
>>
>>
>> thank and sorry for my english
>>
>> --
>> 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

-- 
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: Mobile url,, please help!!!!

2011-07-22 Thread leugim s
nothing??

2011/7/20 m16u31 

>
> Hi im creating an apliocacion. and I need a mobile version, the mobile
> version is ok, works fine.
> but.
>
> i need and differen url for the mobile version. something like this:
>
> .example.com/m/controller/action/varWith  /m/
> after the domainothinf
>
> and normal version
> .example.com/controller/action/var
>
> how can i do that?
>
> i tried to do something like internationalization. and
> with$this-params
>
> but it doesn't work
>
>
> thank and sorry for my english
>
> --
> 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: RE: CakePHP Form Validation Errors -- no luck???

2011-07-22 Thread KingInky
Sure.

The model (user_model.php): http://pastebin.com/RdaEfnCn
The controller (users_controller.php): http://pastebin.com/4pfbWZKE
The view (register.ctp): http://pastebin.com/aTjTya6z

Thanks again for your 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: CakePHP Form Validation Errors -- no luck???

2011-07-22 Thread Meroe Kush
Please pastebin your model, view, and controller.

-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of KingInky
Sent: Friday, July 22, 2011 6:42 PM
To: CakePHP
Subject: CakePHP Form Validation Errors -- no luck???

Hello,

I'm a CakePHP amateur. I've converted a clients Wordpress into a
CakePHP website (or have been trying to, at least). I just started
doing his registration form. For whatever reason, it is NOT validating
any of the rules I've setup in my model. I've had people in the
CakePHP IRC look at and comment on my code, but no one sees anything
wrong. I don't know what's going on, because I've done simple
registration/login systems in CakePHP before with no problem
(normally, the errors display).

My latest theory is that possibly the errors are being passed (though
I honestly don't think they are), but not being displayed. I'd like to
try and print out (using pre()) the array that holds the validation
errors, but I have no idea where that is located.

Other than that, I'm open to further suggestions. Please help me,
because this is VERY time-sensitive.

Thank you all very much.
I will be checking regularly,
Ethan

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


CakePHP Form Validation Errors -- no luck???

2011-07-22 Thread KingInky
Hello,

I'm a CakePHP amateur. I've converted a clients Wordpress into a
CakePHP website (or have been trying to, at least). I just started
doing his registration form. For whatever reason, it is NOT validating
any of the rules I've setup in my model. I've had people in the
CakePHP IRC look at and comment on my code, but no one sees anything
wrong. I don't know what's going on, because I've done simple
registration/login systems in CakePHP before with no problem
(normally, the errors display).

My latest theory is that possibly the errors are being passed (though
I honestly don't think they are), but not being displayed. I'd like to
try and print out (using pre()) the array that holds the validation
errors, but I have no idea where that is located.

Other than that, I'm open to further suggestions. Please help me,
because this is VERY time-sensitive.

Thank you all very much.
I will be checking regularly,
Ethan

-- 
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: Saving Related Models

2011-07-22 Thread Fábio Luciano
And this value need to be in the form field?

On Fri, Jul 22, 2011 at 18:40, Jens Dittrich  wrote:

> Because Company hasMany Account... the example implies that you want to
> save the first Account along with the new entry of a company.
>
>  --
> 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: Saving Related Models

2011-07-22 Thread Jens Dittrich
Because Company hasMany Account... the example implies that you want to save 
the first Account along with the new entry of a company.

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


I'm new to CakePHP. How do I get Neil Crooke's Twitter API working?

2011-07-22 Thread Ajax Lesser
Hi everyone,

Brand new to CakePHP. Just walked through the blog and auth tutorials
without any issues. I want to get basic Twitter OAuth working on a
brand new CakePHP app and am having some serious issues.

I downloaded Neil's plugin from here:

https://github.com/neilcrookes/CakePHP-Twitter-API-Plugin

And applied it here:

/app/plugins/twitter

Now what? How do add the "connect to Twitter" link on every page? What
is the Twitter callback URL going to point to? How do I check whether
or not a user has been connected, access user's information?

Appreciate your help!

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: html->link() and html tags

2011-07-22 Thread DragonFlyEye
Thanks 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: utf8 in bake

2011-07-22 Thread mark_story
The bake templates should be saved as utf-8 encoded files with LF line
endings.  Currently vim is showing the bake template files as utf-8
with Unix file endings, which is expected and correct.  Perhaps the
problem is your tool/editor and not the file.

-Mark

On Jul 21, 3:09 am, lyba  wrote:
> Hi,
>
> Cake bake (1.3.x recently tried 2.0.) generates  files as no utf-8
> files.
>
> To be precise they can be interpreted as utf-8 files but since they do
> not contain utf-8 character they in fact are pure ANSI encoded files.
>
> The result is that when I open any view file for editing and type
> utf-8 character in a text editor (I use Notepad++, but I guess it is
> similar for other editors) will save the file with original ANSI
> encoding. When displayed in browser all these characters are
> corrupted. I can convert file encoding to utf-8 just before the save
> and all works fine.
>
> Whenever I do a new cake instance I go through all default template
> files \cake\console\templates\default\classes and add a utf-8
> character as some kind of comment in these files. This ensures that
> all files generated by bake are utf-8 and I do not have to convert
> them individually.
>
> However, over months I've created several instances of cake and it
> always troubles me to go through all these changes. Recently I started
> with cake 2.0 and it is exactly the same.
>
> Does anyone know a better solution then modifying template file?
>
> Would it be worth to create a ticket for cake 2.0. to do the trick
> automatically for next versions?

-- 
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 Pages Occasionally Losing Layout - Please Help!

2011-07-22 Thread Dr. Loboto
I saw such behavior without caching - it will happen if fatal error
occurs after (or during) content render but before layout render.
"Every once in a while" behavior I got with execution time limit
exceeded because of too heavy load on dev server - this is fatal error
too.

Don't know can this help you, but its the only I know about such
problem.

On Jul 21, 11:48 pm, Matthew  wrote:
> I have a CakePHP site whose homepage is cached for 10 minutes at a
> time using Cake's default options. However I've been alerted that
> "every once in a while", once a day or so, it's losing the layout,
> just displaying the page content without the header, styling etc.
>
> Removing the cached version and regenerating the page apparently fixes
> the problem. But why would/could this be happening in the first place?
> I can't say I've seen it happen myself (in any of my CakePHP projects)
> but asking around on the internet, other developers say they've
> definitely seen it happen, usually only in development - but that's
> still a big cause for concern, especially as no-one seems to know
> why
>
> Many thanks for your 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: utf8 in bake

2011-07-22 Thread Dr. Loboto
I barely understand what are you talking about but can say one major
thing: there should NO be BOM mark in ANY file. For PHP it's just data
outside code and it will be outputed. Output of this excess character
cause not set headers and doctype ignorance in some browsers.

If you so worry about your editor treat source files as ANSI just set
there UTF-8 as default encoding. Problem solved with minimal efforts.
It works for me and everyone I work with for 5 years already.

On Jul 21, 5:31 pm, lyba  wrote:
> I am not sure if utf-8 encoding is/should be default but if the answer
> is yes
> then placing an utf-8 character in the template file (4 of them) that
> come with the cake
> installation package would neither be a big work nor for nothing as
> many
> countries use specific utf-8 characters and quite a few of them work
> in Windows.
>
> There are comments in all baked files so it will have no impact on
> anything.
> Even if people use ANSI not utf-8 the file with corrupted utf
> character in the
> source code comment will change nothing.
>
> Few months back when I researched the problem I found quite a few
> references
> on the internet where people had the same problem. Of course it can be
> ignored
> as strings will come from PO files and comments in source code will
> not matter.
>
> But if this is such a small issue as placing 1 extra character in 4
> files then why not do it?
>
> Unless there is a different way to overcome the problem? Anyone?

-- 
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: GPG/PGP Signed with Email Component

2011-07-22 Thread bujanga
The email component is extensible. See this example:
http://bakery.cakephp.org/articles/dankroad/2011/01/30/integrate_amazon_simple_email_service_ses_into_existing_application

While it's purpose is different than yours it should give some ideas.



On Fri, Jul 22, 2011 at 8:44 AM, Christophe Vandeplas
 wrote:
> Hello bujanga,
>
> That's indeed what I am doing now, but it is a violation of the MVC principle.
> So I'd like to do it the clean way, but I need a little help to get started.
>
> Of course I'll publish any final code if it becomes a plugin/component ...
>
>
> On Mon, Jul 18, 2011 at 10:21 PM, bujanga  wrote:
>> I do something very similar. Though I send plain text email only. I
>> create my data as fully formatted, sign/encrypt it and then send it to
>> a template that just outputs the field.
>>
>> On Mon, Jul 18, 2011 at 12:16 PM, Christophe Vandeplas
>>  wrote:
>>> Hello,
>>>
>>>
>>> My webapplication needs to send out emails that are signed with a GPG
>>> signature.
>>> However as I am using the Email component this seems a little more
>>> complicated as I can't really figure out how to do it. Any help will
>>> be appreciated and compensated with Belgian beer if we ever meet.
>>>
>>> Signing data using GnuPG (and the PEAR GPG classes) is relatively
>>> easy:
>>>        require_once 'Crypt/GPG.php';
>>>        $gpg = new Crypt_GPG();
>>>        $text = "Hello world";
>>>        $gpg->addSignKey(Configure::read('GnuPG.email'),
>>> Configure::read('GnuPG.password'));
>>>        $text_signed = $gpg->sign($text, Crypt_GPG::SIGN_MODE_CLEAR);
>>>        debug($text_signed);
>>>
>>> The code I use to send out the email is here. The "new_event" view
>>> will be used to format my email message with the data from $event.
>>>
>>>        $this->Email->from = "foo ";
>>>        $this->Email->to = "bar ";
>>>        $this->Email->subject = "[foo] new event";
>>>        $this->Email->delivery = 'debug';   // do not really send out
>>> mails, only display it on the screen
>>>        $this->Email->template = 'new_event'; // in views/elements/
>>> email/html or text
>>>        $this->Email->sendAs = 'text';        // both text or html
>>>        $this->set('event', $event);
>>>        $this->Email->send();
>>>
>>> Now the GPG magic needs to happen on the email body/message.
>>> I've opened the EmailComponent class to find out that the ->send()
>>> function _renders() the mail using the view and finally sends it using
>>> the delivery method (mail, smtp,...).
>>>
>>> However I can't find a way to extract the rendered body, sign it, push
>>> it back and then let it be sent.
>>>
>>> I guess I will probably need to make a new component class to handle
>>> this. However I have absolutely no idea where or how to start.
>>> Considering the few lines required to do the gpg signing it shouldn't
>>> be to difficult though...
>>>
>>> Could you give me some advice to get this going?
>>>
>>> Thanks
>>> Christophe
>>>
>>> --
>>> 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
>>
>
> --
> 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: GPG/PGP Signed with Email Component

2011-07-22 Thread Christophe Vandeplas
Hello bujanga,

That's indeed what I am doing now, but it is a violation of the MVC principle.
So I'd like to do it the clean way, but I need a little help to get started.

Of course I'll publish any final code if it becomes a plugin/component ...


On Mon, Jul 18, 2011 at 10:21 PM, bujanga  wrote:
> I do something very similar. Though I send plain text email only. I
> create my data as fully formatted, sign/encrypt it and then send it to
> a template that just outputs the field.
>
> On Mon, Jul 18, 2011 at 12:16 PM, Christophe Vandeplas
>  wrote:
>> Hello,
>>
>>
>> My webapplication needs to send out emails that are signed with a GPG
>> signature.
>> However as I am using the Email component this seems a little more
>> complicated as I can't really figure out how to do it. Any help will
>> be appreciated and compensated with Belgian beer if we ever meet.
>>
>> Signing data using GnuPG (and the PEAR GPG classes) is relatively
>> easy:
>>        require_once 'Crypt/GPG.php';
>>        $gpg = new Crypt_GPG();
>>        $text = "Hello world";
>>        $gpg->addSignKey(Configure::read('GnuPG.email'),
>> Configure::read('GnuPG.password'));
>>        $text_signed = $gpg->sign($text, Crypt_GPG::SIGN_MODE_CLEAR);
>>        debug($text_signed);
>>
>> The code I use to send out the email is here. The "new_event" view
>> will be used to format my email message with the data from $event.
>>
>>        $this->Email->from = "foo ";
>>        $this->Email->to = "bar ";
>>        $this->Email->subject = "[foo] new event";
>>        $this->Email->delivery = 'debug';   // do not really send out
>> mails, only display it on the screen
>>        $this->Email->template = 'new_event'; // in views/elements/
>> email/html or text
>>        $this->Email->sendAs = 'text';        // both text or html
>>        $this->set('event', $event);
>>        $this->Email->send();
>>
>> Now the GPG magic needs to happen on the email body/message.
>> I've opened the EmailComponent class to find out that the ->send()
>> function _renders() the mail using the view and finally sends it using
>> the delivery method (mail, smtp,...).
>>
>> However I can't find a way to extract the rendered body, sign it, push
>> it back and then let it be sent.
>>
>> I guess I will probably need to make a new component class to handle
>> this. However I have absolutely no idea where or how to start.
>> Considering the few lines required to do the gpg signing it shouldn't
>> be to difficult though...
>>
>> Could you give me some advice to get this going?
>>
>> Thanks
>> Christophe
>>
>> --
>> 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
>

-- 
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: possible to add a new database connection?

2011-07-22 Thread majna
ConnectionManager::create($name, $config);
($config as in database.php)

Then use:
Model::setDataSource($name);

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


Missing i18n string in PHP 5.2

2011-07-22 Thread Simon Males
Hi,

I have a new i18n string: time_zone_abbreviation. Debugging
I18n::getInstance() show's all my strings but not the latest edition.
It feels like some level caching I am missing. Though I have restarted
Apache and cleared the cache many a time.

The error appears on a CentOS 5 server is PHP 5.2.14.

I don't have a problem on Ubuntu 11.04 PHP 5.3.5

-- 
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: Is there a "CakePHP blog package"?

2011-07-22 Thread Jeremy Burns | Class Outfit
It's based on Cake, not CodeIgniter, and can handle blogs.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 22 Jul 2011, at 11:12, Fábio Luciano wrote:

> Croogo is a CMS codeigniter based, and not a blog system. Just for 
> information.
> 
> -- 
> 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: Is there a "CakePHP blog package"?

2011-07-22 Thread Fábio Luciano
Croogo is a CMS codeigniter based, and not a blog system. Just for 
information.


--
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: Is there a "CakePHP blog package"?

2011-07-22 Thread DierRe
Perfect, thank you very much Jeremy.

On 22 Lug, 11:31, Jeremy Burns | Class Outfit
 wrote:
> Have a look athttp://croogo.org/
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 22 Jul 2011, at 10:26, DierRe wrote:
>
>
>
>
>
>
>
> > Hi guys! Is there available somewhere a blog app that could be used
> > for free? So I have a base and I can extend what I need. I've looked
> > on the bakery but I din't found anything.
>
> > What I'm looking for is basically "comments moderation" and "user
> > roles".
>
> > --
> > 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: Is there a "CakePHP blog package"?

2011-07-22 Thread Jeremy Burns | Class Outfit
Have a look at http://croogo.org/

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 22 Jul 2011, at 10:26, DierRe wrote:

> Hi guys! Is there available somewhere a blog app that could be used
> for free? So I have a base and I can extend what I need. I've looked
> on the bakery but I din't found anything.
> 
> What I'm looking for is basically "comments moderation" and "user
> roles".
> 
> -- 
> 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


Is there a "CakePHP blog package"?

2011-07-22 Thread DierRe
Hi guys! Is there available somewhere a blog app that could be used
for free? So I have a base and I can extend what I need. I've looked
on the bakery but I din't found anything.

What I'm looking for is basically "comments moderation" and "user
roles".

-- 
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 hasMany association in the view

2011-07-22 Thread mthabisi mlunjwa
@gremlin I'm sending $Practicioner to the view and I'm looping over
$Practicioner like this:

foreach ($Practitioner as $Practitioners){
..
.
}

so that should explain why one is singular and the other is plural.
But its now working thanks to Jeremy.


On Jul 22, 6:27 am, gremlin  wrote:
> It also looks like in at least your sample code you were sending
> $Practicioner to the view and trying to loop over $Practicioners
> (notice one is plural - one is singular)
>
> On Jul 21, 10:46 am, mthabisi mlunjwa  wrote:
>
>
>
>
>
>
>
> > Thanks Jeremy!
>
> > I used $practitioner['Practice'][0]['town'] and its now working.
> > Thanks a lot man!
>
> > On Jul 21, 4:17 pm, Jeremy Burns | Class Outfit
>
> >  wrote:
> > > I apologise;
>
> > > $practitioner['Practice'][0]['town']
>
> > > Not sure how you are generating that array...
>
> > > Jeremy Burns
> > > Class Outfit
>
> > >http://www.classoutfit.com
>
> > > On 21 Jul 2011, at 15:14, Jeremy Burns | Class Outfit wrote:
>
> > > > So (assuming this array is called $practitioner) you can display the 
> > > > town by $practitioner['Practice']['town'].
>
> > > > Jeremy Burns
> > > > Class Outfit
>
> > > >http://www.classoutfit.com
>
> > > > On 21 Jul 2011, at 15:02, mthabisi mlunjwa wrote:
>
> > > >> Sorry its a typo. All field names are in lower case.
>
> > > >> I'm failing to display the town. But when I use debug($Practitioner)
> > > >> the practitioner fields and practice towns are all displayed as shown
> > > >> below:
> > > >> array
> > > >> (
> > > >>    [0] => Array
> > > >>        (
> > > >>            [Practitioner] => Array
> > > >>                (
> > > >>                    [id] => 233
> > > >>                    [region_id] => 2
> > > >>                    [country_id] => 5
> > > >>                    [status_id] => 1
> > > >>                    [role_id] => 2
> > > >>                    [bsrno] => 241
> > > >>                    [surname] => Bossley
> > > >>                    [name] => Bronwyn
> > > >>                    [cell] => 0215656765
> > > >>                    [password] =>
> > > >> dd4e8d1e0dfeb4ace2dda0fdfc8db83948109151
> > > >>                    [created] => -00-00 00:00:00
> > > >>                    [modified] => 2011-05-05 11:11:45
> > > >>                )
>
> > > >>            [Practice] => Array
> > > >>                (
> > > >>                    [0] => Array
> > > >>                        (
> > > >>                            [id] => 233
> > > >>                            [practitioner_id] => 233
> > > >>                            [region_id] => 2
> > > >>                            [country_id] => 5
> > > >>                            [name] => Main
> > > >>                            [Telephone] => +61 411673912
> > > >>                            [Address] => 15 Edna Street, Carrimundi,
> > > >> Queensland, 4551, Australia
> > > >>                            [town] => Carrimundi
> > > >>                        )
>
> > > >>                )
>
> > > >>        )
>
> > > >> From my own understanding I thought the containable behaviour helps to
> > > >> filter out unwanted results so as to improve the overall response
> > > >> time. At the moment I'm interested in displaying the practise town.
>
> > > >> On Jul 21, 3:13 pm, Jeremy Burns | Class Outfit
> > > >>  wrote:
> > > >>> Not sure if it's a typo, but your field names should be lower case.
>
> > > >>> Look at the Containable behaviour 
> > > >>> (http://book.cakephp.org/view/1323/Containable).
>
> > > >>> Jeremy Burns
> > > >>> Class Outfit
>
> > > >>>http://www.classoutfit.com
>
> > > >>> On 21 Jul 2011, at 14:10, mthabisi mlunjwa wrote:
>
> > >  I have two models: Practitioner and Practice
>
> > >  Practitioner hasMany Practice and
> > >  Practise Belongs to Practitioner
>
> > >  The practise model has the following fields id,Practitioner_id, Name,
> > >  Town etc.
> > >  The Practitioner model has the following fields id,Surname, Name, 
> > >  Cell
> > >  etc.
>
> > >  In my controller I used a find function:
> > >     $Practitioner = $this->Practitioner->find('all');
> > >         $this->set(compact('Practitioner'));
>
> > >  In my view I want to display the practitioner name, Surname, cell,
> > >  practice name and practice town.
>
> > >  I can display practitioner name, Surname and cell using code like 
> > >  this
> > >  $Practitioners['Practitioner']['cell']
> > >  But I'm failing to display  the corresponding practitioner's practice
> > >  name and practice town. I've tried using: $Practitioners['Practice']
> > >  ['town'];  to display town but it looks like nothing gets displayed.
>
> > >  How can I display town? Please help thanks in advance
>
> > >  --
> > >  Our newest site for the community: CakePHP Video 
> > >  Tutorialshttp://tv.cakephp.org
> > >  Check out the new CakePHP Questions 
> > >  sitehttp://ask.cakephp.organdhelpotherswith their CakePHP rela