Re: SSL and https

2010-02-17 Thread alan
When I've done this, I usually set specific controllers/actions as $useSSL=true; and force everything else back to non-SSL app_controller.php:beforeFilter ... $this->ishttps = $this->set('ishttps',((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') || (isset($_SERVER['SERVER_PORT']) && $_SERVE

Re: Couple of REST questions

2010-02-17 Thread LunarDraco
Check out the manual for Custom REST Routing. You'll want to use custom instead of Simple as simple sets up routes for edit and delete which you stat you do not want. So you will need to set a custom route for each one that you do want to support. http://book.cakephp.org/view/478/Custom-REST-Routin

Re: Associated model won't load

2010-02-17 Thread Furuno
Well, yesterday, I try to re-create the app and database from scracth, copy paste the code again, and, for some reason... it works... and now I left in wonder... @ John Andersen : Actually this project is very nearing completion and will be released as an open source application. Even it already h

Re: Data validation doesn't work when on live server

2010-02-17 Thread Jamal Aziz
Can you post your model and your controller action? On Feb 18, 3:43 am, Atti wrote: > Hi all, > Just a quick question, I managed to get my data validation working > perfectly on my local apache (XAMPP) web server, but as soon as I > uploaded the site to the internet the validation flag seems to b

specify mapResources in router

2010-02-17 Thread SonnyBurnette
Can someone tell me how I specify only certain actions when doing mapResources in the router? I don't want to allow all methods to be restful but I want to continue to use them in a browser. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related ques

Re: Accessing Model.Method from Component using ClassRegistry

2010-02-17 Thread amiable_indian
The problem lied between keyboard and the chair, which has been solved now. In the process, I learned three different ways to invoke Model from components :-P Thanks Everyone. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Data validation doesn't work when on live server

2010-02-17 Thread Atti
Hi all, Just a quick question, I managed to get my data validation working perfectly on my local apache (XAMPP) web server, but as soon as I uploaded the site to the internet the validation flag seems to be always true, ie, there is not validation going on, so it seems. What settings on my live ser

1.2.6 strtotime error

2010-02-17 Thread Selino
:PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezon

Re: Using saveAll to insert new fields, update old fields

2010-02-17 Thread andy
I wonder if this could be a partial caching issue with the view... - Any fields in the form at first page view will save. - Any fields added via jQuery after first page view are not saved. Does anyone know if CakePHP partially caches a form (view) the first time it is loaded? Check out the new

Re: Using saveAll to insert new fields, update old fields

2010-02-17 Thread andy
No worries about a test case :-) I'll just keep testing different parts of it until something works... it seems like it should work but maybe I am forgetting something. Thanks for your help anyway. Andy On Feb 17, 1:57 am, WebbedIT wrote: > No, you do not need the single quotes within the fi

Re: Accessing Model.Method from Component using ClassRegistry

2010-02-17 Thread Miles J
The reason findById() works is because its part of the Model/AppModel, not your create model. Just fix the problems with your model and you'll be fine. On Feb 17, 8:31 am, anl hp wrote: > There are two ways: > 1- $model = ClassRegistry::init('TheClassModelYouWant'); > 2- if the model you need is

Re: Accessing Model.Method from Component using ClassRegistry

2010-02-17 Thread anl hp
There are two ways: 1- $model = ClassRegistry::init('TheClassModelYouWant'); 2- if the model you need is used by the controller you are monitoring in the moment you need to save the data: $model =& $controller->model[0] //By convention use the first model - and yes, even in cake's core this con

Re: Accessing Model.Method from Component using ClassRegistry

2010-02-17 Thread amiable_indian
According to, http://book.cakephp.org/view/65/MVC-Class-Access-Within-Components "To access/use a model in a component is not generally recommended; If you end up needing one, you'll need to instantiate your model class and use it manually." So, what is the recommended way if I have some data in

Re: I got problems lunching' m cake website, help guys :D

2010-02-17 Thread Abraham Boray
ThxDaniel, Done it, And It Works like a charm;) On 7 fév, 13:00, "Daniel S. Reichenbach" wrote: > Hi, > > you could simply follow the advice given by the error message and edit > your php.ini. > > Look for date.timezone and set it to your timezone. > > WkR, > Daniel Check out the new CakePHP Que

Re: Web Service cakePHP

2010-02-17 Thread ivan
You can give me tutorial about REST cakePHP? please help me this tutorial. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: Web Service cakePHP

2010-02-17 Thread ivan
You have the best tutorial about REST cakePHP? please give me this tutorial or recommendation tutorial about this. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google G

Re: html entities

2010-02-17 Thread Waterschaats
Yes Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe f

Re: html entities

2010-02-17 Thread Sam Sherlock
you need to add the option to escape the link and set to false so special chars within the link are NOT escaped http://dlmax.org/2007/04/02/cakephp-12-html-link-with-html-or-image/ $html->link($title . $html->tag("span", null,

html entities

2010-02-17 Thread Waterschaats
I want a link with a span inside. like this: linktext When I use this the span tags are converted to html entities() $html->link($title . $html->tag("span", null, array('class' => 'test')), $url); Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: Accessing Model.Method from Component using ClassRegistry

2010-02-17 Thread amiable_indian
> > Your AppModel is being used instead of the actual model. This usually > happens when your model is misspelt or its filename is wrong. > I thought that might be case, but when the code below worked I assumed that the Example Model is loading properly... $this->Example = ClassRegistry::init('Ex

Re: pQuery and $ajax->form has got me tearing my hair out!

2010-02-17 Thread Dave Waller
Not to worry - turns out pQuery was flawed. Using the standard ajax helper with prototype works fine. I just need to put up with the jerky animations :-( On Feb 15, 3:17 pm, Dave Waller wrote: > Dear All, > > I'm trying to do something that sounds quite simple but I'm really > struggling. I want

Re: Using saveAll to insert new fields, update old fields

2010-02-17 Thread WebbedIT
No, you do not need the single quotes within the fields name, that is how I would access the value from the data array. Sorry for any confusion. As you rightly say, your form looks exactly as it should so confusing as to why it refuses to process the dynamic fields? Unfortunately I do not have t

Re: SSL and https

2010-02-17 Thread Jeremy Burns
Thanks John - I'll read, experiment and post back. Jeremy Burns jeremybu...@me.com On 17 Feb 2010, at 08:48, John Andersen wrote: > Hi Jeremy, > Take a look at the issue in this thread: > http://groups.google.com/group/cake-php/browse_thread/thread/1c6b4727066173cf/19cf7202211f930d#19cf7202211f

Re: SSL and https

2010-02-17 Thread John Andersen
Hi Jeremy, Take a look at the issue in this thread: http://groups.google.com/group/cake-php/browse_thread/thread/1c6b4727066173cf/19cf7202211f930d#19cf7202211f930d There I see the same solution as yours, but with some additional information. Maybe it will help you on the way .. or maybe discuss it

Re: Associated model won't load

2010-02-17 Thread John Andersen
I can give it a try in my development site, if you would like me to try! Probably only need the two controllers with models! John On Feb 17, 9:13 am, Furuno wrote: > Okay somebody please tell me that this is some kind of mystical > phenomenon : yeah, I've tried using containable behaviors, not

Re: Form helper doesn't show correct field type when using another model

2010-02-17 Thread aveev
Thanks John... it works... I wrote var $uses = array('State','Person'); in PeopleController... and the form displays correctly..:) John Andersen-6 wrote: > > You probably have to not only state that you use the State model, but > also the Person model. > > > On Feb 17, 6:28 am, aveev wrote