CakePHP Newbie Questions

2013-12-18 Thread Nick Harper
Hi, I have recently started to learn CakePHP after just being used to coding from scratch. I have installed a couple of plugins but the issue I have is linking them together, for example if I have a login script then how on earth do I just show the login page for example? Does every Controlle

Re: Flash messages redirect after a time interval?

2013-11-14 Thread Nick Rogers
> never ever use :) > > https://github.com/cakephp/cakephp/blob/master/lib/Cake/Controller/Controller.php#L1000 > > So I would just ignore that and use flash messages via setFlash() > Mark > > > Am Donnerstag, 14. November 2013 06:47:19 UTC+1 schrieb Nick Rogers: >> >&g

Flash messages redirect after a time interval?

2013-11-14 Thread Nick Rogers
Have a look at lines 33 and 34 of core.php. Is that referring to flash messages set by $this->Session->setFlash(); in the controller and then echo $this->Session->flash(); in the view? I have never witnessed the behavior de

Re: integrating pusher.com with cakephp

2012-08-17 Thread Nick Crane
it works fine. If anyone is that interested i can post a more detailed explanation. On Tuesday, 14 August 2012 15:05:10 UTC+1, Nick Crane wrote: > > I'm trying to implement a web socket with PUSHER within an existing > cakephp 2.2.1 application. Has anyone attempted anything simi

Re: integrating pusher.com with cakephp

2012-08-17 Thread Nick Crane
OK, I'm still struggling, anyone with a working example of a real-time activity stream that updates the results in a view after a record is save. On Tuesday, 14 August 2012 15:05:10 UTC+1, Nick Crane wrote: > > I'm trying to implement a web socket with PUSHER within an existing

Re: integrating pusher.com with cakephp

2012-08-14 Thread Nick Crane
Thanks for the info, I hope it's that simple, I'll give it a go and update the post. Thanks again. On Tuesday, 14 August 2012 15:05:10 UTC+1, Nick Crane wrote: > > I'm trying to implement a web socket with PUSHER within an existing > cakephp 2.2.1 application. Has a

integrating pusher.com with cakephp

2012-08-14 Thread Nick Crane
I'm trying to implement a web socket with PUSHER within an existing cakephp 2.2.1 application. Has anyone attempted anything similar or come across any resources that define what is required, how this can be achieved? -- You received this message because you are subscribed to the Google Groups

Re: cake php installation on fedora

2011-06-16 Thread Nick Decillo
my problem is im using a step by step procedure in youtube and this is the link installation cakephp 1.3.2 on linux as i follow the instruction, this procedure is more likely use in ubuntu.. the code using to bake in the instruction over t

Problem with blog example - Cake 1.3.3 PHP version?

2010-08-08 Thread nick
roperty in /home/ nick/www/blog/cake/libs/model/model.php on line 978 I looked further and found on model.php#978 access like this - $this->{$model} Now removing braces and $ worked! i.e. $this->model is fine without any errors. This is not the right fix, I know because $this->model

unable to use fusioncharts in view

