CakePHP 2.xx rendering view of original method after saving pdf through second method

2016-01-30 Thread Dave
I am using CakePHP 2.xx and the following component - https://github.com/segy/Mpdf to render pdf's. I have 2 Controller methods, the first method *request_pdf* calls a second method *send_pdf* in the same Controller. The second method creates and saves a pdf to file, and will then email the

Unable to change default theme of cakephp 3.x to twitter like theme using Bake

2015-10-06 Thread Krunal Dave
hi, how can i change my default cake php 3.x theme to some nice looking theme like twitter look theme that bootstrap provided.. downloaded some theme and plugins using composer form terminal.. but very confused about where to put plugin folder and how to Bake code using : /bin/cake bake all so t

Re: CakePHP 3.0 - Confusion comes from

2015-04-02 Thread Dave Edwards
go in fix it myself, the only problem is I don't know the correct answer because the manual is not clear :) On Thursday, 2 April 2015 05:46:52 UTC+1, Farid Aditya wrote: > > Hi dave > I agree with you, but I also disagree > cakephp manual book may not be perfect, but it is q

Re: CakePHP 2 v CakePHP 3 SQL

2015-04-01 Thread Dave Edwards
PHP 3.0' I understand that you love and are passionate about SQL. Not everybody is, and I'm one of them. I want as much of the pain taken out of it as possible of constructing the SQL and find that the format below serves me well for about 98% of what I'm after. Thanks for the r

Re: CakePHP 3.0 - Confusion comes from

2015-04-01 Thread Dave Edwards
I disagree that that the manual is fine. If Euromark is correct (and he usually is) then it is misleading. None of the examples use both. Even the section further down entitled 'Saving Entities' does not use patchEntity as well as newEntity. Dave On Tuesday, 31 March 2015 13:4

Re: CakePHP 2 v CakePHP 3 SQL

2015-03-30 Thread Dave Edwards
BUMP! On Tuesday, 24 March 2015 20:33:49 UTC, Dave Edwards wrote: > > Thanks for the reply, > > That being the case, I am pleasantly surprised that despite the > documentation making a big play on how different the new ORM is, I can (if > I choose) create my queries in

Re: CakePHP 3.0 - Confusion comes from

2015-03-30 Thread Dave Edwards
ed on from explaining how to save data to updating it. Dave On Monday, 30 March 2015 09:16:50 UTC+1, euromark wrote: > > no, patchEntity is what it is: it patches data into the entity > that is necessary for ALL forms, so both add and edit ones of course. > > > Am Sonntag, 29. März 2015

Re: CakePHP 3.0 - Confusion comes from

2015-03-29 Thread Dave Edwards
nderstanding incorrect? Dave On Friday, 27 March 2015 21:24:38 UTC, euromark wrote: > > The latter is deprecated, this changed during RC and as such the tutorial > needs some updating. > Thats all there is to it :) > > Mark > > > Am Freitag, 27. März 2015 15:37:26 UTC+1

Re: Very basic question about the 'CakePHP Project Files'

2015-03-26 Thread Dave Edwards
ormally reflects the database table that it is reading/writing to. Without knowing your schema, I don't know why they've done that. That said, ultimately if it works it works! :) HTH Dave On Thursday, 26 March 2015 22:21:53 UTC, rogerdw...@gmail.com wrote: > > "There shoul

Re: Very basic question about the 'CakePHP Project Files'

2015-03-26 Thread Dave Edwards
people can help you. Or if you are reluctant to do so, email me and I'll see if I can help, or at least put you on the right road. Dave On Thursday, 26 March 2015 12:34:18 UTC, rogerdw...@gmail.com wrote: > > Hi Dave, I really appreciate your reply. > > Yes, the site is on

Re: Very basic question about the 'CakePHP Project Files'

2015-03-26 Thread Dave Edwards
ement that had previously agreed with the original programmer. Dave On Thursday, 26 March 2015 09:08:42 UTC, rogerdw...@gmail.com wrote: > > Hi guys, I searched out this group to get a definite answer to my dilemma. > I am an end user ... not a programmer. > > I had a CakePHP

