Re: php cms and rewriteRule and cakephp routes

2013-05-29 Thread Mehrdad Dadkhah
thanks I use it IfModule mod_rewrite.c RewriteEngine on RewriteCond %{REQUEST_URI} !^/piwik/* RewriteRule^$ app/webroot/[L] RewriteCond %{REQUEST_URI} !^/piwik/* RewriteRule(.*) app/webroot/$1 [L] /IfModule and it's work -- Like Us on FaceBook

php cms and rewriteRule and cakephp routes

2013-05-19 Thread Mehrdad Dadkhah
hi I have this folders in the host root: app lib plugins vendors piwik piwik is a php cms (just php no framework) but this address (mySite.com/piwik) don't go to /piwik folder and wan't to use rewriteRule and cakephp routes for it I try lot of htaccess codes to resolve it but it didn't work

etag and caching

2013-03-21 Thread Mehrdad Dadkhah
hi according to book I want to use etag and http caching ... so I test it $this-response-etag('xcvxzvsmf3v1vf6'); if ($this-response-checkNotModified($this-request)) { //return $this-response; echo 'modified'; } else{ echo 'not modified'; } and I change etag

Re: How to start cakephp learning?

2013-03-13 Thread Mehrdad Dadkhah
hi for QA you can see here : http://forum.cakephp.ir/ -- 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

Cake warning Cannot modify header information and CORE/Cake/Network/CakeResponse.php, line 398

2013-02-14 Thread Mehrdad Dadkhah
hi all what's the reason of this warning? Warning (2): Cannot modify header information - headers already sent by (output started at /home/hy4wtsgf/public_html/lib/Cake/Utility/Debugger.php:780) [CORE/Cake/Network/CakeResponse.php, line 398] Code Context setcookie - [internal], line ??

Re: Cake warning Cannot modify header information and CORE/Cake/Network/CakeResponse.php, line 398

2013-02-14 Thread Mehrdad Dadkhah
thanks but i check everwhere! i can't find where debugging out some information before render !! -- $sudo chmod 777 /var/www/myInfo.php $gedit /var/www/myInfo.php ?php #I love these sentences :