2010-05-28 Thread nick
Hi guys, I want to use fusioncharts in my cakephp application but the swf file to display the chart does not seem to be loading. In the same folder as my view, I have a directory called charts with all the swf files. Here is the code to load the file for the chart data. echo renderChart("

Re: error with cake bake model/view/controller

2010-02-01 Thread nick
re up your Terminal and do: ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock Seems to have done the trick for me. You'll need to do that each time you restart MAMP I suppose. All the best nick Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Captcha validation in model

2009-07-21 Thread Nick
because i run into validation problems. if someone has a solution for this problem i would really appriciate this. Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this g

Re: error 404 throws blank page

2009-01-25 Thread Nick
quick suggestion. On Jan 25, 3:01 am, Miles J wrote: > Perhaps set your debug to 2 and see if it throws an error why? > > On Jan 24, 11:53 pm, Nick wrote: > > > I can't seem to figure out what I did wrong or where to fix it, but > > I've got my debug level set

error 404 throws blank page

2009-01-24 Thread Nick
I can't seem to figure out what I did wrong or where to fix it, but I've got my debug level set to 0 in my core.php file and saved the default cake 404 error message page into app/views/errors/ but every time I go to an invalid controller url, I get a blank page instead of the 404 error message.

Radio Button onClick

2009-01-03 Thread Nick
=> true, 'type' => 'radio', 'options' => $event["Event"]["name"], 'value' => $event["Event"]["id&quo

Re: Odd AuthComponent behavior

2008-12-26 Thread Nick
Nevermind, I should have looked at the API first. I stripped some of the data I was passing to $this->Auth->login(); I changed it from $this->Auth->login($loginUser); to $this->Auth- >login($loginUser['User']['id']); Its now authenticating the correct us

Odd AuthComponent behavior

2008-12-26 Thread Nick
Has anyone else seen this, it appears to only happen when using the auth component with cookies. If I have an e-mail that begins with a number, the auth component authenticates the wrong user. It takes whatever the leading number is and logs in the user with the ID of that number, instead of the

Re: Copied cake PHP files to a new Ubuntu Intrepid box and nothing is working

2008-11-30 Thread Nick
ven just have a look at what is ticked related to php on synaptic package > manager. If I saw that error message I'd be looking at libraries straight > away. > > You may not get everything you think you ought to by default. > > On Sun, Nov 30, 2008 at 5:52 AM, Nick <[EMAIL

Re: Copied cake PHP files to a new Ubuntu Intrepid box and nothing is working

2008-11-30 Thread Nick
etween the two boxes: Old: 5.0.51a-3ubuntu5.4 (Ubuntu) New: 5.0.67-0ubuntu6 (Ubuntu) Anyone know of any issues with the new version of MySql or Ubuntu? On Nov 30, 12:52 am, Nick <[EMAIL PROTECTED]> wrote: > I'm desperate for some help here...  I just built a brand new ubun

Re: Copied cake PHP files to a new Ubuntu Intrepid box and nothing is working

2008-11-30 Thread Nick
I've traced the issue to something with my On Nov 30, 12:52 am, Nick <[EMAIL PROTECTED]> wrote: > I'm desperate for some help here...  I just built a brand new ubuntu > intrepid server and copied everything from my cake folders on my > Ubuntu Hardy box to the new

Copied cake PHP files to a new Ubuntu Intrepid box and nothing is working

2008-11-29 Thread Nick
I'm desperate for some help here... I just built a brand new ubuntu intrepid server and copied everything from my cake folders on my Ubuntu Hardy box to the new intrepid server. If I extract a fresh version of Cake, everything works fine, css shows up, db calls work correctly, etc., but everythi

How to dynamically load controller based on field in database.

2008-11-13 Thread Nick
Basically I am using wildflower cms which is built on cakephp. It routes are setup so that / goes to the pages controller. I am building a product catalog and could simply have the urls be / products/category/product-name however I do not want to prepend the controller name in this scenario. Right

Re: Desparately trying to search a single DB field for multiple individual terms with find()

2008-11-05 Thread Nick
t->find('all', array('conditions'=>array( >                 'OR'=>array(array('Post.title LIKE'=>'this'), >                             array('Post.title LIKE'=>'that') > ; > > On Nov 5, 3:54 pm, Nic

Re: Desparately trying to search a single DB field for multiple individual terms with find()

2008-11-05 Thread Nick
uestion.content REGEXP' => "$regString")); $this->set('questions',$this->Question->find('all',$conditions)); On Nov 5, 3:28 pm, teknoid <[EMAIL PROTECTED]> wrote: > Nothing to do with cake. Your usage is incorrect. >

Re: Desparately trying to search a single DB field for multiple individual terms with find()

2008-11-05 Thread Nick
m%"); $i++; endforeach; $this->set('questions',$this->Question->find('all',$conditions)); On Nov 5, 2:38 pm, teknoid <[EMAIL PROTECTED]> wrote: > Seems like you are overriding your condition each time... &g

Desparately trying to search a single DB field for multiple individual terms with find()

2008-11-05 Thread Nick
I'm hoping someone can help. I'm fairly new to CakePHP but am thoroughly enjoying coding with it. Basically I've got a field within a table that contains my content. I'm trying to grab the search terms from a single input, explode them and search the content section for each term individually.

Multiple table association problem

2008-04-08 Thread Nick
I think I'm confusing myself. I've read several posts, but haven't got the right solution. I have a model called Properties that facilitates the addition, deletion, or editing of a property. Each property has 300 questions tied to it. These question answers (boolean true/false) are found in th

Re: Login box in layout

2008-03-24 Thread Nick Timchenko
Thank you very much for advices, Dave! I think I'll try AJAX - it will be good practice for me ;) Cheers, Nick Dave J wrote: > Hey Nick, > > You're right about that. I guess you can tackle it either two ways. > > 1) Submit the form using AJAX, so if there's a

no finderQuery data (cake 1.2 beta)

2008-01-15 Thread Nick Jones
Hi guys I'm currently towards the end of a major app build and have today upgraded cake to the beta release, mainly to fix a pagination issue with the nightly I was using. Anyhow, I now have a far more serious problem in that my finderQuery data is being lost somewhere. In previous Cake, with d

Re: Help..How to run cakephp in winxp?

2008-01-11 Thread Nick
Thank you very much~you are so nice!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EM

Re: Help..How to run cakephp in winxp?

2008-01-11 Thread Nick
but ...why not this Screen? http://picasaweb.google.com.tw/nickalbum12/20080111/photo#5154058531461024354 On 1月11日, 下午1時46分, "Louie Miranda" <[EMAIL PROTECTED]> wrote: > As i can see it. It is already running. > > On Jan 11, 2008 12:10 PM, Nick

Help..How to run cakephp in winxp?

2008-01-10 Thread Nick
I can't run cakephp in XP. my localhost display CakePHP Rapid Development Your database configuration file is present. Cake is able to connect to the database. Can you help me? All Screencasts: http://picasaweb.google.com.tw/nickalbum12/20080111 --~--~-~--~~~---~--

Re: Why doesn't Find* return a group of model objects?

2008-01-04 Thread Nick
On Jan 4, 3:31 pm, Deane <[EMAIL PROTECTED]> wrote: > My firm is new to CakePHP, and we're struggling with a piece of "Cake > Theory." Perhaps you can help -- > > When you do a Find or a FindAll, why do you get back a big, nested > array? When I do Widget->FindAll() why do I not get back an arr

Re: Failure to JOIN and query correctly beyond $recursive = 1 - workarounds or fixes welcome, maybe a bug?

2007-07-16 Thread Nick
> No private emails please. The bulk of your question is answered in the > first result of that search: Sorry, it was actually intended for the group. And thanks for the link. I think it was one that I'd seen already, but doesn't have an explanation other than a vague comment that the limitatio

Re: symfony

2007-07-16 Thread Nick
There are few articles on the web that compare the two frameworks from peoples real world experience, and those may be useful to you. Just search for symfony vs. cake When we were exploring this, about as quickly as we recognised that the Zend framework was on the wrong track (less than 30 mins :

Re: Failure to JOIN and query correctly beyond $recursive = 1 - workarounds or fixes welcome, maybe a bug?

2007-07-15 Thread Nick
Just to correct the query results as that was after modifying the schema. The full depth queries are: SELECT `AThing`.`id`, `AThing`.`b_thing_id`, `BThing`.`id`, `BThing`.`c_thing_id` FROM `a_things` AS `AThing` LEFT JOIN `b_things` AS `BThing` ON (`AThing`.`b_thing_id` = `BThing`.`id`) WHERE `

Failure to JOIN and query correctly beyond $recursive = 1 - workarounds or fixes welcome, maybe a bug?

2007-07-15 Thread Nick
Using the latest 1.2 release (and earlier ones), I'm finding that queries that could be performed with a JOIN are breaking into multiple single row queries at $recursive = 2 or more. In fact worse, there is a JOIN and some single queries that duplicate part of the JOIN for one of the tables. I ma

Re: Member Methods in Views

2007-07-13 Thread Nick
Cake 1.x does have this wrong although not intentionally, but there is enough flexibility to deal with it. As others noted, it's fundamental to OO design that rather than having functions that are passed data to operate on, the data contains the behaviour and operates upon itself. Message passing

Re: Wrong fieldset type for MySQL SET datatype. Workaround?

2007-06-16 Thread Nick
" case and then all works well. Not sure if there's a reason why it wasn't there, but I suspect just an oversight. Cheers Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PH

Wrong fieldset type for MySQL SET datatype. Workaround?

2007-06-16 Thread Nick
Hi all, I've been using the Form helper within a form creator helper that I've put together, and using the Form helper's fieldset data that contains the field type details. This has worked great, but I've just found that whilst the enum types are reported correctly, the SET type just shows as typ

Re: Stuck - Join limitation in 1.2?

2007-06-12 Thread Nick
would be the clearer and more natural choice as this is how we would explain the model to someone. It's evidently unnecessary for an enhancement to hasOne, however for the sake of expressiveness, being able to use hasOne or perhaps an "isA" concept might be clearer. Thanks again for t

Stuck - Join limitation in 1.2?

2007-06-12 Thread Nick
ntry. Checking the archives, floepi posted a tweak back in January to add an associatedKey attribute for $hasOne to express this notion, but I wondered whether something like this is now standard in 1.2. Cheers Nick --~--~-~--~~~---~--~~ You received this message be

Caching XML views

2007-02-17 Thread Nick Jones
Hi guys, I'm currently creating RSS feeds using a separate layout with header("Content-Type: text/xml"); inside of it, which all works fine and dandy. The problems occur when trying to push the code into my live environment which relies on caching due to heavy traffic. I am now getting "unexpect

Lighttpd and GET

2007-01-30 Thread Nick
I am trying to get v 1.1.12.4205 running on a Lighttpd server. Everything seems to be working aside from $_GET requests like these: http://www.chattypet.org/pets/?page=2 page=2 would not get picked up in this example. I have no access to it through $this->params and $_GET in Cake. My configur

Re: Save Date < 1970

2006-07-21 Thread Nick
We are working with our hosting provider to upgrade Fedora/PHP/MySQL as after looking into this issue a bit more I think it is a problem that reaches beyond Cake due to our setup. Thank you for looking into this Zimmerman. I will post updates on here as soon as I make more headway with it. --~--

Re: Save Date < 1970

2006-07-21 Thread Nick
How do I link into the existing Cake infrastructure for saving dates? Where is that specific code, where it's using the mktime function. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Save Date < 1970

2006-07-20 Thread Nick
I am not able to save dates before 1970. In my research I found that this is due to an issue with mktime on some Linux distros. Has anyone run into this? If so is there a quick fix I can apply? I've fixed this before in wordpress with the following: 1. Download the "adodb Date Time Library" at h

Re: Social Networking Example

2006-07-15 Thread Nick
Thanks! that worked! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] F

Re: Social Networking Example

2006-07-15 Thread Nick
Maybe you or someone can help me with another issue. When I switch over to production mode (DEBUG 0) I get "Not Found" notices for all my links. What could be causing this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Social Networking Example

2006-07-14 Thread Nick
In the past month I had the pleasure of creating a social networking site in Cake. We are still in BETA and would love to hear from the Cake community regarding any issues with the site. Please take a look at http://www.chattypet.com Thanks for an awesome framework and even better support along t

insert id after save?

2006-06-11 Thread Nick
If I'm saving a record as such: $this->Comment->save($this->params['data']) How do I get the id of the inserted/updated record so I can update associations/execute some custom sql? Thanks! Nick --~--~-~--~~~---~--~~ You received this

Re: Social Relationships?

2006-05-31 Thread Nick
Thank you everyone! Using a combination of: nate's hasAndBelongsToMany tip (something I should've noticed in the manual) and PhpNut's upgrade suggestion I got my social networking issues resolved. --~--~-~--~~~---~--~~ You received this message because you are su

Re: Stop Render View on AJAX Action?

2006-05-30 Thread Nick Wientge
Exactly what I was looking for - thanks! On May 30, 2006, at 8:14 PM, Chris Partridge wrote: > > Well, the groups is messing with my suggested code, but you should get > the idea. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed

Stop Render View on AJAX Action?

2006-05-30 Thread Nick Wientge
I have a simple delete action that is being called by ajax that is trying to render a view when called. How do I stop it from rendering, and better yet, how do I stop it from rendering only if being called by ajax? function delete($id) { $this->Post->del($id);

Re: Social Relationships?

2006-05-30 Thread Nick
Thanks! That helped - least got me on the right track. But now when I try to add/edit a user using the scaffolding I get this error - any ideas as to why that might be coming up. The error comes up near every button, assuming that's cause they all require the ID. The User definitely has an ID in

Social Relationships?

2006-05-30 Thread Nick
tablish this "social networking" table. I need two records created in the Relationship table (establish relationship) everytime a User becomes a friend of another User. Any help would be greatly appreciated, Thanks! Nick --~--~-~--~~~---~--~~ You receive

Re: Acccessing Helpers from Layout

2006-05-24 Thread Nick Wientge
Well I'm a bit of a noob, but what is: var $helpers = array('link'); Shouldn't it be: var $helpers = array('Html'); On May 23, 2006, at 10:35 PM, modfather wrote: > > I am attempting to add a Global menu to the layout file (thinking this > is the appropriate place to put it). I tried the css