Re: CakePHP 2 v CakePHP 3 SQL

2015-03-24 Thread Dave Edwards
7;skirt') ), 'Lessee' => array( 'fields' => array('id', 'account', 'name', 'address_1', 'address_2', 'city', 'state', &

CakePHP 2 v CakePHP 3 SQL

2015-03-24 Thread Dave Edwards
ny many more pages to read and understand regarding the new ORM, and I'm really unsure how simple it will be to convert. Will I be able to achieve it in the a similar manner, and will it be as readable, and easy to edit? Are there any examples in the new Manual (I can't find any),

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-16 Thread Dave Edwards
ticles'); > > articles = $this->find('all', [ > 'fields' => ['title', 'body'], > 'conditions' => ['id' => 1] > ]); > > > On Friday, November 14, 2014 2:49:27 PM UTC+1, José Lorenzo wrote: >

Re: Is CakePHP dead? (Or is it just this group?)

2014-11-14 Thread Dave Edwards
What I would really like to see is some sort of simplified Model object layer which will cater for 80% of applications that do not require this new method of working. It will also not be long before the Manual refers to ORM instead of Model (enter version 3.xx RC1 stage left), so that's goi

Re: Converting an existing site using different framework to CakePHP

2014-10-29 Thread Dave Edwards
I think re-writing the app in the new framework will be your answer. Personally I have always found it easier to port an existing app over than write one from scratch because all your functionality, layouts, and database structures should already be defined. Unless there is tons of bespoke code

Re: Comparable 2.xx to 3.xx functionality

2014-09-23 Thread Dave Edwards
Hi Dakota, *Thanks for taking the time to answer my specific questions, I appreciate it. I have got this part working, but will no doubt return to this forum with further questions as 3.xx is a learning curve.* *Thanks again.* *Dave* On Monday, 22 September 2014 08:01:11 UTC+1, Dakota wrote

Re: Comparable 2.xx to 3.xx functionality

2014-09-21 Thread Dave Edwards
(), and whilst the old method will not be removed, we've decide to use them. I would have understood that - so I'm obviously not that thick. If we were all programmers to your standard, we wouldn't need to use a framework, but a framework *should* remove the hard work... Thanks f

Re: Comparable 2.xx to 3.xx functionality

2014-09-21 Thread Dave Edwards
in 'http://book.cakephp.org/3.0/en/core-libraries/validation.html', I again don't know. This seems to be a common theme with the new docs, with a lot of useful information scattered across the docs in many different places and not always where you'd expect to find it! Dave On

Comparable 2.xx to 3.xx functionality

2014-09-21 Thread Dave Edwards
se Cake\ORM\Entity; class UsersController extends AppController { Does this look right, compared to the simplicity of 2.xx this now looks very unwieldy and complicated? Thanks for any replies. Dave -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/C

Re: 3.x checking loggedin user in view/template

2014-09-17 Thread Dave Edwards
echo $auth['username']; > } > > On Monday, September 15, 2014 6:53:32 PM UTC+2, Dave Edwards wrote: >> >> In CakePHP 3.x what is the correct way to establish whether the user is >> logged in via Auth in a view/template? >> >> I found this https://

3.x checking loggedin user in view/template

2014-09-15 Thread Dave Edwards
something for the view? Can an example be provided please? Dave -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this

Re: CakePHP 3 New ORM

2014-08-19 Thread Dave Edwards
cumentation on the new ORM, a lot on Controllers etc etc, but not many end to end examples (apart from the blog). Dave On Tuesday, 19 August 2014 10:16:42 UTC+1, José Lorenzo wrote: > > My answers are inline: > > On Monday, August 18, 2014 4:59:42 PM UTC+2, Dave Edwards wrote: >&g

CakePHP 3 New ORM

2014-08-18 Thread Dave Edwards
get. I know that people at this stage will say, that if I could do better, then I should contribute to the documents myself. But in order to do so, I would need to understand them first! :) They do say that programmers shouldn't write manuals, and perhaps this is a case in point? Dave -

