Re: id of the current user

2016-02-08 Thread Paul Vaughan
In CakePHP 3.2 I am using: $userid = $this->request->session()->read('Auth.User.id'); I hope that's useful. Paul. On 4 February 2016 at 15:53, Vishwadeep Kapoor wrote: > Is there any way to get the value of the current login user in cake php, i > have

Re: URL without controller

2015-08-05 Thread chol paul
yes you can. routes allow you to control how users access your website/resources by rewriting url to their verbose application implementations. Example Router::connect('/uploads', array('controller'=>'fileman','action'=>'uploads')); On 8/4/15, gianmere wrote: > Hi, > > sometimes I need to define

CakePHP 3 Book: Is anyone writing an introductory book to help beginners get started?

2015-07-12 Thread Paul M
Is anyone writing an introductory book about CakePHP 3 aimed at beginners? I'm asking because I've seen books about other frameworks such as Yii and Laravel. They can typically be found on LeanPub, Amazon / Kindle, and Paktpub.com etc. But I have not seen any CakePHP 3 books. The most recent bo

Re: How to create Login using "already-hashed password" from another application (non-cakephp application)

2015-06-25 Thread chol paul
find out the password hasher of that app. and create a mirror of that class of course the cakephp way. password hashers are found in app/controller/components/auth. Optionally your custom hashers can extent AbstractPasswordHasher On 6/25/15, 'Cruisine' via CakePHP wrote: > Dear friends, > > Rece

Moving from Dev to Prod, Fatal Error - Appears to be server specific issue, not seeing the error on Google

2015-06-09 Thread Paul Sharratt
Hi All, I'm in the process of moving CakePHP 3.0 from my dev environment to production here: http://letsride.com.au/admin/ Error message is: Warning (2): register_shutdown_function(): Invalid shutdown callback '' passed [CORE/src/Error/BaseErrorHandler.php, line 91] Fatal error: Call to un

Getting started ... help!

2015-05-01 Thread Paul Snell
e are the things that I am not sure about, but if anyone knows why I might be getting a completely blank pdf for reasons other than these, I would be grateful for any advice. Thanks Paul -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP ---

CakePHP automagic ID lookup for various data

