Re: htmlpurifier sanitize form data

2014-08-11 Thread vbpupil
, '_purify') > > > On 11 August 2014 12:24, vbpupil > wrote: > >> Not sure if anyone is familiar with this plugin? i have it installed and >> can sanaitize indiviual strings ie: >> >> $test = Purifier::clean('hi$( document ).ready(function() >

Re: htmlpurifier sanitize form data

2014-08-11 Thread vbpupil
gt; > > Am Montag, 11. August 2014 13:24:27 UTC+2 schrieb vbpupil: >> >> Not sure if anyone is familiar with this plugin? i have it installed and >> can sanaitize indiviual strings ie: >> >> $test = Purifier::clean('hi$( document ).ready(function() >>

htmlpurifier sanitize form data

2014-08-11 Thread vbpupil
Not sure if anyone is familiar with this plugin? i have it installed and can sanaitize indiviual strings ie: $test = Purifier::clean('hi$( document ).ready(function() { alert("hacked!");});', 'general'); which is working fine but i want to sanitize my form data ie: $this->request->data = Pur

cakephp url change

2014-08-04 Thread vbpupil
Hi guys I have a question that im sure someone will be able to answer very quickly. Im working on a site where customers can add their own property to sell, if they click list a property the system first checks that they are logged in if not asks them to login, then upon a successful signin it

Re: force www. cakephp

2014-07-18 Thread vbpupil
Thanks Stephen On Friday, July 18, 2014 1:57:37 PM UTC+1, Stephen S wrote: > > You should be able to add something like this > http://stackoverflow.com/a/4916313 to your app/webroot/.htaccess file if > I'm not mistaken > > > > > On 18 July 2014 13:46, vbpupil &

force www. cakephp

2014-07-18 Thread vbpupil
hi guys quick question how can i force www. and which .htaccess file should i be editing? I currently have this as my public_html RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] -- Like Us on FaceBook https://www.facebook.com/Cake

Re: Cakephp 2 - dynamic meta tags from beforeFilter

2014-07-01 Thread vbpupil
Andras Awesome Thanks for this, easy when you know how. On Tuesday, July 1, 2014 6:50:40 PM UTC+1, Andras Kende wrote: > > app/View/Layouts/default.ctp: > property="og:image" content="http://www.myurl.co.uk/img/icon.png"/> > > > im guessing that the best way to do this is by setting the

Re: Database Error: SQLSTATE[42000] error cakephp 2

2014-07-01 Thread vbpupil
Thanks AD7six, this fixed my issue and is something that I trip over a lot. I will certainly try to remember this in future. On Friday, June 20, 2014 3:54:27 PM UTC+1, vbpupil wrote: > > hey Guys > > im getting this error > > Database Error > > *Error: * SQLSTATE[42000]

Re: CakePHP NEWBIE needs help w/ international phone number add on contact form...

2014-07-01 Thread vbpupil
Hi Jessica Are you failing the validation? this is set in the model. See here for setting up model validation http://book.cakephp.org/2.0/en/models/data-validation.html I hoe this helps. On Monday, June 30, 2014 10:30:23 PM UTC+1, Jessica wrote: > > Hi, > >Please bear with me! Total newb

Cakephp 2 - dynamic meta tags from beforeFilter

2014-07-01 Thread vbpupil
Hi Guys Im trying to generate dynamic facebook meta tags for a share button eg: http://www.myurl.co.uk/img/icon.png"/> im guessing that the best way to do this is by setting the values in the beforeFilter of my controller. ie controller: public function beforeFilter(){

Re: Cakephp Fatal error: PaypalIpnConfig: The configuration could not be loaded.

2014-06-20 Thread vbpupil
I installed this just yesterday and had the same problem. You have to put a copy of the 'paypal_ipn_config.php' file in the app/config folder. also if you are adding the to the routes file, you have to ensure its towards the top of the file. Hope this helps, its a great plugin and worth the eff

Database Error: SQLSTATE[42000] error cakephp 2

2014-06-20 Thread vbpupil
hey Guys im getting this error Database Error *Error: * SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'saveMyInv' at line 1 *SQL Query: * saveMyInv

Re: CakePHP Constants in a view

2014-06-05 Thread vbpupil
7;, 'My Value'); > > In view file: > Configure::read('MyConstant'); // My Value > > > > On 5 June 2014 13:06, vbpupil > wrote: > >> How best can I add constants to my cake application to be used in my >> views? >> >> >>

CakePHP Constants in a view

2014-06-05 Thread vbpupil
How best can I add constants to my cake application to be used in my views? for example, I have differnt paths for different types of images ie; internal images, external images I have read many comments on bootstrap, use it/dont us it?? so where would be best and cleanest to use it? please