Re: Layout question - adding a class to a wrapper div

2013-12-06 Thread Dave M.
Great. thanks! On Friday, December 6, 2013 12:56:55 PM UTC-5, Leandro Machado Pereira wrote: > > I don't see any problem. > > I think this is normal. > > > 2013/12/6 Dave M. > > >> I considered that approach. But what about the rest of the pages? >>

Re: Layout question - adding a class to a wrapper div

2013-12-06 Thread Dave M.
his. > > In you controller > $this->set('wrapperID', $myWrapperID); > > In your layout > echo $wrapperID; > > Best regards; > > > 2013/12/6 Dave M. > > >> Let's say I have a default layout containing this body >> (overly-simplified):

Layout question - adding a class to a wrapper div

2013-12-06 Thread Dave M.
Let's say I have a default layout containing this body (overly-simplified): fetch('content'); ?> I have a need to add a class to the wrapper id for a couple of pages on my site. It seems like creating a new layout is overkill for just one minor addition when everything inside

Re: need help with check/uncheck all checkbox [cakephp]

2013-11-18 Thread Dave M.
I don't think the class option works for multiple checkboxes. What you can do is specify a div and work off of that (you can also reduce your js code): echo $this->Form->input("Country", array("options" => $viewData["countryList"], "multiple" => "checkbox", "onclick" => "resetSelectAll();" ,

Checking Consistency Before Saving

2013-04-22 Thread dave
I have a table of students with foreign keys of province_id and a country_id. And the table of provinces has a foreign key of country_id just like the students table. I want to make sure that a student doesn't get saved with a province that doesn't match the country. I put this into my Student

Re: Output to PDF with elements and styles

2013-01-23 Thread Dave M.
I had the same issue, and ended up hard-coding the full css link in the head of the pdf layout. eg. http://www.mysite.com/css/styles.css"; /> Not the most optimal solution, but it got me up and running. On Wednesday, January 23, 2013 8:19:04 AM UTC-5, Jeremy Burns wrote: > > So I got Ceeram's

Re: Dealing with Image Uploads

2012-12-30 Thread Dave Maharaj
olution and hoping to find some ideas or suggestions on how > to handle that.**** > > ** ** > > Thanks all and happy new years to all J > > ** ** > > Dave > > ** ** > > *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On > Behalf Of *SvenP >

nginx and CakePHP

2012-11-13 Thread Dave Maharaj
ing nginx would mind sharing sites-available/{site} conf file or any insight. Thanks, Dave -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" gr

Re: how can i migrate from cakephp 1.2 to 2.x...?

2012-11-03 Thread Dave M.
1. http://book.cakephp.org/2.0/en/appendices/migrating-from-cakephp-1-2-to-1-3.html 2. http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html I would definitely run through #1 just to make sure there are no deprecated items still in use. On Thursday, November 1, 2012 8:07:46 AM UT

Re: why cakephp doesn't support pure MVC

2012-10-15 Thread Dave M.
Also, to use the $c variable in the view, you need to set it in the controller: $this->set('c', $this->M->getX()); http://book.cakephp.org/2.0/en/controllers.html#Controller::set On Sunday, October 14, 2012 10:08:56 PM UTC-4, vinny M wrote: > > He's right seems like you made a mistake calling

Re: A website for cakephp beginners

2012-10-09 Thread Dave M.
I think the problem is that instead of supplying an answer to a question ('Be sure to add $actsAs = array('Containable); to your appModel!'), you instead provide a link to a blog post on your site which says 'Be sure to add $actsAs = array('Containable); to your appModel!'. A post which was cre

Re: struggling with containable - containing the same model twice

2012-10-09 Thread Dave M.
ration->User) I get the structure for the User >> model, but if I dump out $this->Operation->OperationParticipant I get the >> structure for AppModel.. its almost as though OperationParticipant is not >> initializing? >> >> >> >> On Tue, Oct 9,

Re: struggling with containable - containing the same model twice

