Re: Not able to save HTML tags to mysql database.

2009-06-05 Thread Sridhar Kuppalli
Hi
I have pasted the model  code in http://bin.cakephp.org/view/36911942
For normal text everything is working fine. Even the flash message is also
getting displayed.
When you submit any HTML content its going out of /admins/update_article to
sites root ! No error message no flash message
_
Thanks  Regards
Sridhar K N


On Fri, Jun 5, 2009 at 12:52 PM, fain182 fain...@gmail.com wrote:


  Strange thing is that when i enter any normal text like Lorem ipsum
  it is getting saved.
  When i edit this recode and replace the content with any html tag and
  click on submit, its going to sites, index, not even showing whats the
  error is 
 but the flash message is showed? if it is showed, save() return success..
 you can't put html in only Articles or in other controller too?
 cany you put on cakebin the code of your model?
 --
 pietro

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Not able to save HTML tags to mysql database.

2009-06-04 Thread Sridhar Kuppalli
Hi all,

I have pasted here.
http://bin.cakephp.org/view/2123704404
_
Thanks  Regards
Sridhar K N


On Thu, Jun 4, 2009 at 8:47 PM, Sridhar Gowda sridhar.kuppa...@gmail.comwrote:


 No :(

 I have used sanitize, but no use.
 I have used phpaddslashes() function still no use.

 Strange thing is that when i enter any normal text like Lorem ipsum
 it is getting saved.
 When i edit this recode and replace the content with any html tag and
 click on submit, its going to sites, index, not even showing whats the
 error is 

 Please help me with this.

 Thanks  Regards
 Sridhar

 On Jun 1, 2:22 am, fain182 fain...@gmail.com wrote:
  maybe because you sanitize input ?http://book.cakephp.org/view/462/html
 
  --
  pietro
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Gziping in cakePHP

2009-04-26 Thread Sridhar Kuppalli
Hi All,

I have completed my first site using cakePHP and now i am uploading it to
the production server.

Can any body tell me how to achive gzipping in cakePHP?

ob_start(ob_gzhandler); is not working. I have googled and came to know
that Debug mode 0 will not work with this.

Can anybody tell me any other way of achiving this?

Thanks  Regards

Sridhar K N

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: URL Problem | Adding Slash at the end makes any difference ?

2009-02-02 Thread Sridhar Kuppalli
Hey Thanks Miles.
It has solved my issue.
One more basic problem I struct in question is I have a products/view/ page
( Products controller and view method )

eg : http://xyz.com/products/view/leatherProd

So in this page what should be the href value for any other products
eg. http://xyz.com/products/view/clothProd
  http://xyz.com/products/view/marineProd

On Mon, Feb 2, 2009 at 3:06 AM, Miles J mileswjohn...@gmail.com wrote:


 Your css/js/img paths need a forward slash in front of them:

 /css/
 /js/

 Instead of:

 css/
 js/

 I dont understand why they dont have them to begin with. You can
 change it in the cake/config/paths files.

 On Feb 1, 5:23 am, Sridhar Kuppalli sridhar.kuppa...@gmail.com
 wrote:
  Hi All,
  I am new to CakePHP. In my site i am facing this problem
 
  when i sayhttp://examplesite/products everything is working fine.
  But when i add a slash at the end of url (http://examplesite/products/),
 the
  page is displaying without CSS.
 
  Please help me to solve this.
 
  - - - - - - - - - - - - - - -
  Thanks  Regards
  S Kuppalli N
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



URL Problem | Adding Slash at the end makes any difference ?

2009-02-01 Thread Sridhar Kuppalli
Hi All,
I am new to CakePHP. In my site i am facing this problem

when i say http://examplesite/products  everything is working fine.
But when i add a slash at the end of url (http://examplesite/products/), the
page is displaying without CSS.

Please help me to solve this.

- - - - - - - - - - - - - - -
Thanks  Regards
S Kuppalli N

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Gziping JS and CSS files using .htaccess

2009-01-25 Thread Sridhar Kuppalli
This is not working. :(
Is there any other method?

Regards
Sridhar K N
On Sat, Jan 24, 2009 at 2:36 PM, _k10_ ketan.s...@gmail.com wrote:


 Hi,

 This helper might interest you. -
 http://bakery.cakephp.org/articles/view/minify-helper-for-cakephp
 (includes gziping of js and css assets)

 _k10_
 http:///www.propertyjungle.in

 On Jan 24, 1:27 pm, Sridhar Kuppalli sridhar.kuppa...@gmail.com
 wrote:
  Hi All,
  I am starting a new project by using CakePHP. In my apache based hosting
 i
  don't have access to modify httpd.conf file.
  I want to gzip all the css and js files going out of my server. Is there
 any
  method i configure this with .htacess file?
  Is anybody implemented this method?
 
  Thanks  Regards
  Sridhar Kuppalli
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Gziping JS and CSS files using .htaccess

2009-01-24 Thread Sridhar Kuppalli
Hi All,
I am starting a new project by using CakePHP. In my apache based hosting i
don't have access to modify httpd.conf file.
I want to gzip all the css and js files going out of my server. Is there any
method i configure this with .htacess file?
Is anybody implemented this method?

Thanks  Regards
Sridhar Kuppalli

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How well I can use CakePHP for building static site ?

2009-01-12 Thread Sridhar Kuppalli
Hi All,
I am new to cakePHP, but really impressed with the blog example and tried
similar other example also.
Now I want to design a static website, with less dynamic functionality, (3
to 4 through out the site). But it has common modules, like header, side
navigation etc.

Can I use cakePHP to implement this. Any tutorial or material for this?

Thanks  Regards
Sridhar Kuppalli

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Problem with created date; It is not automatically saving to db

2007-06-24 Thread Sridhar Kuppalli
Thanks a lot its working now :-)

On 6/22/07, Grant Cox [EMAIL PROTECTED] wrote:


 Well, the inbuilt behaviour is hard-coded to created, modified and
 updated.  However, you can easily throw a beforeSave() in your
 model, check if an id is already set (indicating UPDATE rather than
 INSERT) and set your data yourself.

 function beforeSave()
 {
 if ( empty($this-id) and
 empty($this-data[$this-name]['id']) ){
 // inserting a new row
 $this-data[$this-name]['TBP_Created_Dt'] =
 date('Y-m-d H:i:s');
 }
 $this-data[$this-name]['TBP_Modified_Dt'] = date('Y-m-d
 H:i:s');
 return parent::beforeSave();
 }

 This can go in a single model, or in your AppModel to apply to all.


 



-- 
Thanks  Regards
Sridhar Kuppalli
Bangalore
[EMAIL PROTECTED]

Behind Every Great Fortune There is a Crime

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---