2014-09-24 Thread Paul Drage
ust be something really obvious here because surely this sort of question would come up more often? Weird how Google comes up short for me (Perhaps I don't know the proper phraseology!) Cheers then Paul -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitte

Re: Model chaining for a find statement not returning expected results

2014-09-12 Thread Paul Drage
Thanks Stephen I did a cake bake all (auto) which generated all the models- in hindsight perhaps manually coding them would have been an advantage? I used dogmatic69(.com) yesterday and it told me there was about 3 tables which were named incorrectly: it would of been nice for cake bake to te

Re: Model chaining for a find statement not returning expected results

2014-09-11 Thread Paul Drage
happy to consult? I had a quick look at your business website, I'm really hoping it's something obvious.. Let me know what you'd like to know - cheers On Thursday, 11 September 2014 11:43:59 UTC+1, Mike Karthauser wrote: > > hi paul > > if you are using recursive =1 in yo

Re: Model chaining for a find statement not returning expected results

2014-09-11 Thread Paul Drage
Should i just move everything to a different controller? surely there must be a way to do the association i need right in/before the query?? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subsc

Re: migration issue

2014-09-09 Thread Paul Drage
Why is it you need to go to all that effort just to get your app back up and running? What is your latest error with the actual app/site? - It looks to me like you're nearly there! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You re

Re: Model chaining for a find statement not returning expected results

2014-09-09 Thread Paul Drage
Any thoughts are welcome at all - I've managed to run the chained query in a different controller so I'm now sure it's my has many/belongs to rules - But after trying some (even more) ideas with the relationships i'm still getting the error relating to a non object when i try it in the controlle

Re: cakephp how to find a field that is joined by related tables

2014-09-08 Thread Paul Drage
I have an identical issue at the moment which i suspect is all down to the relationship between our models. Let you know if i ever get mine sorted! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you ar

Model chaining for a find statement not returning expected results

2014-09-08 Thread Paul Drage
Hi Guys, I've been trying to get this query going for a couple of days - I wrote some really hacky (non cakey php) code to lookup a 'name' field given the 'id' field that I *am* getting out of the query - it sort of worked but it was a real mess. I know that this can be done, and it can be don

Re: CakePHP baking into a sub folder within controllers, models and views

2014-08-22 Thread Paul Drage
Hi Jan, thanks for this.. And as for the file management, is it basically not possible to segment admin views and controllers away into separate folders without turning it into a plugin? I will look to prefix with admin_ and setup the routing! thanks -- Like Us on FaceBook https://www.facebook

CakePHP baking into a sub folder within controllers, models and views

2014-08-22 Thread Paul Drage
(right now the comfortable thing to do would be to go back to CodeIgniter which I'm trying my best to resist!) Cheers Paul -- 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 Goo

Baking into an admin sub folder or segmenting admin MVC from public website

2014-08-22 Thread Paul Drage
(right now the comfortable thing to do would be to go back to CodeIgniter which I'm trying my best to resist!) Cheers Paul -- 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 Goo

Re: button wont display as it should

2014-06-02 Thread Paul Willis
According to the docs http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html To create an image link specify the link destination using the url option in $htmlAttributes.: echo $this->Html->image("recipes/6.jpg", array( "alt" => "Brownies", 'url' => array('controller' =

Re: Cakephp and HasMany not returning association

2014-05-02 Thread Paul Josephson
Anybody have any suggestions of why this is not working or am I doing it wrong? -- 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

Cakephp and HasMany not returning association

2014-04-29 Thread Paul Josephson
*I have started to play around with *3.0. *I have taken one of our models from *2.x *and **moving to *3.0 *for **practice **and **testing*. *I have come across **and **issue when calling a Model*/*Table **and **attempting to **include **an hasMany association*. *But*, *even though I **use *

Re: Is Cake Dead Or Just Catching Up?

2014-03-12 Thread Paul Willis
t started with CakePHP, now I've more experience my questions are rarer but I often find the answers with a search on StackOverflow. Paul -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are sub

Re: Adding a new counter cache

2014-01-23 Thread Paul Gardner
28 UTC+2, phpMagpie a scris: >> >> I would also run a SQl query direct on the database using phpMyAdmin >> or the CLI >> >> UPDATE model_a SET model_a.model_b_count = (SELECT COUNT(model_b.id) >> FROM model_b WHERE model_b.model_a_id = model_a.id) >> >&

cakephp session lost and sometimes refresh webpage it can be get

2013-11-12 Thread paul chen
like login I write $this->Session->write('custpyzm',$verifyCode); and I submit then in users_controller I write $this->Session->read('custpyzm'); but sometimes it can't be getted; and if I refresh webpage sometime it can be getted sometimes can't ? what's on earth ?help someone can

Re: Accessing things in $this->request->data

2013-10-04 Thread Paul Willis
It was indeed $this->request->data['Item']['category_id'] Thanks, just had a bit of a mind block! Paul On 4 Oct 2013, at 01:28, Simon Males wrote: > Throw in a debug($this->request->data) to see what data you have. > > Though it's likely: >

Accessing things in $this->request->data

2013-10-03 Thread Paul Willis
hing like… $this->request-> Item->category_id ...to pull the category_id out but I can't get the correct syntax to use The category_id is in there as it is being saved with all the other item data. I'm on CakePHP 2.3.x if that is relevant. Regards Paul -- Like Us on FaceBook https:/

Re: Notice (8): Undefined variable:

2013-08-27 Thread Paul Willis
saying it would cause any issue but I avoid any possible conflict words Paul -- 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

Re: when i select state next drop down list of contacts gives only one value related to state not giving all contacts related to state

2013-06-07 Thread Paul Gardner
? HTH, Paul. -- 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 group and stop receiving emails from it, send an

Session.checkAgent = false for one controller/action

2013-06-07 Thread Paul Gardner
ntroller's beforeFilter, but that runs too late in the request cycle. Thanks, Paul. -- 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" g

Re: Image upload in cakephp

2013-06-07 Thread Paul Gardner
t for CakePHP use without Croogo. https://github.com/phpMagpie/ElFinder HTH, Paul. -- 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 unsubs

Re: Cakephp 1.3 video tutorial

2013-03-12 Thread Paul Willis
I found Andrew Perk's series to be very useful http://www.youtube.com/watch?v=nO9oSQhRa9s PW On 12 Mar 2013, at 14:54, Joseph zhu wrote: > Hi there: > I am a beginner for cakephp 1.3, I have a website built with cakephp 1.3, so > I want to study it, and who has the cakephp 1.3 video tutorial,

Re: Model "Subject" not found

2013-02-25 Thread Paul Wiegers
hanks again for pointing me in the right direction! regards, Paul -- 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

Model "Subject" not found

2013-02-25 Thread Paul Wiegers
want a subject? I don't want a subject! :-))) My question: how can I find out where this Subject is comming from? BTW: I used the cake oAuth-app as groundwork for this app, as I want to use oAuth. thanks for any light on this :) Paul -- Like Us on FaceBook https://www.facebook.co

Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?

2012-12-10 Thread Paul Marriott
k reliably. Cheers Paul -- 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 post to this group, send email to cake-php@googlegroups.com.

Re: Pagination

2012-11-20 Thread Paul Willis
-habtm-related-data I specified my joins and everything is now working (the link is for 1.3 but it worked fine on 2.2) Thanks again for the help Cheers PW On 20 Nov 2012, at 05:38, Andras Kende wrote: > Paul, > > Sorry the code I gave earlier is not valid, my mistake... > >

Re: Pagination

2012-11-19 Thread Paul Willis
near 'paginate' at line 1 SQL Query: paginate On 19 Nov 2012, at 23:41, Paul Willis wrote: > Thanks for the replies but I can't seem to get any solution to work I wonder > if it is because I stupidly missed a vital detail... > > My posts and categories are a

Re: Pagination

2012-11-19 Thread Paul Willis
ry'); >>//print_r($posts); // to test here ... >>$this->set(compact('posts')); >>} >> >> But since you paginating categories it may be better to do this from the >> categories controller.. >> >>

Re: Pagination

2012-11-19 Thread Paul Willis
//print_r($posts); // to test here ... > $this->set(compact('posts')); > } > > But since you paginating categories it may be better to do this from the > categories controller.. > > Andras Kende > http:///www.kende.com > > On Nov

Pagination

2012-11-19 Thread Paul Willis
In my PostsController.php I have a function to find all the posts from a category… public function category($id = null) { $this->set('posts', $this->Post->Category->find('first', array( 'conditions' => array( 'Categor

Re: Migrating from local host...Issues with CSS

2012-11-11 Thread Paul Willis
The CSS not loading is a classic sign That your mod_rewrtie isn't working on he server http://book.cakephp.org/2.0/en/installation/advanced-installation.html PW On 11 Nov 2012, at 02:41, April wrote: > This is kicking my butt...I have migrated my application from my localhost to > my server

Routing

2012-11-07 Thread Paul Willis
Hi I'm on CakePHP 2.2.x and I've built all my site links in the format... $this->Html->link( 'Contact', array('controller' => 'pages', 'action' => 'contact')); …which generates URLs like http://www.example.com/pages/contact and everything works. ie: /pages/contact shows my contact page. I've

Re: Having trouble with /cake/app and htaccess

2012-11-06 Thread Paul Willis
Most likely, if it was needed on the first one it will be needed on the other two… https://groups.google.com/d/topic/cake-php/el54U5xqnGc/discussion PW On 6 Nov 2012, at 16:03, heohni wrote: > Well, I need to add the > RewriteBase / > into my first htaccess. > > Now I see the homepage and

Re: cakephp app as part of static site

2012-10-24 Thread Paul Willis
EQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] Cheers Paul On 23 Oct 2012, at 23:25, sso wrote: > Hi, > > I have kind of an unique situation. > I have developed a cakephp app and need to deploy it to a shared server with > content. > I know generally we

Re: Strange array when moved from test to live server.

2012-10-18 Thread Paul Willis
I could be barking up the wrong tree but I recall something similar before, check your PHP and CakePHP versions on your XAMP and live servers. PW On 17 Oct 2012, at 15:04, PlanoCoder wrote: > Good morning all I build a site on XAMP local server. There was no > problem when testing. When

Re: html attributes on 'year' form helper

2012-10-04 Thread Paul Willis
#x27;Y'), 'maxYear' => date('Y') - 20, ) ); Cheers again for the tips Paul On 4 Oct 2012, at 10:08, euromark wrote: > use Form->input() and type=>date + dateFormat=>Y > > > Am Donnerstag, 4. Oktober 2012 09:51:31 UTC+

html attributes on 'year' form helper

2012-10-03 Thread Paul Willis
class' => 'input select', 'id' => 'published', ) ) ); But I get a weird result… 2012 2011 2010 …etc… 1990 I'm assuming I'm just getting the syntax messed

Re: CakePHP 2.2.2 and DebugKit don't play nice

2012-10-02 Thread Paul Willis
Okay that fixed it. Thanks. Wasted a good bit of time on that :-( Paul On 2 Oct 2012, at 23:46, Andras Kende wrote: > Add "Session" to components in app controller > > Andras Kende > 818-851-1177 > and...@kende.com > http://www.kende.com > > On Oct 2,

CakePHP 2.2.2 and DebugKit don't play nice

2012-10-02 Thread Paul Willis
$values = '(object)CakeRoute' $openDepth = (int) 0 $currentDepth = (int) 0 $doubleEncode = false $className = 'neat-array depth-0' $nextDepth = (int) 1 $out = '' Has anyone got any ideas what is going on here? Cheers Paul

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
eBase /oursite/caketest/app/webroot/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] Thanks again to Ivan for pointing me in the right direction Paul On 27 Sep 2012, at 18:02, Paul Willis wrote: > Okay scrap that. I re

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
Okay scrap that. I realised I was making a mistake with my test. I tried again and got redirected to the external site as per my .htaccess rule so I guess AllowOverride must be set to All? So it does look like I need to figure out the issue in my .htaccess files for Cake Paul On 27 Sep 2012

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
rride to 'All' (assuming that is the problem) as it will help eliminate any issues with my Cake setup so thanks again. Paul On 27 Sep 2012, at 17:35, Ivan Rimac wrote: > I think it is rewriting problem, try something like this: > h

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
the apache conf file so I can see what exactly is going on. Cheers Paul On 27 Sep 2012, at 17:02, Ivan Rimac wrote: > Okay, this is my structure: > > domain.com/.htaccess > > >RewriteEngine on >RewriteBase / >RewriteRule^$ app/webroot/[L

Re: Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
I tried editing my .htaccess in domain.com/oursite/caketest/ but it made no difference. Are your other two .htaccess files set to the default without RewriteBase being set? Paul On 27 Sep 2012, at 16:38, Ivan Rimac wrote: > I had similar issue. > > You can try enter this

Re: Hello i need help in database schema ready

2012-09-27 Thread Paul Willis
I agree knowing what the dataset is for might help with the answer. I don't know but I would have thought Units of Measurement are set per Country rather than by City? Paul On 27 Sep 2012, at 16:44, Jonathan Sundquist wrote: > I guess I question what you would like this data

Typo in the footer of these messages

2012-09-27 Thread Paul Willis
I'm not sure who the admin is for this group but I just noticed that there's a typo: "FacekBook" just below in the auto added footer to messages to this group VVV -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You re

Is this a mod_rewrite issue?

2012-09-27 Thread Paul Willis
_PATH', DS . 'var' . DS . 'www' . DS . 'oursite' . DS . 'caketest' . DS . 'lib'); I've tried adding… RewriteBase /var/www/oursite/caketest ...to each of the three .htaccess files with no change in the results. Nothing makes any differe

Re: Problem with paths to files

2012-09-25 Thread Paul Willis
As for troubleshooting ideas just look at the source of your resulting page. What is the path to the image that the browser is being given? How does that match to where you have your actual image stored? PW On 25 Sep 2012, at 09:16, Ivan Rimac wrote: > Yes, put it in the webroot, img folder o

Web testing in Cake 2

2012-09-21 Thread Paul Filippi
Hey there, I just started using Cake 2. I understand there was a web testing framework in the previous versions of Cake, but it seems to have disappeared in Cake 2. For instance the class CakeWebTestCase isn't defined anymore. I can't find any info on that on the web. Am I just a bad googler?

Re: pass parametrs

2012-08-29 Thread Paul Willis
http://book.cakephp.org/2.0/en/controllers.html#Controller::set Paul On 29 Aug 2012, at 19:59, Nareh Tarasyan wrote: > How do you pass parameters from controlller to view? > > For example: > > echo "".$i." > ".""; > How to do it in cak

Re: Concurrent login issue: Users being logged out

2012-08-01 Thread Paul Gardner
am demoing >>> the site to a client or when multiple people testing the site at once) you >>> have to keep logging back in, which is annoying. >>> >>> I am using Auth with Database Sessions and Security.level is set to >>> medium, any pointers as to

Re: Missing Controller

2012-07-05 Thread Paul Willis
This sounds more like a server config error than a cake problem. Have you checked you config for https is the same as the working http one (apart from the port obviously) PW On 5 Jul 2012, at 04:52, Luke wrote: > Hi everyone, > > I'm new to cake. I've installed Cake into a subdirectory > (h

Re: Method from controller is not mapped

2012-07-03 Thread Cosmin Paul
e All And mod_rewrite.c is included. Cheers On Tue, Jul 3, 2012 at 8:02 PM, Cosmin Paul wrote: > Hi, > > I set-up cake and I have a problem that google can't answer: > > > http://mysite/users/add > > on this URL: http://mysite/users/ > -- -- Paul-Cosmin Con

Re: Login problem

2012-07-03 Thread Cosmin Paul
Make sure you call parent class, If you over-right the `isAuthorized` method. return parent::isAuthorized($user); Maybe this helps you, Cheers Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Method from controller is not mapped

2012-07-03 Thread Cosmin Paul
Hi, I set-up cake and I have a problem that google can't answer: http://mysite/users/add on this URL: http://mysite/users/ -- -- 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

Method from controller is not mapped

2012-07-03 Thread Cosmin Paul
from Users controller. What can I do ? Thank you for the time Cheers, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from

Re: Can't Connect to Database (CakePHP 1.3 -> 2.1.3 Migration)

2012-06-28 Thread Paul Willis
ver 2000 and higher, > > 2.1.3 > *Database/Sqlserver - Microsoft SQL Server 2005 and higher > > > Cheers > > Paul > > On 27 Jun 2012, at 19:26, Miles G wrote: > >> Thanks for pointing that out cricket; however, I am still getting the

Re: Can't Connect to Database (CakePHP 1.3 -> 2.1.3 Migration)

2012-06-28 Thread Paul Willis
Hi I would suggest that your version of Microsoft SQL Server is too old. From the database.php default files... 1.3.15 * mssql - Microsoft SQL Server 2000 and higher, 2.1.3 * Database/Sqlserver - Microsoft SQL Server 2005 and higher Cheers Paul

Re: mod_rewrite directive in http.conf

2012-06-22 Thread Paul Willis
^(.*)$ index.php [QSA,L] Can you tell me what rewrite rule you have in your working config? Paul On 22 Jun 2012, at 01:31, lowpass wrote: > Did you reload Apache? I do the same -- put the rewrite rules in a > vhost.conf -- and it's working fine for me. > >

Media Plugin Question - Move an existing record

2012-06-21 Thread Paul Redmond
I am using David Perssons media pluginin 1.3 environment and I have more of an advanced usage question. Basically, I have existing model records that rely on a model field (slug) as part of the path to the image. Since this is a join table, the user can ch

mod_rewrite directive in http.conf

2012-06-21 Thread Paul Willis
ut it doesn't work - I get the classic mod_rewrite not working sign of a plain page with no CSS. The old 1.x way with index.php?url=$1 still seems to work fine with my 2.x site. So am I missing something here or should I stick with the old way? Paul -- Our newest site for the communit

Re: how to wirte a code search users incakephp

2012-06-07 Thread Paul Willis
Save the code you have posted as default.ctp in... app/views/layouts/default.ctp Replace the word HERE with the line... Now when you go to… your_app.com/pages/contact …in your browser, Cake will put the content of contact.ctp into the default.ctp layout in place of PW On 7 Jun 2012, at 1

Re: get some value from params

2012-06-04 Thread Paul Willis
Do you mean you want to pull out the value for the _value key? $this->params['query']['_value'] On 4 Jun 2012, at 12:31, hoss7 wrote: > i have cakephp 2.1.2 and when i am run: pr($this->params); > i have this: > akeRequest Object > ( > [params] => Array > ( >

Re: Hiding empty categories

2012-06-03 Thread Paul Willis
t_count field to my product_categories table. Then added 'counterCache' => true to my products model and... 'conditions' => array('ProductCategory.product_count >' => 0) …to my products_controller find Up and running. Paul -- Our newest site for the community:

Hiding empty categories

2012-06-03 Thread Paul Willis
; $id; $this->set('categories', $this->Product->ProductCategory->find('list', array('fields' => array('ProductCategory.id', 'ProductCategory.name'; } What is the best way to only find those cate

Re: cakePHP Data into Google Charts

2012-05-19 Thread Paul Gardner
t; [5] => ["20",8,2,6,0] > [6] => ["21",7,4,3,0] > ) Have you tried using the Google Visualisation Playground? http://code.google.com/apis/ajax/playground/?type=visualization#column_chart Regards, Paul Gardner Affable Internet Geek | Email:

How to set the incoming $id to be the last post entered

2012-04-10 Thread Paul Willis
Hi I'm on CakePHP 1.3 I have an action in my posts_controller.php that gets a list of latest posts and the data for a particular post if the $id is set... function mypage($id = null) { $this->Post->recursive = 0; $this->set('posts', $this->paginate()); $this->set('mainpo

Re: The Great Web Framework Shootout

2012-02-21 Thread Paul Vaughan
> but I doubt most readers of the benchmark results are. Indeed, perception is everything, and is usually wrong. I work with the popular FOSS VLE/LMS Moodle, and people's initial impression is always 'it doesn't look very nice' or some such comment. My rebuttal is the same every time: 'But it doe

Re: Disappointed with the training.

2012-01-04 Thread Paul Vaughan
Larry, Really glad to see training is now available, but as the OP suggested it would be good to see a more detailed agenda for the sessions, so I can better choose which is/are right for me. Also, if there were savings for doing two or all three sessions, that would help me pitch the training to

Re: how to put image variable between image helper quotes

2011-12-24 Thread paul
You need $thumb = $this->Html->image('images/'.$image['Image'] ['img_file'],array('width'=>"60", 'height'=>"40")); echo $thumb; or just echo $this->Html->image('images/'.$image['Image'] ['img_file'],array('width'=>"60", 'height'=>"40")); On Dec 24, 12:02 pm, Tilen Majerle wrote: > print  $this->

Year range 1991-2031

2011-12-23 Thread Paul
a year range selector of 1991-2031 with the correct month and day for the record. Anyone have a pointer for a newbie? Regards, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: How to add a "read" button to a view.ctp?

2011-12-15 Thread Paul Vaughan
(I don't know how to do it, but) Couldn't you achieve this with toggleable behaviour? Paul. On 15 December 2011 16:13, Yves S. Garret wrote: > I'm curious. Why did you go that route? What was your design decision? > Advantages/disadvantages? > > I'm learning

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2011-11-17 Thread Paul Vaughan
so it > will work on any server setup. > > HTH, Paul. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related question

Re: Permission erros when following ACL 2.0 tutorials

2011-11-15 Thread Paul Vaughan
important bit is /tmp) This sets the tmp folder to be fully readable, writable, and executable, and my problems go away. I've seen statements here to the effect that this is only an issue in development (but can't put my finger on one just now. Cheers, Paul. On 15 November 2011 09:41

Re: CakePHP 2.0.0 release

2011-10-18 Thread Paul Vaughan
Hope this helps. Paul. On Oct 18, 2011 7:35 PM, "zer0_gravity" wrote: > I did just that and on the default CakePHP page it reported an error > "Cake is NOT able to connect to the database" > > On Oct 18, 9:25 am, pedro rojo wrote: > > past all package of

Re: cakephp ecommerce work

2011-07-26 Thread paul
I need someone that can do the work for me. Is anyone available? -- 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

cakephp ecommerce work

2011-07-26 Thread paul
Hi! anyone interested in a little work to complete an ecommerce shopping cart made ​​in CakePHP? I've made it custom. And I have to add the webtechnick paypal plugin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site ht

Displaying comments in the Index page

2011-06-19 Thread Paul Wheatley
e solution that no one ever (apart from me) has gotten stuck with it before. Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To u

Displaying Wordpress elements in CakePHP

2011-06-08 Thread Paul Wheatley
p would be very much appreciated. Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email

When retrieving data, fields returned as strings, and the tale of climbing a mountain to cast those strings down to lake integer

2011-04-19 Thread Paul Connolley
I've just had half an hour flicking through docs and source and figured it would be easier to ask: I'm working with JSON in a project at the moment and everything is going fine. At some point I realised a lot of the expected integer values were actually strings (not a problem as it wasn't hard

Re: problems with debug in cake v.1.3.7

2011-03-07 Thread Cosmin Paul
s > 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://grou

problems with debug in cake v.1.3.7

2011-03-07 Thread Cosmin Paul
Hi, Did anyone have some problems with debug in cake v.1.3.7 ? Set: Configure::write('debug', 2); No debug at all... copy paste cake (v.1.2.6), activated at the next refresh. I've search the change-log but didn't find something relevant and I don't have time to debug the framework. Cheers, Cos

Re: display user ID

2011-02-02 Thread Paul Wheatley
Cheers folks, i added $this->data['Course']['user_id'] = $this->Session->read('Auth.User.id'); to my controller from euromark's responce and it worked perfectly thanks very much everyone. Paul On 2 Feb 2011, at 18:12, Stephen wrote: > Definat

display user ID

2011-02-02 Thread Paul Wheatley
Hello, I have a add view that you have to be logged in to get to. What i am trying to do is add the UserID of the person creating the record to the table so that later i can display only posts that relate to him/her. I have a field called user_id and sort of hoped that Cake would do a similar

Newbie file upload question

2011-01-31 Thread Paul Wheatley
, etc...) and an image or logo of their company. >From what I've seen of Cake so far I think it should be simple enough but I >can't work it out, can anyone help? Paul -- Our newest site for the community: CakePHP Video Tutorials http://

Cache config in core.php

2010-10-19 Thread Paul Willis
king at core.php I noticed it's missing the closing ?> php tag is this an error I should report or is this file closed somewhere else in the code? Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Re: How to use ORDER BY within Containable Behavior

2010-10-08 Thread Paul Bricks
ut that way?? Another User named "teknoid" said, that it would work with "joins"-key on the "find()" clause. Didnt get this work with "joins" in cakephp until now. Read it here: http://nuts-and-bolts-of-cakephp.com/2008/07/17/forcing-an-sql-join-in-cakephp/

How to use ORDER BY within Containable Behavior

2010-10-06 Thread Paul Bricks
I would like to have a sorted-array (order by) to print out in my Post- View. The Problem is, that the order-by-attribute (Category.name) lies deeper than attributes (Post.id, Tag.id, ...), which have to be ordered. Here is my example: Relations: Post --> hasMany --> Tag --> belongsTo --> Categor

Re: Not serving css or js

2010-08-18 Thread Paul Saunders
I followed this: http://blog.aphexcreations.net/2007/10/enabling-cakephp-11-on-lighttpd-15.html Also check the comments for improvements etc... Thanks! On Fri, Aug 13, 2010 at 11:32 PM, BARTCC wrote: > if your webserver DOES'NT support mod_rewrite: > on Apache: (1)(2) > on windows IIS: (1)(2)

Not serving css or js

2010-08-12 Thread Paul
Hi, I've recently started with Cake and I'm having trouble serving script files despite following the docs: http://book.cakephp.org/view/1437/css I get the html fine but I'm not being served the js and css files out of the respective webroot sub-directories. I'm using php 5.2 + Lighttpd on Windo

Re: Sorting Paginated Results Question

2009-09-29 Thread Paul Redmond
I figured out the answer to my own question =) The original order I specified was: 'order' => array('Coupon.id' => 'DESC', 'Restaurant.tier'=>'ASC', 'Restaurant.name' => 'ASC'), I changed order to: 'order' => array("Coupon.id != 0 DESC", 'Restaurant.tier ASC', 'Restaurant.name ASC'), Hope this

Sorting Paginated Results Question

2009-09-28 Thread Paul Redmond
I have searched high and low for an answer to this question... I have a 1 to 1 relationship in my database. A Restaurant has one Coupon The coupon is optional, so the restaurant without coupons should be included in the result set, however, when I try to sort by restaurants that have a coupon f

  1   2   >