2012-10-08 Thread Dave M.
ill thinking about this. On Monday, October 8, 2012 7:45:39 AM UTC-4, José Lorenzo wrote: > > You need the alias as cricket said and in your find you need 'contain' => > array('OpUser', 'User') > > El lunes, 8 de octubre de 2012 01:50:05 UTC+2, Greg

Re: struggling with containable - containing the same model twice

2012-10-07 Thread Dave M.
another wild guess: have you attached the Containable behavior? In your AppModel: public $actsAs = array('Containable'); -dave On Saturday, October 6, 2012 2:58:54 AM UTC-4, Greg wrote: > > Sorry to keep bumping, but this is really doing my head in... > > The only "

Re: Cake url

2012-09-09 Thread Dave M.
look at your parentheses. On Saturday, September 8, 2012 1:25:43 PM UTC-4, girl wrote: > > thanks a lottt for reply... > but I print > > $code=$params['code']; > > the problem I want to change it when if statement is true and I do > replacement > > > -- You received this message because you

Re: undefined index error

2012-08-14 Thread Dave M.
I suggest you throw a debug($weeklyroster) into your view to see how the array is actually structured. I would assume that you would want $weeklyroster[0]['Weeklyroster']['week'], $weeklyroster[1]['Weeklyroster']['week'], etc. On Monday, August 13, 2012 11:39:37 AM UTC-4, mohit wrote: > > Hi F

Re: Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
I've discovered this doesn't happen when i am logged in to the app itself. I am quite confused. On Monday, July 23, 2012 10:58:34 AM UTC-4, Dave M. wrote: > > After upgrading to 2.2.1 from 2.0.x some of my controller tests are > failing. > It seems as if a mocked Auth comp

Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
After upgrading to 2.2.1 from 2.0.x some of my controller tests are failing. It seems as if a mocked Auth component does not survive multiple testAction calls. Am I doing something wrong here or is this expected? CandidatesControllerTest.php public function testExportAdmin() { $Candidates = $t

Re: Database Config

2012-07-14 Thread Dave Maharaj
I'm baking local, correct so i need to go into database.php and comment out live config, so i can bake local settings because it wont find the local using live server settings, then uncomment / re comment local settings to upload then re-upload database. If im making changes to local db its not li

Re: Fresh Bake

2012-07-05 Thread Dave Maharaj
I have Cake in a libs folder. But i just added v-host config so that seems to have corrected everything. Could have been wrong path on project install that screwed everything up but thanks for the fast response all the same. On Thu, Jul 5, 2012 at 10:41 PM, lowpass wrote: > Yeah, that looks pret

Re: Contain conditions based off parents data.

2012-06-11 Thread Dave Milsom
Call the find on the ParentsDomain model instead: $this->Domain->ParentDomain->find('all', array('conditions' => array("ParentDomain.chronicle_id"=>1))); On Sunday, June 10, 2012 11:45:48 PM UTC-4, Michael wrote: > > So I have a table called Domains which has a parent_id allowing the > domain

Re: ave does not work properly

2012-06-02 Thread Dave Milsom
What exactly does the structure of $this->data look like? On Friday, June 1, 2012 9:05:13 PM UTC-4, Jeff Huang wrote: > > I already sent two days tried to solve this problem but havent found > out the solution. Basically the problem is, when I followed the Blog > tutorial on CakePHP cookbook, m

Re: Unauthorized users don't get redirected to login action

2012-05-27 Thread Dave Milsom
On Sunday, May 27, 2012 9:46:34 AM UTC-4, rihad wrote: > > > Trying to access an unauthorized area of the app should not log them out > by > > default and kick them to a log in page. > > There's absolutely no need to log them out first. Redirecting to index > page is weird, the user never ask

Re: Unauthorized users don't get redirected to login action

2012-05-27 Thread Dave Milsom
On Saturday, May 26, 2012 3:29:33 PM UTC-4, rihad wrote: > > > > On May 25, 7:13 pm, Dave Milsom wrote: > > On Friday, May 25, 2012 2:15:51 AM UTC-4, rahajiyev wrote: > > > > > On May 24, 6:52 pm, Ceeram wrote: > > > > Why should a logged in

Re: Unauthorized users don't get redirected to login action

2012-05-25 Thread Dave Milsom
On Friday, May 25, 2012 2:15:51 AM UTC-4, rahajiyev wrote: > > > > On May 24, 6:52 pm, Ceeram wrote: > > Why should a logged in user be redirected to login? > > > The logged in user doesn't have that specific privilege. > One would expect a login screen to appear when one has insufficient >

Re: Passing data to controller action based on button clicked

2012-05-23 Thread Dave Milsom
gt;getPrevious($id)); } But with the first approach, you would have the information available as to whether there actually was a next or previous item, and not display the button if there wasn't. -d On Wednesday, May 23, 2012 3:07:32 PM UTC-4, Dave Milsom wrote: > > Off the top of

Re: Passing data to controller action based on button clicked

2012-05-23 Thread Dave Milsom
Off the top of my head, here is what I would do: 1. In the edit function, grab the IDs for the previous and next items. I would probably have two methods in the model, getNext($id) and getPrevious($id), or something like that, which return the IDs for the next and previous items, respectively.

Re: Layer images

2012-05-11 Thread Dave D
image previews, a "save as" button and everything. There would be a lot ways to still get the image, even if you put another, blank image over it. Watermarking is probably the best idea. Dave On May 10, 2:28 pm, Sean wrote: > Hello all, > > I am working in 2.1. > >

Re: Where to start?

2012-04-10 Thread Dave D
If it's showing absolutely nothing, this could be a case where your version of PHP isn't up to date. The newer versions of CakePHP need 5.2.8+. I've tested with 5.1.x and nothing shows up. Unfortunately, this means that older versions of Centos (5.x) and probably RHEL do not come with a version

Re: Session unstable?

2012-04-08 Thread Dave
I get reports from users of being logged out randomly, using 1.3 branch, cake sessions and auth component. Based on the logic I've set in core.php, the session should last for days, but sometimes it is 10 minutes, sometimes an hour. It's very hard to pin point why though. On Apr 7, 4:36 am, heohni

Re: Database configuration problem

2012-03-27 Thread Dave D
Does this still error if you remove " wrote: > class DATABASE_CONFIG { > >         public $default = array( >     'datasource' => 'Database/Mysql', >     'persistent' => false, >     'host' => 'localhost', >     'port' => '', >     'login' => 'root', >     'password' => '', >     'database' => 'ca

How can I use Model in Component? Is it possibly?

2012-03-16 Thread Dave Modis
Actually I need to read and write some data in database by using component. If it impossibly, can I use Controller in Component like Controller use Component (returning result of method)? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new Ca

Re: Cake PHP (Bug even still exists in cake php2)

2012-03-08 Thread Dave D
Are you saying that you're using the default "welcome to cakePHP, everything is working correctly!" page that comes up to make sure all your settings are correct before creating your website, and that page's css breaks when you start doing other things which causes errors to appear on the page beca

Re: CakeSession->__startSsession()

2012-02-10 Thread Dave
Yes, but looking at the latest release, I'm still seeing this block of code. Was the multi cookie header thing solved somewhere else in a later version some other way? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site h

CakeSession->__startSsession()

2012-02-10 Thread Dave
I've gotten complaints lately about session cookie headers showing up on the webpage. I'm used to seeing CakePHP send out several copies of the session cookie header but the pages generating the complaints are sending out over 60 which I'm speculating my user's browsers are choking on. As the cake

Re: strange image upload editing behavior

2012-02-06 Thread Dave D
le wrote: > hmm...model names are CamelCased, right ? > so Imagelink will be better :) > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2012/2/6 Dave D > > > Hi everybody, I'm working on creating an image upload section for my > > site, and creating the ima

strange image upload editing behavior

2012-02-06 Thread Dave D
Hi everybody, I'm working on creating an image upload section for my site, and creating the images seems to work fine. The uploaded image information is saved correctly, the image is moved to the correct folder and it looks like I can call the image from other parts of the site just fine. My prob

images only partially working

2012-01-25 Thread Dave D
I'm running into a strange issue where I'm trying to load images to a page, and only some of my images are showing up. It seems like all of CakePHP's images (things like cake.power.gif) work fine, everything that I have loaded in through CSS work fine (and will show up fine with the Html Image hel

Re: Including queried information in default layout

2012-01-20 Thread Dave D
> > Can you post more code? > > The component idea should be fine. > > More details of your bab/menu model would be good. > > - S > On 20 Jan 2012 16:13, "Dave D" wrote: > > > I'm looking to create a site where I can have a navigation list on one &

Including queried information in default layout

2012-01-20 Thread Dave D
I'm looking to create a site where I can have a navigation list on one side of each page where the list of links is taken from a database table. I can create the list of links just fine in the layout, but I'm suck looking at how I might be able to get the list out from the database. I've been look

URL rewriting is not properly configured on your server

2012-01-14 Thread Dave D
I'm setting up cake for the first time, and trying to follow the blog tutorial, but I can't get URL rewriting to work. I had just finished the part where I created index.ctp in the Posts directory under app/View when I figured out that it's not correctly set up. System info: OS: Centos 6.2 x86_6

Re: MongoDB $or + $regex

2011-12-15 Thread Dave Lancea
Hmm, I guess I misunderstood my original read of the original code. Our array formats look the same. Maybe the real problem is that using MongoRegex objects isn't necessarily, it worked for me to just use strings. However, I didn't test this using sub-items in a field, but on a field itself. Al

Re: MongoDB $or + $regex

2011-12-14 Thread Dave Lancea
You can use the $or or $and operator to test multiple conditions of the same name: $conditions = array( '$or' => array( array( 'date' => array( '$regex' => '/^arug/i', ), ), array( 'date' => array( '$regex' => '/^bro/i', ), ), ) ); Note, the value of the '$or' key in the $conditions array is a n

Re: onClick show Posts from yesterday.

2011-12-05 Thread Dave Milsom
I think you are asking how to calculate yesterday's date? You can look at the date page of the php docs, or just look here: http://www.php.net/manual/en/function.date.php#99575 On Dec 4, 2:57 pm, GG wrote: > Problem: In my controller, I am selecting the Posts that are created > on todays date. Ho

Re: Rudeness

2011-11-04 Thread dave
understand that some out there have way more knowledge than others, and to transfer that knowledge through this forum can only be for the better good of cakephp in general. Cheers Dave On Nov 4, 9:00 am, WebbedIT wrote: > Whilst I think the rudeness issue is interesting, and I am becoming &g

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
Thanks Jeremy. Ok cool will do. Mind if I shorten it (massively) and re-post? Cheers Dave P.s. Apologies to AD On Nov 3, 4:51 pm, Jeremy Burns | Class Outfit wrote: > Dave - the posts were too long; long ones don't get read or responded to. > > This is one of the most friendly

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
27;s a great welcome to the cakephp forums then... On Nov 3, 4:10 pm, AD7six wrote: > On Nov 3, 4:22 pm, dave wrote: > > > Just a quick typo fix on that last statement...after the > > Sooadded the number 6 on the input id. That's how > > it should r

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
Just a quick typo fix on that last statement...after the Sooadded the number 6 on the input id. That's how it should read... Yes No On Nov 3, 3:10 pm, dave wrote: > Hi... I posted a couple of days ago re making radio button labels > clickable...but guess my q

Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread dave
ntroller here...hence the MemberField rather than UserField, but that's all... See my input->ids and label->fors? All identical. Like peas in a pod. Like things that are indistinguishable from each other. Like twins. Like..like...like...pah! Any ideas?? If anyone can help, I'd be e

Re: Making radio button labels clickable?

2011-11-01 Thread dave
alue] => Female, [for] => reply2530) ) but tried various versions of this without getting there...pretty sure 'for' is not correct for instance...etc etc. Tried lots of things prior to posting here...and checked all documentation and other user's issues etc, but no definitive ans

Re: Making radio button labels clickable?

2011-10-31 Thread dave
More info: Just to make it clear, clicking either the Male or Female label currently sets the male radio button as selected. Also, I'm guessing my issue is probably in the options array... On Oct 31, 4:29 pm, dave wrote: > Got quite lengthy when writing it, but essentially my question be

Making radio button labels clickable?

2011-10-31 Thread dave
Got quite lengthy when writing it, but essentially my question below is how to make radio button labels clickable. Pls read on... Quite new to Cakephp, and very pleased with results so far, but perplexed by radio buttons. More accurately, adding labels with the correct 'for' attribute to make them

Re: Problem displaying output to view when using loadModel()

2011-09-29 Thread dave
may pass directly to the Registration->read() method. Your reply (poss written at the end of a long day?) helped. Thanks. On Sep 28, 6:47 pm, euromark wrote: > if you dont submit the id how can read() ever return the correct/ > expected result? > thats what I ask myself when I look at your co

Problem displaying output to view when using loadModel()

2011-09-28 Thread dave
r all. The nda table and registration table are identical. What I really want to do is use this controller and view (NDAs) to access detail from the registration table. No errors are rendered, just that info from the registration row doesn't appear... Any help would be muchly appreciated. Apologies if n

Looking for a Cakephp developer

2011-09-28 Thread Dave Black
Hi everyone, I'm working on a consultancy exercise for a government organisation in the UK and part of the brief involves a fairly robust cakePHP system. This system may or may not be taken forward to completion but in order to determine whether it should be, I could use some help with a couple of

Re: Sessions expiring with `Security.level` set to low and the `Session.timeout` set to 12000

2011-04-30 Thread Dave
Have you set it so CakePHP controls your sessions? The default is PHP, and the session timeout is controlled in the PhP.ini for that one. It took me a long time to work this one out! On Apr 30, 4:15 am, mattalexx wrote: > My client is complaining that she posts a form and gets kicked to her > lo

habtm self which joining table

2011-02-08 Thread Dave
Persons is the user table... Relations is the relation group and it belongs to person_id I then need a table that lists all persons that the RelationOwner has placed into it which consists of person_id(owner) relation_id person_id(person in the relationship) CREATE TABLE persons { id INT UNSIGNED

RE: Forum Is A Free For All?

2011-02-04 Thread Dave Maharaj
have on CakePHP are now dated with support for 1.2 with many of elements of the API changed.  Hard to understand a change log when you don't understand the fundamentals.  The best teacher was Andrew Perk on youtube.com.   > > - H > > On Feb 4, 2011, at 12:46 PM, Dave Maharaj wrote:

RE: Users name / changes

2011-02-04 Thread Dave Maharaj
Off topic correct. But what caught my eye is "multiple email address" are hard to remember. Your saying that you use 1 username across the board for every site your registered to? If that username is taken you just say ohh well im not signing up if I end up with a different username? An email I un

Forum Is A Free For All?

2011-02-04 Thread Dave Maharaj
I do not know if it's just me, but I have been on the group 2 and a half years now and when I first joined I got told "how to ask a question" if you have code show it, errors show it, if you cannot figure something out show what your code is now, what you have tried. Lately the board is full of

RE: Pass Controller Data Array to Element for home.ctp

2011-02-03 Thread Dave Maharaj
Nothing is getting returned right? Your paginate is commented out $this->set('plans', $plans); //is going to return nothing. Since $plans = $this->paginate(); is commented out function index() {     $plans = $this->paginate('Plan');         $this->set('plans', $plans); //worry about the if stat

RE: RE: Pass Controller Data Array to Element for home.ctp

2011-02-03 Thread Dave Maharaj
27;plans/index'); Debug($plans); to see if your getting any data back, if so see how it looks. Dave From: OldWest [mailto:ja...@jasonwydro.com] Sent: Thursday, February 03, 2011 7:38 PM To: cake-php@googlegroups.com Subject: Re: RE: Pass Controller Data Array to Element for home.ctp Thanks,

RE: Pass Controller Data Array to Element for home.ctp

2011-02-03 Thread Dave Maharaj
Pass the data in the Element array Element('search_dental_plans_results', array( 'plans' => $plans, // optional to cache the element 'cache' => true / false / duration)); ?> From: OldWest [mailto:ja...@jasonwydro.com] Sent: Thursday, February 03, 2011 7:01 PM To: cake-php@googlegroups.c

RE: Users name / changes

2011-02-03 Thread Dave Maharaj
is found, know, seen by 1 name then that’s what you would expect everytime. Anyways we can just end this here as it can just go on forever. Thanks for the feedback guys. Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: Thursday, February 03, 2011 5:05 PM To:

Great Job on The Cookbook

2011-02-02 Thread Dave Maharaj
Nice new look to the cookbook! I think it looks 100% more professional! Great job to all who made it possible. Dave -- 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

RE: Validating Search form Submission Field (no field in database table) ?

2011-02-02 Thread Dave Maharaj
'message' => 'Please enter a valid age.' ), Give that a try Dave From: OldWest [mailto:ja...@jasonwydro.com] Sent: Wednesday, February 02, 2011 6:20 PM To: cake-php@googlegroups.com Subject: Validating Search form Submission Field (no field

RE: can any one help in tool tip for icons?

2011-02-02 Thread Dave Maharaj
The Google place has a lot of answers I hear they are a new search engine...no expert by try typing "jquery tool tip" -- 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 C

RE: Users name / changes

2011-02-02 Thread Dave Maharaj
roviders/employers and so on. > > I see no decide in letting people change their names. The thing you don't want to change is the id. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 2 Feb 2011, at 21:49, Dave Mah

RE: Users name / changes

2011-02-02 Thread Dave Maharaj
it could by James. Dave -Original Message- From: Jeremy Burns | Class Outfit [mailto:jeremybu...@classoutfit.com] Sent: Thursday, February 03, 2011 12:43 AM To: cake-php@googlegroups.com Subject: Re: Users name / changes Decide? I meant downside. ^^ Jeremy Burns Class Outfit jeremybu

Users name / changes

2011-02-02 Thread Dave Maharaj
all. But there are people out there who would constantly change their names to foolishness and there is simply no man power to watch these changes constantly. Am I being too hard? Thoughts? Suggestions Thanks, Dave -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakeph

RE: Has anyone used Geonames without webservice?

2011-02-01 Thread Dave Maharaj
ays have to go to web service . On Mon, Jan 31, 2011 at 12:32 PM, Dave Maharaj wrote: Just wondering is anyone has used the geonames database with cake but with own database, not thru webservices? I know it's a monster database in size but I do not like the idea of using a service that

Has anyone used Geonames without webservice?

2011-01-31 Thread Dave Maharaj
anyone has implemented it? I have the db setup and basic model / controller to test out queries, but my way takes much longer than the webservices version so just curious if anyone has had any success? Thanks, Dave -- Our newest site for the community: CakePHP Video Tutor

Where to put before:: code

2011-01-29 Thread Dave Maharaj
Where should this code go? beforeFunction what? Have the JS pull the expired session element? (Thinking now this might be best since the response can be HTML, JSON or a straight redirect to login depending on what the user was trying to do at the moment of error) And ideas or suggestions? T

RE: 2 Col Layout / Jquery / JSON

2011-01-28 Thread Dave Maharaj
That's what I am currently doing. $response = array(html, status, message, so on); html is the rendered view, you cant render 2 views / elements so how do you get the second block? The mini element that will go under the side navigation? From: huoxito [mailto:huox...@gmail.com] Sent: Friday,

2 Col Layout / Jquery / JSON

2011-01-27 Thread Dave Maharaj
anges except on a page refresh. Any ideas? Thanks, Dave -- 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

RE: Connecting to a remote database via SSH

2011-01-27 Thread Dave Maharaj
hat's what you are in need of I am unsure of that aspect but will follow this post to see if anyone else does. Dave From: Jeremy Burns [mailto:jeremybu...@classoutfit.com] Sent: Tuesday, January 25, 2011 4:02 PM To: cake-php@googlegroups.com Subject: Connecting to a remote database via SS

  1   2   3   4   5   6   7   8   9   10   >